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

Re: procmail rule to filter debian-user



On 09/23/08 22:58, Bijan Soleymani wrote:
Hey everyone,

I need a rule to filter debian-user into a seperate maildir. I know there's the header:
X-Maling-List: <debian-user...

so I tried:
* ^X-Mailing-List: <debian-user.*
/home/bijan/Maildir/.lists.debian/

and several variations, but none of them worked.

If you aren't wedded to procmail for some other reason, then maybe maildrop would be more to your liking, since it has a much simpler syntax. Here's my maildrop rule for filtering d-u mails:

if ( /^X-Mailing-List:.*<debian-user@lists.debian.org>*/ )
{
    to "Maildir/.Lists.Debian.User.2008q3"
}



--
Ron Johnson, Jr.
Jefferson LA  USA

"Do not bite at the bait of pleasure till you know there is no
hook beneath it."  -- Thomas Jefferson


Reply to: