Re: Applying patches directly from emails?
[notmuch-archives.git] / 28 / baf03f73caa545909a93ee3ef59664038be4ca
1 Return-Path: <cworth@cworth.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 4CC5C40CAE6\r
6         for <notmuch@notmuchmail.org>; Tue,  6 Apr 2010 18:55:46 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.89\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5\r
12         tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01]\r
13         autolearn=ham\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id YZSEiJOFWJKm; Tue,  6 Apr 2010 18:55:45 -0700 (PDT)\r
17 Received: from yoom.home.cworth.org (localhost [127.0.0.1])\r
18         by olra.theworths.org (Postfix) with ESMTP id 7D68B40CAE5;\r
19         Tue,  6 Apr 2010 18:55:45 -0700 (PDT)\r
20 Received: by yoom.home.cworth.org (Postfix, from userid 1000)\r
21         id 2816425400D; Tue,  6 Apr 2010 18:55:45 -0700 (PDT)\r
22 From: Carl Worth <cworth@cworth.org>\r
23 To: Dirk Hohndel <hohndel@infradead.org>, notmuch <notmuch@notmuchmail.org>\r
24 Subject: Re: [PATCH 2/2] guess From address from Received headers\r
25 In-Reply-To: <m3sk78xt3e.fsf@x200.gr8dns.org>\r
26 References: <m3sk78xt3e.fsf@x200.gr8dns.org>\r
27 Date: Tue, 06 Apr 2010 18:55:34 -0700\r
28 Message-ID: <87aatg6n6x.fsf@yoom.home.cworth.org>\r
29 MIME-Version: 1.0\r
30 Content-Type: multipart/signed; boundary="=-=-=";\r
31         micalg=pgp-sha1; protocol="application/pgp-signature"\r
32 X-BeenThere: notmuch@notmuchmail.org\r
33 X-Mailman-Version: 2.1.13\r
34 Precedence: list\r
35 List-Id: "Use and development of the notmuch mail system."\r
36         <notmuch.notmuchmail.org>\r
37 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
38         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
39 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
40 List-Post: <mailto:notmuch@notmuchmail.org>\r
41 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
42 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
44 X-List-Received-Date: Wed, 07 Apr 2010 01:55:46 -0000\r
45 \r
46 --=-=-=\r
47 \r
48 On Tue, 06 Apr 2010 12:45:57 -0700, Dirk Hohndel <hohndel@infradead.org> wrote:\r
49 >  When replying to a message notmuch tries to pick the correct From\r
50 >  address by looking which one of a user's configured email addresses\r
51 >  were included in To or Cc headers of the email that is being replied to.\r
52 >  If none of the users email addresses are in the To or Cc headers we now\r
53 >  try to guess from the first (chronologically, last) Received header\r
54 >  which domain this email was received in and therefore which of the\r
55 >  email addresses to use in a reply\r
56 >  If that fails we still use the primary email as From email\r
57 \r
58 Thanks, Dirk.\r
59 \r
60 This looks like an awfully useful and clever piece of\r
61 functionality. I've applied this patch, (with some tiny style\r
62 cleanups[*] afterwards), along with the previous patch that this depends\r
63 on.\r
64 \r
65 I'd like to have a test case in the test suite for this as well, but I'm\r
66 not going to make the patch block on that (instead I just added that to\r
67 TODO).\r
68 \r
69 -Carl\r
70 \r
71 [*] I really need to add a CODING_STYLE document to advertise my\r
72 preferred style issues. And before you ask, yes, there *is* a patch for\r
73 that.\r
74 \r
75 --=-=-=\r
76 Content-Type: application/pgp-signature\r
77 \r
78 -----BEGIN PGP SIGNATURE-----\r
79 Version: GnuPG v1.4.10 (GNU/Linux)\r
80 \r
81 iD8DBQFLu+YW6JDdNq8qSWgRAg12AJkBy9zLEwu8gvzgy6Ky+ArP9xKxlgCfQR/t\r
82 bTqJviAk9eGeuX7qU6NRLYE=\r
83 =LKCa\r
84 -----END PGP SIGNATURE-----\r
85 --=-=-=--\r