procmail
[Top] [All Lists]

Re: Filtering out forwarded mail

2000-12-03 10:35:29
On Sun, Dec 03, 2000 at 01:13:51PM +0100, Klas Brink wrote:
I have one mailaccount for several people and filter
out to which person's maildirectory a received mail
should go, using a receipe like below


-8<-

But this does not catch mail that has been forward
from another account (using .forward) nor mail
sent to mailing-lists the above persons are part of.
So how can I write a receipe that catches such mail
for them?

With a little luck, you can grab the destination email address from the
Received: headers, like this:

(example: headers of the mail im replying to)

Received: from nets5.rz.rwth-aachen.de (nets5.rz.RWTH-Aachen.DE 
[137.226.144.13])
        by wahalla.yuckfou.org (Yuckfou Networks) with ESMTP id B7E51B111
        for <nivo(_at_)yuckfou(_dot_)org>; Sun,  3 Dec 2000 17:38:56 +0100 
(CET)    

In the 3rd line, starting with "for", it stated my email address..

There is one bad side: It doesn't always work :/

-- 
GUI
What your computer becomes after spilling your coffee on it.
(pronounced 'gooey')

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