diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2002-06-04 12:14:04 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2002-06-04 12:14:04 +0000 |
commit | 95e345feeff00c6a2553f0873795e9712e4bcf5e (patch) | |
tree | 0e842c507161da57950ff6674f2f91e7d992d9d4 /sink.c | |
parent | 3f0b9dd940adb3dce9bd2f8d939bb3325d2cbb0e (diff) | |
download | fetchmail-95e345feeff00c6a2553f0873795e9712e4bcf5e.tar.gz fetchmail-95e345feeff00c6a2553f0873795e9712e4bcf5e.tar.bz2 fetchmail-95e345feeff00c6a2553f0873795e9712e4bcf5e.zip |
Pass back spam filter messages.
svn path=/trunk/; revision=3625
Diffstat (limited to 'sink.c')
-rw-r--r-- | sink.c | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -393,9 +393,19 @@ static int handle_smtp_report(struct query *ctl, struct msgblk *msg) * */ if (run.spambounce) + { + char rejmsg[160]; +#ifdef HAVE_SNPRINTF + snprintf(rejmsg, sizeof(rejmsg), +#else + sprintf(rejmsg, +#endif /* HAVE_SNPRINTF */ + "spam filter or virus scanner rejected message because:\r\n" + "%s\r\n", responses[0]); + send_bouncemail(ctl, msg, XMIT_ACCEPT, - "Our spam filter rejected this transaction.\r\n", - 1, responses); + rejmsg, 1, responses); + } return(PS_REFUSED); } |