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.