aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-02-01 22:12:45 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-02-01 22:12:45 +0000
commita91a23912dec234a9e2c9f6f71c28b6197eb4535 (patch)
tree359234d903e122dc957c8fbf4ea4cecae6a78f8c /sink.c
parent3cb9b1adb3fee8cf8fbd4c3808433f9f26c52405 (diff)
downloadfetchmail-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
Diffstat (limited to 'sink.c')
-rw-r--r--sink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sink.c b/sink.c
index cbed595e..0951e9ca 100644
--- a/sink.c
+++ b/sink.c
@@ -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 */
{