From 4a8e6d552e42223737455073002885c012ce918a Mon Sep 17 00:00:00 2001 From: allo Date: Thu, 13 Oct 2005 10:12:10 +0000 Subject: [PATCH] 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 --- htroot/Settings_p.html | 2 +- htroot/yacy/message.java | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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. Forwarding Command: - The command-line program that should be used to forward the message.
e.g.:
 /usr/sbin/sendmail -t + The command-line program that should be used to forward the message.
e.g.:
 /usr/sbin/sendmail Forwarding To: 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 +}