procmail
[Top] [All Lists]

Re: X-Frequent-Sender

2001-07-27 12:10:00
K(_dot_)M(_dot_)Jansons(_at_)damtp(_dot_)cam(_dot_)ac(_dot_)uk writes:
I like most of you like to filter out spam and one thing that helps me is
the following:

:0 f: FrequentSender.lock
       * ? /usr/bin/formail -r -D $CACHESIZE /root/.ProcmailCache1
       * ? /usr/bin/formail -r -D $CACHESIZE /root/.ProcmailCache2
       * ? /usr/bin/formail -r -D $CACHESIZE /root/.ProcmailCache3
       |formail  -a X-Frequent-Sender:

First of all, how is the above any better than simply using one cache
that's three times are large?  New addresses are going end up in all
three anyway.

Secondly, the lockfile on a recipe *only* protects the action, not the
conditions.  If you receive two messages at once from new addresses,
there's a good chance it'll corrupt one or more of your caches.

Thirdly, you're not reading email as root, are you?  If so, you need
to take a refresher course from the school for UNIX paranoia.  The only
thing you should be doing as root is systems administration.  Period.

(As long as I'm writing...)  Since /usr/bin is in $PATH, there's no point
to specifying formail's path.  That only makes your recipe less portable
to other systems.  If you want to invoke formail, just type "formail".


Philip Guenther
_______________________________________________
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>