"Jason R. Mastaler" <[EMAIL PROTECTED]> writes on tmda-users:

> "Todd A. Jacobs" <[EMAIL PROTECTED]> writes:
>
>> Part of my questions is: Why does From_ need to be regenerated after
>> TMDA in the first place?
>
> I just realized that the MTA is already adding a From_ line before
> procmail or TMDA sees the message, so TMDA must be stripping
> it. Looking at code confirmed this suspicion.
>
> Can you do me a favor and apply the attached patch in your TMDA
> library directory (where Delivery.py lies) and see if it fixes your
> problem? If it does, I'll check it in tomorrow.

I hadn't noticed that the default for email's as_string() was to _not_
include the From_ line. :-(

Anyway, my patch simply retains From_ when doing a program
delivery. For the other three delivery types (forward, mbox (which
adds its own From_) and Maildir), the From_ is left off since it
shouldn't be necessary.

I think this is OK, as it mimics the behavior of Postfix's local,
which always includes From_ when doing program deliveries.
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to