procmail
[Top] [All Lists]

Re: Duplicates sent from lists

2004-02-17 16:45:57
At 15:52 2004-02-17 -0700, LuKreme wrote:

LISTCACHE=$HOME/.listposts
ISLISTED=`grep -i "^$LISTNAME" $LISTCACHE`

BZZZT. Thanks for playing. Your problem is on copies of messages WHICH DO NOT ORIGINATE FROM THE LIST, $LISTNAME won't be defined.

# White space in condition is space, spacetab, spacetab
:0E # Message does not contain a List-Post Header
* LISTNAME ?? ^^^^
* ISLISTED ?? ^[^ ]+[      ]+\/[^  ]+
{  LISTPOST= $MATCH }

Er, what are you using to pull a mail address from the MESSAGE?

so, if the message doesn't contain have a LISTNAME, but is addressed to a list that normally has a list-post header, then it is a dupe, right?

But if there's a list-post header, LISTNAME should probably have been devined, since that's one of the things the generic list id filter grubs.

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


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