procmail
[Top] [All Lists]

Re: Procmail misfiltering multiple recipiants in 1 mail.

2002-01-28 04:03:41
On Fri, Jan 25, 2002 at 09:20:57PM +0000, Ian Chilton wrote:
Hello,

I have had this problem with Procmail for a long time so I thought it
was about time to get it sorted out :)

I use procmail to filter my mailinglists which all go to
mailinglist(_at_)ichilton(_dot_)co(_dot_)uk(_dot_) If someone posts to more 
than 1 list I am
subscribed too, I get 2 copies in the mailbox which is highest up in the
procmail rules file and no post in the one which is lower down.

Is there a way to overcome this?

My rules look like this:

:0:
* ^TO_freebsd-stable(_at_)freebsd(_dot_)org
freebsd-stable

:0:
* ^TO_.*sunhelp.org
sunhelp

:0:
* ^Sender:\ kernelnewbies-bounce(_at_)nl\(_dot_)linux\(_dot_)org
kernelnewbies

:0:
* ^Sender:\ linux-kernel-owner(_at_)vger\(_dot_)kernel\(_dot_)org
linux-kernel

...etc...

Here's a solution.  It's not very elegant though (and untested):

LISTS=(freebsd-stable(_at_)freebsd\(_dot_)org|sunhelp.org|kernelnewbies-bounce(_at_)nl\(_dot_)linux\(_dot_)org|etc)

:0
* $ (^TO_|^Sender:).*$LISTS
{
    :0c:
    * ^TO_freebsd-stable(_at_)freebsd(_dot_)org
    freebsd-stable

    :0c:
    * ^TO_.*sunhelp.org
    sunhelp

    :0c:
    * ^Sender: kernelnewbies-bounce(_at_)nl\(_dot_)linux\(_dot_)org
    kernelnewbies

    :0:
    * ^Sender: linux-kernel-owner(_at_)vger\(_dot_)kernel\(_dot_)org
    linux-kernel
}

-- 
- Matt Dunford <> zoot(_at_)zotikos(_dot_)com ..
-. www.zotikos.com -- o,;-
        
Narrator: I wanted to destroy something beautiful.
  -- "Fight Club"
--
_______________________________________________
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>