19 Sep
2008
19 Sep
'08
6:33 p.m.
Steffen,
if header :matches
SK> Do you use regex's, if not :contains or :is may work, too, with less SK> ressources.
["To", "Cc", "Bcc", "Reply-To", "In-Reply-To"] ["webmaster@example.net"] {
discard; stop; }
SK> Do you have the headers of a mail, that got discarded, and and those, that SK> did not?
I think I managed to solve the problem, thanks to Steffen.
It turned out that "webmaster@example.net" :matches "webmaster@example.net" but "<webmaster@example.net>" does not.
In my tests, I always sent messages to webmaster@example.net address. But spammers used to use angle brackets so it fooled the script.
Now the sieve script looks as follows and it works:
if address :is :all ["To", "Cc", "Bcc", "Reply-To"] ["webmaster@example.net"] { discard; }
-- Eugene Gladchenko EVG15-RIPE