require verify = header_syntax
## Check the message for spam, comparing to the configured limit.
- deny spam = exim:true
- message = Tinned meat product detected ($spam_score)
- condition = ${if >{$spam_score_int}{$acl_m_spam_limit} \
- {true}{false}}
+ warn spam = exim:true
- ## Insert headers from the spam check now that we've decided to
- ## accept the message.
+ ## Format some reporting stuff.
warn
## Convert the limit (currently 10x fixed point) into a
## Undo the escaping.
set acl_m_spam_tests = ${sg{$acl_m_spam_tests}{!(.)}{\$1}}
- ## Insert the headers.
+ ## If we've decided to reject, then tell the sender to get knotted.
+ deny message = Tinned meat product detected ($spam_score)
+ condition = ${if >{$spam_score_int}{$acl_m_spam_limit} \
+ {true}{false}}
+
+ ## Insert headers from the spam check now that we've decided to
+ ## accept the message.
+ warn
ADD_HEADER(<:X-CONF_header_token-SpamAssassin-Score: \
$spam_score/$acl_m_spam_limit_presentation \
($spam_bar):>)