Re: Applying patches directly from emails?
[notmuch-archives.git] / 8f / 99d1ab08a1fc0e5a80143f6b4151bdd61c39ae
1 Return-Path: <david@tethera.net>\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 arlo.cworth.org (Postfix) with ESMTP id 5A7AE6DE0A9A\r
6  for <notmuch@notmuchmail.org>; Sun, 14 Feb 2016 04:22:29 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.307\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.307 tagged_above=-999 required=5 tests=[AWL=0.244,\r
12   RP_MATCHES_RCVD=-0.55, SPF_PASS=-0.001] autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id ORlmMRsnt65U for <notmuch@notmuchmail.org>;\r
16  Sun, 14 Feb 2016 04:22:27 -0800 (PST)\r
17 Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
18  by arlo.cworth.org (Postfix) with ESMTPS id 519606DE0943\r
19  for <notmuch@notmuchmail.org>; Sun, 14 Feb 2016 04:22:27 -0800 (PST)\r
20 Received: from remotemail by fethera.tethera.net with local (Exim 4.84)\r
21  (envelope-from <david@tethera.net>)\r
22  id 1aUvgO-0001GV-Ji; Sun, 14 Feb 2016 07:21:44 -0500\r
23 Received: (nullmailer pid 5814 invoked by uid 1000);\r
24  Sun, 14 Feb 2016 12:22:24 -0000\r
25 From: David Bremner <david@tethera.net>\r
26 To: "W. Trevor King" <wking@tremily.us>\r
27 Cc: notmuch@notmuchmail.org\r
28 Subject: Re: problems with nmbug and empty prefix (UnicodeWarning and broken\r
29  pipe)\r
30 In-Reply-To: <20160214063132.GD4265@odin.tremily.us>\r
31 References: <87oabko293.fsf@zancas.localnet>\r
32  <20160213223357.GC4265@odin.tremily.us> <87ziv4813v.fsf@zancas.localnet>\r
33  <20160214063132.GD4265@odin.tremily.us>\r
34 User-Agent: Notmuch/0.21+26~g9404723 (http://notmuchmail.org) Emacs/24.5.1\r
35  (x86_64-pc-linux-gnu)\r
36 Date: Sun, 14 Feb 2016 08:22:24 -0400\r
37 Message-ID: <87twlbv5vj.fsf@zancas.localnet>\r
38 MIME-Version: 1.0\r
39 Content-Type: text/plain; charset=utf-8\r
40 Content-Transfer-Encoding: quoted-printable\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.20\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: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
52  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Sun, 14 Feb 2016 12:22:29 -0000\r
54 \r
55 "W. Trevor King" <wking@tremily.us> writes:\r
56 \r
57 \r
58 > On Sat, Feb 13, 2016 at 10:41:40PM -0400, David Bremner wrote:\r
59 >> Traceback (most recent call last):\r
60 >>   File "/home/bremner/.config/scripts/nmbug.real", line 834, in <module>\r
61 >>     args.func(**kwargs)\r
62 >>   File "/home/bremner/.config/scripts/nmbug.real", line 324, in commit\r
63 >>     status =3D get_status()\r
64 >>   File "/home/bremner/.config/scripts/nmbug.real", line 581, in get_stat=\r
65 us\r
66 >>     index =3D _index_tags()\r
67 >>   File "/home/bremner/.config/scripts/nmbug.real", line 621, in _index_t=\r
68 ags\r
69 >>     git.stdin.write(line)\r
70 \r
71 >\r
72 > This traceback is pointing at what should be a stream write, so I\r
73 > don't see how urllib is involved there at all.  I guess this traceback\r
74 > ends up in the =E2=80=9CBroken pipe=E2=80=9D message from your original p=\r
75 ost?\r
76 \r
77 yes\r
78 \r
79 >\r
80 >   for tag in tags:\r
81 >       _LOG.debug('building a quoted path for {!r} / {!r}'.format(id, tag))\r
82 >       path =3D 'tags/{id}/{tag}'.format(\r
83 >           id=3D_hex_quote(string=3Did), tag=3D_hex_quote(string=3Dtag))\r
84 >       yield '{mode} {hash}\t{path}\n'.format(mode=3Dmode, hash=3Dhash, pa=\r
85 th=3Dpath)\r
86 >\r
87 \r
88 I think the problem is not a bad tag, but a bad message-id. The last\r
89 line of output before the UnicodeWarning and the broken pipe is\r
90 \r
91 building a quoted path for u'D1B4DEBCAFFC4A05A4D4349A6EC5C9D8@\xd1\xe5\xf0\=\r
92 xe3\xe5\xe9-\xcf\xca' / u'unread'\r
93 \r
94 this corresponds to\r
95 \r
96       id:D1B4DEBCAFFC4A05A4D4349A6EC5C9D8@=C3=91=C3=A5=C3=B0=C3=A3=C3=A5=C3=\r
97 =A9-=C3=8F=C3=8A\r
98 \r
99 The original header looks like\r
100 \r
101     Message-ID: <D1B4DEBCAFFC4A05A4D4349A6EC5C9D8@=C3=91=C3=A5=C3=B0=C3=A3=\r
102 =C3=A5=C3=A9-=C3=8F=C3=8A>\r
103 \r
104 Visually I can't see what the encoding error might be, but I guess that\r
105 doesn't matter; we should be able to handle message-ids as opaque byte\r
106 strings.\r
107 \r
108 d\r