exim: Put "Message too big" in X-Spam-Score.
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 28 May 2009 09:39:15 +0000 (11:39 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Thu, 28 May 2009 09:39:15 +0000 (11:39 +0200)
Previously, the "Message too big, not scanned." message was put in the
X-Spam-Report header. Putting it in X-Spam-Score allows clients to see
the what and why of a spam score withouth downloading the (probably
larger) X-Spam-Report header.

etc/exim4/conf.d/acl/40_exim4-config_check_data

index a6f5a50dc2419a2e9aa63cb9459326c6e407964f..23137891411261283699fdc2718aeeca11b242f1 100644 (file)
@@ -18,7 +18,7 @@ acl_check_data:
   # Don't spamcheck big messages
   accept
     condition = ${if >{$message_size}{80k}}
-    add_header = X-Spam-Report: Message too big, not scanned.
+    add_header = X-Spam-Score: Message too big, not scanned.
 
   # Deny messages with a large spamscore. The threshold is set by
   # spamassassin, see required_score in /etc/spamassassin/local.cf