From: Matthias A. <mat...@gm...> - 2006-07-29 15:39:19
|
"John" <fet...@je...> writes: > X-Original-To isn't always there. If I get a mail directed at a mailing list > or sent as a bcc then it isn't always obvious what the sender was. So it's not your upstream writing that header? > When the message hits procmail, I run a little script and this > extracts a likely original destination address, irrespective if it was > sent Bcc or via a list, This works in good weather, and fails in bad unfortunately. > I was originally trying to use Fetchmail's multidrop mode to do what I > wanted but I didn't fully understand the anatomy of an email so I read > the RFC and re-thought what I was doing. I don't know if I am doing > this the best way, but what I've got works for me - it's just a > prototype but it seems to be ok. The best is if your POP3 or IMAP service provider adds some reliable header, be it Delivered-To:, X-Original-To:, X-Envelope-To: or similar. If they don't, ask them if they can do that. <http://home.pages.de/~mandree/mail/multidrop> sums up requirements for multidrop in a way that is a tad less technical than a RFC. -- Matthias Andree |