invokation with "emailaddress" in Parameter.

(compatible with other programs than sendmail, like sendxmpp)


git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@929 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 20 years ago
parent b88a9584f8
commit 4a8e6d552e

@ -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>

@ -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}
*/
}
}

Loading…
Cancel
Save