Re: [PATCH 0/3 v2 ] improve `notmuch-show-clean-address'
[notmuch-archives.git] / 9c / 3b45a58c31bca6d0ae619eb1fe4c14e5672a74
1 Return-Path: <chris@chris-wilson.co.uk>\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 EBDC6431FB5\r
6         for <notmuch@notmuchmail.org>; Sat, 29 Jan 2011 04:38:01 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.299\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.299 tagged_above=-999 required=5\r
12         tests=[MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_MED=-2.3]\r
13         autolearn=disabled\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 9Z5vCNT8fCZM for <notmuch@notmuchmail.org>;\r
17         Sat, 29 Jan 2011 04:38:00 -0800 (PST)\r
18 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24])\r
19         by olra.theworths.org (Postfix) with ESMTP id B469A431FB6\r
20         for <notmuch@notmuchmail.org>; Sat, 29 Jan 2011 04:38:00 -0800 (PST)\r
21 Received: from orsmga001.jf.intel.com ([10.7.209.18])\r
22         by orsmga102.jf.intel.com with ESMTP; 29 Jan 2011 04:37:59 -0800\r
23 Message-Id: <0d30dc$ktd0ab@orsmga001.jf.intel.com>\r
24 X-ExtLoop1: 1\r
25 X-IronPort-AV: E=Sophos;i="4.60,396,1291622400"; d="scan'208";a="701923659"\r
26 Received: from unknown (HELO cwilso3-mobl.ger.corp.intel.com)\r
27  ([10.255.16.161])      by orsmga001.jf.intel.com with SMTP; 29 Jan 2011 04:37:56\r
28  -0800\r
29 Received: by cwilso3-mobl.ger.corp.intel.com (sSMTP sendmail emulation);\r
30         Sat, 29 Jan 2011 12:37:55 +0000\r
31 Date: Sat, 29 Jan 2011 12:37:55 +0000\r
32 To: Jake Edge <jake@lwn.net>, Carl Worth <cworth@cworth.org>\r
33 Subject: Re: [PATCH] Add a few tests for searching LWN emails.\r
34 References: <1296124309-20072-1-git-send-email-thomas@schwinge.name>\r
35         <87vd18n6j9.fsf@yoom.home.cworth.org>\r
36         <20110128151754.57a98fa8@chukar>\r
37 From: Chris Wilson <chris@chris-wilson.co.uk>\r
38 In-Reply-To: <20110128151754.57a98fa8@chukar>\r
39 Cc: lwn@lwn.net, notmuch@notmuchmail.org,\r
40         Thomas Schwinge <thomas@schwinge.name>\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Sat, 29 Jan 2011 12:38:02 -0000\r
54 \r
55 On Fri, 28 Jan 2011 15:17:54 -0700, Jake Edge <jake@lwn.net> wrote:\r
56 > Hi Carl and Thomas, \r
57\r
58 > On Sat, 29 Jan 2011 05:59:38 +1000 Carl Worth wrote:\r
59\r
60 > > Yes, I believe this is related to the dot in the name. From my\r
61 > > recollection a name with an address requires quoting. So the header\r
62 > > that is currently formatted as:\r
63 > > \r
64 > >     From: LWN.net Weekly Notification <lwn@lwn.net>\r
65 > > \r
66 > > should instead be:\r
67 > > \r
68 > >     From: "LWN.net Weekly Notification" <lwn@lwn.net>\r
69\r
70 > I am by no means an expert, but http://www.ietf.org/rfc/rfc2821.txt\r
71 > would seem to indicate that names with a '.' in them don't need to be\r
72 > quoted as there are several lines in the Scenarios section that look\r
73 > like:\r
74\r
75 > C: From: John Q. Public <JQP@bar.com>\r
76\r
77 > unless the problem is XXX.yyy (i.e. no spaces on either side of the\r
78 > '.'), but that seems like a pretty arbitrary differentiator (i.e. 'Q. '\r
79 > is fine, but 'LWN.net' isn't)\r
80 \r
81 The syntax is defined in http://www.faqs.org/rfcs/rfc2822.html in\r
82 particular section 3.2.4. From that it appears the unquoted use of\r
83 [a-Z][.a-Z]* is valid. However, I shall leave the intricacies to those\r
84 whose understand and appreciate the whole problem...\r
85 -Chris\r
86 \r
87 -- \r
88 Chris Wilson, Intel Open Source Technology Centre\r