summaryrefslogtreecommitdiffstats
path: root/spamass-milter/message.diff
blob: 53a32c33694d2cd14a92daa13ef63a4b90875252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- src/spamass-milter-0.3.1/spamass-milter.cpp	2006-03-23 22:41:36.000000000 +0100
+++ src_new/spamass-milter-0.3.1/spamass-milter.cpp	2010-01-02 01:52:00.000000000 +0100
@@ -451,8 +451,10 @@
 	}
 	if (do_reject)
 	{
-		debug(D_MISC, "Rejecting");
-		smfi_setreply(ctx, "550", "5.7.1", "Blocked by SpamAssassin");
+		const char *spam_status = assassin->spam_status().c_str();
+		debug(D_MISC, "Rejecting %s", smfi_getsymval(ctx,"i"));
+		debug(D_MISC, spam_status);
+		smfi_setreply(ctx, "550", "5.7.1", "Your message seems to be Spam. Please contact postmaster@server-speed.net for more information.");
 
 
 		if (flag_bucket)