procmail
[Top] [All Lists]

Handling multi-line To:

2002-05-07 06:23:03
I'm using a whitelist to filter spam, 1 of the rules I've got punts any mail
sent to me into my default mbox.

:0:
*  ^To(_dot_)*steve(_at_)lexx\(_dot_)uklinux\(_dot_)net|\
   ^To(_dot_)*lexx(_at_)uklinux(_dot_)net|\
   ^From.*Mail Delivery System|\
mbox

This works fine unless To: is split across several lines, in which case the
message will be saved into my spam box unless my email address is on the sae
line as To:. This is a sample of the message.

To: someone <someone(_at_)somewhere(_dot_)com>,
   Stephen Patterson <steve(_at_)lexx(_dot_)uklinux(_dot_)net>,
Subject: YLUG meeting on Tuesday - transport


-- 
Stephen Patterson http://www.lexx.uklinux.net/
steve(_at_)lexx(_dot_)uklinux(_dot_)net(_dot_)SPAM (remove spam to reply)
ICBM address 54-22-0N 0-28-0W  Linux Counter No: 142831 
GPG Public key: 252B8B37 available on public keyservers.

Attachment: pgpmSspAeph2M.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>