aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-06-04 12:14:04 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-06-04 12:14:04 +0000
commit95e345feeff00c6a2553f0873795e9712e4bcf5e (patch)
tree0e842c507161da57950ff6674f2f91e7d992d9d4
parent3f0b9dd940adb3dce9bd2f8d939bb3325d2cbb0e (diff)
downloadfetchmail-95e345feeff00c6a2553f0873795e9712e4bcf5e.tar.gz
fetchmail-95e345feeff00c6a2553f0873795e9712e4bcf5e.tar.bz2
fetchmail-95e345feeff00c6a2553f0873795e9712e4bcf5e.zip
Pass back spam filter messages.
svn path=/trunk/; revision=3625
-rw-r--r--sink.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/sink.c b/sink.c
index 8ef27fb6..d8c8e8d9 100644
--- a/sink.c
+++ b/sink.c
@@ -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);
}