On Tue, 28 May 2002, Skip Montanaro wrote: > :0:spam.lock > * ^X-Spam-Status: Yes > { > # it's spam - is it a duplicate? > :0 Wh: msgid.lock > | formail -D 8192 $HOME/tmp/msgid.cache > $SPAM > } > > If it's a duplicate I just want to drop the message, otherwise stick it > in $SPAM. That's not happening. All spam seems to be missing my spam > box. Obviously, I've misunderstood something about formail -D and > procmail
(1) "formail -D" _succeeds_ when the message is a duplicate (has the same message-id, in this case). (2) You can't have two delivery actions following the same :0 line -- the $SPAM there is ignored, because the "|formail" is already the one and only delivery action allowed. So what you want is something like # Normally, one doesn't need a lock on a { } action. Lock on delivery. :0 * ^X-Spam-Status: Yes { :0 Wh: msgid.lock | formail -D 8192 $HOME/tmp/msgid.cache :0 a /dev/null # Procmail computes the necessary lock file name here (trailing colon). :0 E: $SPAM } _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk