procmail
[Top] [All Lists]

Re: Simple Killfile Recipe?

2002-01-07 08:20:38
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Philip Mak <pmak(_at_)animeglobe(_dot_)com> writes:

| 
^From:.*(@korsin\.com|cpa(_at_)optmails\(_dot_)com|hpcaller9800(_at_)yahoo\(_dot_)com|girls\(_dot_)4u(_at_)yahoo\(_dot_)com|sales(_at_)lmcomp\(_dot_)com|letters(_at_)amoureux\(_dot_)com)
| 
| It'll become something ugly like that, and that's only 6 addresses being
| blocked. I'd rather be able to put those in a file or something and use
| some stock procmailrc code that reads from the killfile.

I'm using the following:

In my .procmailrc

- ---------------------------------------------------------------------------
MASS_MAILERS=`cat .mass-mailers`

:0
* !^FROM_DAEMON
* $ ^X-Mailer: $MASS_MAILERS
.spammers
- ---------------------------------------------------------------------------

And the contents of .mass-mailers is:

- ---------------------------------------------------------------------------
(\
Achi-Kochi Mail|\
Direct Email|\
IM200[01]|\
DM Mailer|\
Douhou(_at_)Mail|\
Ghost Mail|\
A-1 Mail SOHO Ver.*INGRAM|\
redspider|\
Mailtouch|\
Netpion Messaging Server|\
Advanced Mass Sender|\
Way-SERIES Mailer|\
AdamYu|\
QuickSender|\
mailer\
)
- ---------------------------------------------------------------------------

Caveat.  You must be careful.  There must be a maximum size for variables.

I'm very very novice user of procmail, so there must be more elegant
solutions than this.

Best Regards,
IKEDA Shigeru
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (OpenBSD)
Comment: no comments

iD8DBQE8Obt7UHt8kCIJ1VoRAopxAJ9KK0N3lUM77d/QGqW33S7VwX0RaACeL2/o
CI53MaG+930VrdHw3PVocmI=
=FcE5
-----END PGP SIGNATURE-----
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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