Feature Request: Header based rules..
Ken A
ka at pacific.net
Thu Jan 11 17:38:36 CET 2007
Dhawal Doshy wrote:
> Raymond Dijkxhoorn wrote:
>> Hi!
>>
>>> Any thoughts on adding header based rules? say for example:
>>>
>>> spam.check.rules:
>>> header X-MyLocalApp no
>>>
>>> OR
>>>
>>> virus.scanning.rules:
>>> header X-Cron no
>>>
>>> OR
>>> use.spamassassin.rules:
>>> From: mydomain.tld and header X-Auth-MyServer no
>>
>> Uh you mean like:
>>
>> [root at xxx01 rules]# more spam.actions.rules
>> FromOrTo: default deliver header "X-Spam-Flag: YES" forward
>> spamtrap at somehost
>
> no.. i meant evaluating headers for rules (not adding them)..
The headers are available as @{$message->{headers}} in the Message
Object, so you can use a Custom Function to get the result of a header
check and a yes/no result for a rule.
Ken A
Pacific.Net
More information about the MailScanner
mailing list