Saen skribis:
Ruud H.G. van Tol wrote:
Try to detect that the address is not yet completed (@hotmail.com.tw,
@hotmail.com_is_not.com). That is certainly the case when a character
from [-+a-z0-9.$_~] follows. So assume it's ended when
a-character-not- from-that-set (or a newline) follows. A regexp for
that is
([^-+a-z0-9.$_~]|$), which should be appended to the condition:
Uhm, when did $, ~, and + make their way into RFC1035?
Aargh, I was mixing up with the name-part. Busy finishing some
project etc.
But then 'From:email2(_at_)hotmail(_dot_)com' would lead to Spam, so you need
(.*[^-+a-z0-9.$_~]|), which makes the condition:
If I received any mail that did not have a whitespace between the
header and the data in that header, I'd be happy to "misclassify"
it as junk just the same.
OK.
Update:
ADR_BEFORE="[^-a-z0-9._+$~&]"
ADR_AFTER="([^-a-z0-9._]|$)"
:0:
*$! ^From:[ ]+.*${ADR_BEFORE}(\
(email1|email2|friend)@hotmail\.com|\
(email3|somebody)@yahoo\.com|\
friend(_at_)aol\(_dot_)com|\
(brother(_at_)serv|sister(_at_)qwest)\.net|\
@@)${ADR_AFTER}
* ! ^From:[ ]+(_dot_)*(_at_)somemailinglist\(_dot_)com|\
* ! ^Sender:[ ]+procmail-admin@
* ! ^Subject:[ ]+.*\[CyberDojo]
*$! ^TO_(myaddress1|myaddress2)@domain1\.tld${ADR_AFTER}
Spam
Added the ampersand to the name-part-charset (see ADR_BEFORE).
Beware, that ^TO_ condition will let Bcc's go to Spam.
--
Ruud
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail