]> git.notmuchmail.org Git - notmuch/commit
guess From address from Received headers
authorDirk Hohndel <hohndel@infradead.org>
Tue, 6 Apr 2010 19:45:57 +0000 (12:45 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 7 Apr 2010 01:47:40 +0000 (18:47 -0700)
commit4fd9ea05e896e77e388f3012e619f4e805282944
treecab325b900301fd03cdf494e13409fe3a7369e1e
parenta48f3687785b2c138b2c47848bd05512fc893a0b
guess From address from Received headers

When replying to a message notmuch tries to pick the correct From
 address by looking which one of a user's configured email addresses
 were included in To or Cc headers of the email that is being replied to.
 If none of the users email addresses are in the To or Cc headers we now
 try to guess from the first (chronologically, last) Received header
 which domain this email was received in and therefore which of the
 email addresses to use in a reply
 If that fails we still use the primary email as From email

Signed-off-by: Dirk Hohndel <hohndel@infradead.org>
notmuch-reply.c