diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2002-02-01 22:12:45 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2002-02-01 22:12:45 +0000 |
commit | a91a23912dec234a9e2c9f6f71c28b6197eb4535 (patch) | |
tree | 359234d903e122dc957c8fbf4ea4cecae6a78f8c | |
parent | 3cb9b1adb3fee8cf8fbd4c3808433f9f26c52405 (diff) | |
download | fetchmail-a91a23912dec234a9e2c9f6f71c28b6197eb4535.tar.gz fetchmail-a91a23912dec234a9e2c9f6f71c28b6197eb4535.tar.bz2 fetchmail-a91a23912dec234a9e2c9f6f71c28b6197eb4535.zip |
Use smtpaddress to specify the return path on warning mail.
svn path=/trunk/; revision=3573
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | sink.c | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -8,6 +8,7 @@ * Expunge edge case fix by Sunil Shetye. * Fixes for some odd IMAP and SMTP edge cases by Sunil Shetye. * UIDL bug fix by Matthias Andree. +* Use smtpaddress, if present, to set the return path on warning mail. fetchmail-5.9.6 (Fri Dec 14 04:03:50 EST 2001), 21247 lines: @@ -1222,7 +1222,8 @@ int open_warning_by_mail(struct query *ctl, struct msgblk *msg) struct msgblk reply = {NULL, NULL, "FETCHMAIL-DAEMON@", 0}; int status; - strcat(reply.return_path, fetchmailhost); + strcat(reply.return_path, ctl->smtpaddress ? ctl->smtpaddress : + fetchmailhost); if (!MULTIDROP(ctl)) /* send to calling user */ { |