[PATCH 1/2] cli: also use Delivered-To header to figure out the reply from address

Michael Hudson-Doyle michael.hudson at canonical.com
Sun May 13 19:15:07 PDT 2012


Jani Nikula <jani at nikula.org> writes:

> Add another fallback header Delivered-To for guessing the user's from
> address for notmuch reply before using the Received
> headers. Apparently some MTAs use Delivered-To instead of
> X-Original-To (which already exists as a fallback).
>
> Reported-by: Michael Hudson-Doyle <michael.hudson at canonical.com>
> Signed-off-by: Jani Nikula <jani at nikula.org>

Firstly, thank you so much for doing this!

Unfortunately it doesn't work for me :( Poking around a bit reveals why:
I have two Delivered-To: headers in the problem mails, and only the
lower/earlier one containst the email address I want to be used as
From:.  And it seems that the only header one can get all values for is
Received...

Cheers,
mwh


More information about the notmuch mailing list