[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Filtering mail w/ procmail

On Mon, May 07, 2001 at 04:18:16PM +0200, sentiniate@libero.it wrote:
> :0:
> * ^TO_debian-user@lists.debian.org
> Mail/debian-user
> :0:
> * ^TO_vim@vim.org
> Mail/vim

Yes, this is the correct syntax.  From man procmailrc:
       If  the regular expression contains `^TO_' it will be sub­
       stituted by `(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-
       which should catch all destination specifications
       containing a specific address.

So ^TO_ will expand to match pretty much anything indicating which
mailing list the message was sent to, and should catch them all.  It has
always worked for me (and I've lost track of the number of lists I'm on.


| Web: http://web.morgul.net/~frodo/
| PGP Public Key: http://web.morgul.net/~frodo/mail.html 

Attachment: pgpVtuL4V_22V.pgp
Description: PGP signature

Reply to: