Guess 'From:' when doing notmuch reply
Damien Cassou
damien at cassou.me
Tue Sep 19 01:07:03 PDT 2017
> Damien Cassou <damien at cassou.me> writes:
>> Unfortunately, notmuch always got the From: field wrong when replying to
>> a (microsoft-exchange hosted) mailing list. The result of this is that I
>> always answer with the incorrect email address resulting in an error
>> message from the mailing list a few minutes after.
>>
>> Is there anything I can do to make notmuch properly guess the From:
>> field?
David Bremner <david at tethera.net> writes:
> I think we'll need more information, ideally a sample message where
> notmuch-reply (on the command line) guesses the reply address
> incorrectly.
I'm not sure my company would let me send you even headers of the
email. What I can tell is that my email address does not appear in the
headers (I had a look at
notmuch-reply.c/guess_from_in_received_headers()). I can't really blame
notmuch for not finding it then :-). But, the domain name of my email
address appears in many occasions:
- in the Received: field (which looks like " from: <domain name here>")
- in the To: field (the mailing list is hosted under the same domain)
- in the From: field (the user who sent the email has an email in the
same domain)
Unfortunately, there is no Received: field with a " by " matching my
domain.
Would it be possible to guess the From: field from "Received: from
<domain>"?
--
Damien Cassou
http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
More information about the notmuch
mailing list