Re: unsubscribe
Phillip Hofmeister (plhofmei@zionlth.org) wrote 33 lines:
> Someone mentioned editing procmail. I am subscribe to debian-devel and
> debian-security. How do I set up a procmail filter to say:
> I don't know how to do the 'and' and or's
> :0
> *Subject: unsubscribe
> AND {
> * ^X-Mailing-List: <debian-devel@lists.debian.org>
> OR
> * ^X-Mailing-List: <debian-security@lists.debian.org>
> }
:0H
* ^Subject: unsubscribe$
{
:0H
* 0^0
* 1^0 ^X-Mailing-List: <debian-devel@lists\.debian\.org>
* 1^0 ^X-Mailing-List: <debian-security@lists\.debian\.org>
stupid_people/
}
see procmailsc for the exact meaning of 0^0 & 1^0. (You can use
that to say: 3 of the following must be true ...)
stupid_people/ has a "/" because I assume a Maildir 'mbox' --
otherwise you should think about lockfiles.
No, I have *not* tested this rule.
-Wolfgang
Reply to: