procmail
[Top] [All Lists]

Re: deb-user filter recipe

2002-10-14 13:00:14
At 14:11 2002-10-14 -0500, Gary did say:
[big schnip]

> * ^Subject:.*(un[- ]?subscribe|remove me)
>
> which would catch several variations on the theme.

That's pretty slick Sean.  Building up this, if I wanted to make the above
relavent to all subscribed lists, could I not modify it as such?

:O HBhb:
*  ^Subject:.*(un[- ]?subscribe|remove me)
/dev/null

hb is redundant with the default. 'HB' isn't proper either, in that I doubt you want to scan _bodies_ for this, and 'H' is the default to begin with. Also, there's no need to LOCK output to /dev/null, and finally, that's an OH you have, not a ZERO, and it needs to be the latter.

:0
* ^Subject:.*(un[- ]?subscribe|remove (me|my address))
/dev/null

would work just fine. I'd really advise adding a lockflag and outputting to a file instead, so that you can recover from mistakes though. Nothing like tossing messages, possibly including unsubscribe confirmations of your own...

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