cli: also use Delivered-To header to figure out the reply from address
authorJani Nikula <jani@nikula.org>
Thu, 24 May 2012 05:15:49 +0000 (08:15 +0300)
committerDavid Bremner <bremner@debian.org>
Fri, 25 May 2012 00:56:21 +0000 (21:56 -0300)
commit22a18fc921cfd22d1c996ecb5c205fd142627e61
tree46f9317d29e15ff7d33b23d7ba1b710d6782dc41
parent308107e5ff5cf56bcc5a4bae1ee00b54be378dde
cli: also use Delivered-To header to figure out the reply from address

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@canonical.com>
Signed-off-by: Jani Nikula <jani@nikula.org>
notmuch-reply.c