Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

invokation with "emailaddress" in Parameter. (compatible with other programs than sendmail, like sendxmpp)

allo4a8e6d552e42
diff --git a/htroot/Settings_p.html b/htroot/Settings_p.html
index e2263d835..5022f566b 100644
--- a/htroot/Settings_p.html
+++ b/htroot/Settings_p.html
@@ -319,7 +319,7 @@ but only if there had been changes to the seed-list.
<tr valign="top">
<td>Forwarding Command:</td>
<td><input name="msgForwardingCmd" type="text" size="32" value="#[msgForwardingCmd]#"></td>
- <td><i>The command-line program that should be used to forward the message.<br>e.g.:</i>&nbsp;<code>/usr/sbin/sendmail -t</code></td>
+ <td><i>The command-line program that should be used to forward the message.<br>e.g.:</i>&nbsp;<code>/usr/sbin/sendmail</code></td>
</tr>
<tr valign="top">
<td>Forwarding To:</td>
diff --git a/htroot/yacy/message.java b/htroot/yacy/message.java
index 7fb502cd8..8fcc0adac 100644
--- a/htroot/yacy/message.java
+++ b/htroot/yacy/message.java
@@ -160,12 +160,12 @@ public final class message {
try {
if (!Boolean.valueOf(env.getConfig("msgForwardingEnabled","false")).booleanValue()) return;
- // getting the sendmail configuration
- String sendMailStr = env.getConfig("msgForwardingCmd","/usr/bin/sendmail -t");
- String[] sendMail = sendMailStr.trim().split(" ");
-
// getting the recipient address
String sendMailTo = env.getConfig("msgForwardingTo","root@localhost").trim();
+
+ // getting the sendmail configuration
+ String sendMailStr = env.getConfig("msgForwardingCmd","/usr/bin/sendmail")+" "+sendMailTo;
+ String[] sendMail = sendMailStr.trim().split(" ");
// building the message text
StringBuffer emailTxt = new StringBuffer();
@@ -229,4 +229,4 @@ public final class message {
DEBUG: message post values = {youare=WSjicAx1hRio, key=YJZLwaNS, iam=Ty2F86ekSWM5, process=permission}
*/
-}
\ No newline at end of file
+}