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 4CC5C40CAE6 for ; Tue, 6 Apr 2010 18:55:46 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.89 X-Spam-Level: X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] autolearn=ham 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 YZSEiJOFWJKm; Tue, 6 Apr 2010 18:55:45 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 7D68B40CAE5; Tue, 6 Apr 2010 18:55:45 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id 2816425400D; Tue, 6 Apr 2010 18:55:45 -0700 (PDT) From: Carl Worth To: Dirk Hohndel , notmuch Subject: Re: [PATCH 2/2] guess From address from Received headers In-Reply-To: References: Date: Tue, 06 Apr 2010 18:55:34 -0700 Message-ID: <87aatg6n6x.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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: Wed, 07 Apr 2010 01:55:46 -0000 --=-=-= On Tue, 06 Apr 2010 12:45:57 -0700, Dirk Hohndel wrote: > 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 Thanks, Dirk. This looks like an awfully useful and clever piece of functionality. I've applied this patch, (with some tiny style cleanups[*] afterwards), along with the previous patch that this depends on. I'd like to have a test case in the test suite for this as well, but I'm not going to make the patch block on that (instead I just added that to TODO). -Carl [*] I really need to add a CODING_STYLE document to advertise my preferred style issues. And before you ask, yes, there *is* a patch for that. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLu+YW6JDdNq8qSWgRAg12AJkBy9zLEwu8gvzgy6Ky+ArP9xKxlgCfQR/t bTqJviAk9eGeuX7qU6NRLYE= =LKCa -----END PGP SIGNATURE----- --=-=-=--