procmail
[Top] [All Lists]

Re: procmail mailing list still won't filter

2000-11-21 12:46:49
Andreas Tindlund had this recipe,

T> :0:
T> * ^FROM_DAEMON
T> $DEFAULT

And Michael Keating's response included this, which is very much incorrect:

K> [No lockfile needed there. Second colon can be omitted.]

Michael's advice there may be not merely wrong but outright destructive. 
$DEFAULT likely points to a plain mbox, and that second colon for a local
lockfile is very seriously needed.  If $DEFAULT points to a directory, then
no, it isn't, but the snippet of logfile Andreas showed us implied that his
$DEFAULT is a plain folder.

If we had no way to know whether it was a directory or a plain folder, it is
far safer to err on the side of caution.  A local lockfile for a save to a
directory wastes a few CPU cycles but does no other harm; lacking one for a
save to a plain folder can result in intermixed or lost messages.

Keep the second colon, Andreas, but otherwise do consider Michael's sugges-
tion that perhaps you meant to negate the condition or move the recipes for
catching the Procmail List above the one for filing other mail that matches
^FROM_DAEMON.

Michael also said this:

K> The recipe above sends all of your procmail messages to your inbox because
K> the procmail messages contain a header of Precedence: bulk

Also, the envelope sender address in the From_ line includes the word
"admin."  Either alone would match ^FROM_DAEMON and, per that recipe, divert
this list's distributions to Andreas's $DEFAULT.

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