Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 22123431FBC for ; Sun, 13 May 2012 19:15:15 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jhKS3igXtoy7 for ; Sun, 13 May 2012 19:15:14 -0700 (PDT) Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) by olra.theworths.org (Postfix) with ESMTP id 55EFA431FAE for ; Sun, 13 May 2012 19:15:14 -0700 (PDT) Received: from [120.136.5.22] (helo=narsil) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1STkoa-0006G7-48; Mon, 14 May 2012 02:15:12 +0000 Received: by narsil (Postfix, from userid 1000) id C1CCD520111; Mon, 14 May 2012 14:15:07 +1200 (NZST) From: Michael Hudson-Doyle To: Jani Nikula , notmuch@notmuchmail.org Subject: Re: [PATCH 1/2] cli: also use Delivered-To header to figure out the reply from address In-Reply-To: <21a946917c5c8dd63295b7c87b7c2d1ebcb6e71e.1336746160.git.jani@nikula.org> References: <21a946917c5c8dd63295b7c87b7c2d1ebcb6e71e.1336746160.git.jani@nikula.org> User-Agent: Notmuch/0.13~rc1+2~g4ba3aed (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Mon, 14 May 2012 14:15:07 +1200 Message-ID: <8762bz5x04.fsf@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2012 02:15:15 -0000 Jani Nikula 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 > Signed-off-by: Jani Nikula 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