procmail
[Top] [All Lists]

forking two copies of a mail

2002-06-22 02:19:27
Not sure if the Subject: gives the appropriate solution but I
have the following section in my rc:


:0
* ! 
(^TO_(Eric.*Smith|eric.*fruitcom)|^In-Reply-To.*(Eric.*Smith|eric.*fruitcom)|^From:.*eric.*frui
tcom)|^References.*fruitcom
{
 :0B
 *  ^Eric Smith
 *  ^In-reply-to:(_dot_)*(_at_)fruitcom(_dot_)com>
 {
    :0f 
    | formail -I "X-eric-filter: not addressed to me but containing my name"
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 }

:0
* ^TOdebian-user(_at_)lists(_dot_)debian(_dot_)org
/dev/null

:0:
* ^Mailing-List: list \/[^(_at_)]+
`echo $MATCH | sed -e 's/[\/]/_/g'`

:0:
* ^Sender: owner-\/[^(_at_)]+
`echo $MATCH | sed -e 's/[\/]/_/g'`

... other dynamic list catchers ...

Where I marked the filter that adds a header, this is usually list
traffic that refers to (probably) me - i.e. I am in the thread
but not addresses to me directly.  I want a copy in the list folder 
and another copy to default delivery - how?

For the same situation, I am considering keeping a cache
of Message-ID:'s for all mail that I send out, then check incoming mail for
In-reply-to:'s containing the Message-ID and act accordingly.

thanx

-- 
Eric Smith
_______________________________________________
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>