1 Return-Path: <wking@tremily.us>
\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 24F19429E2E
\r
6 for <notmuch@notmuchmail.org>; Mon, 10 Feb 2014 10:42:03 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"
\r
12 X-Spam-Status: No, score=0 tagged_above=-999 required=5
\r
13 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001]
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id sXUopSH68hxU for <notmuch@notmuchmail.org>;
\r
18 Mon, 10 Feb 2014 10:41:55 -0800 (PST)
\r
19 Received: from qmta04.westchester.pa.mail.comcast.net
\r
20 (qmta04.westchester.pa.mail.comcast.net [76.96.62.40])
\r
21 by olra.theworths.org (Postfix) with ESMTP id 4E476431FBD
\r
22 for <notmuch@notmuchmail.org>; Mon, 10 Feb 2014 10:41:55 -0800 (PST)
\r
23 Received: from omta23.westchester.pa.mail.comcast.net ([76.96.62.74])
\r
24 by qmta04.westchester.pa.mail.comcast.net with comcast
\r
25 id QcWA1n0041c6gX854ihuBh; Mon, 10 Feb 2014 18:41:54 +0000
\r
26 Received: from odin.tremily.us ([24.18.63.50])
\r
27 by omta23.westchester.pa.mail.comcast.net with comcast
\r
28 id Qiht1n007152l3L3jiht9S; Mon, 10 Feb 2014 18:41:54 +0000
\r
29 Received: from mjolnir.tremily.us (unknown [192.168.0.140])
\r
30 by odin.tremily.us (Postfix) with ESMTPS id C322710167A5;
\r
31 Mon, 10 Feb 2014 10:41:52 -0800 (PST)
\r
32 Received: (nullmailer pid 1246 invoked by uid 1000);
\r
33 Mon, 10 Feb 2014 18:40:44 -0000
\r
34 From: "W. Trevor King" <wking@tremily.us>
\r
35 To: notmuch@notmuchmail.org
\r
36 Subject: [PATCH v2 02/20] nmbug-status: Use email.utils instead of rfc822
\r
37 Date: Mon, 10 Feb 2014 10:40:23 -0800
\r
39 <b04b828953b72ef3d444aba4cfc96cff68f47231.1392056624.git.wking@tremily.us>
\r
40 X-Mailer: git-send-email 1.8.5.2.8.g0f6c0d1
\r
41 In-Reply-To: <cover.1392056624.git.wking@tremily.us>
\r
42 References: <cover.1392056624.git.wking@tremily.us>
\r
43 In-Reply-To: <cover.1392056624.git.wking@tremily.us>
\r
44 References: <cover.1392056624.git.wking@tremily.us>
\r
45 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
\r
46 s=q20121106; t=1392057714;
\r
47 bh=MSPQvFkXROxe4kd3DfB67nEC6G5pbh8GAGl/oeKkuTw=;
\r
48 h=Received:Received:Received:Received:From:To:Subject:Date:
\r
50 b=k8XNXsJaIidgQ89t2gxTLsEPx3ElVfwqCjOe2DJCUZvJtPg8MF3/Le24svfmB5Unf
\r
51 s0Jvjjm1LICqfq6D4+e+1RuvcW3xi4LMk+Ib4s9iB7dZjVwJJVlwz9laYnGiYLik55
\r
52 2etUeXRpEah0jRCB8mQo0eOa8gwUL44o5BpjVGxv0uSvG83bunf2x8SJ+sge2c3B4U
\r
53 +h03cDqFM/gBekJ8C7Q6/RlUnvy4Y3ZMnElwei4DtTwuQDUjHDWXO5/smXWMPDrbTq
\r
54 1WZ/Qo5EzH9e2UZMIY4qSOJ3/Ndt9pEIDqitdHtwfQQ8VZdZU2qJb634ZjZYlWt0I+
\r
56 Cc: Tomi Ollila <tomi.ollila@iki.fi>
\r
57 X-BeenThere: notmuch@notmuchmail.org
\r
58 X-Mailman-Version: 2.1.13
\r
60 List-Id: "Use and development of the notmuch mail system."
\r
61 <notmuch.notmuchmail.org>
\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
65 List-Post: <mailto:notmuch@notmuchmail.org>
\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
68 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
69 X-List-Received-Date: Mon, 10 Feb 2014 18:42:03 -0000
\r
71 rfc822 has been deprecated since Python 2.3, and it's gone in
\r
74 [1]: http://docs.python.org/2/library/rfc822.html
\r
76 devel/nmbug/nmbug-status | 4 ++--
\r
77 1 file changed, 2 insertions(+), 2 deletions(-)
\r
79 diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status
\r
80 index b1feee9..6525176 100755
\r
81 --- a/devel/nmbug/nmbug-status
\r
82 +++ b/devel/nmbug/nmbug-status
\r
84 from __future__ import print_function
\r
92 @@ -128,7 +128,7 @@ def print_view(title, query, comment):
\r
93 val = str.join(' ', val.split(None)[1:4])
\r
94 val = str(datetime.datetime.strptime(val, '%d %b %Y').date())
\r
95 elif header == 'from':
\r
96 - (val, addr) = rfc822.parseaddr(val)
\r
97 + (val, addr) = email.utils.parseaddr(val)
\r
99 val = addr.split('@')[0]
\r