3 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] filtering according t...
FromSent OnAttachments
Payal RathodAug 7, 2006 9:18 am 
Jay LeeAug 7, 2006 10:00 am 
Sam VarshavchikAug 7, 2006 3:29 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] filtering according to To: nameActions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Aug 7, 2006 3:29:19 pm
List:net.sourceforge.lists.courier-maildrop

Jay Lee writes:

Payal Rathod wrote:

I know this is very very ugly but I want to have a try at this. Yep, that's ugly :-) A friend of mine has a requirement which I want to help out to make him turn towards Linux. He has one simple address ad@example.com. He has around 7 people in his company where each gets a mail to the same address like, User1 <ad@example.com> ... User7 <ad@example.com>

His mailing software (windows and old one) downloads the mails and according the part before <ad@example.com> i.e. (real names) filters them to respective boxes. How do I do it with maildrop, qmail, fetchmail (or getmail)?

OK, so if I understand it right if I wanted to email Joe Schmo the To: line should look like:

To: "Joe Schmo" <ad@example.com>

while if I wanted to email Jane Schmo the To: should look like:

To: "Jane Schmo" <ad@example.com>

So then, once you have Courier and maildrop running you should just be able to do a simple filter like so:

if (! /^To: Joe Schmo/:h) { to "/path/to/joes/mailstore" }

if (! /^To: Jane Schmo/:h) { to "/path/to/joes/mailstore" }

This won't work even with this example, because of the quote.

Furthermore, the following are all valid headers

To: "Jane Schmo" <ad@example.com>

To: Jane Schmo <ad@example.com>

To: ad@example.com (Jane Schmo)

And, of course, nothing will appear at all if the message was BCC-ed to this address.