Re: Avoiding the "huge INBOX of death"
[notmuch-archives.git] / 57 / 9acd03701109b416050743d1cd16ebe453fa35
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 510E96DE0AF8\r
6  for <notmuch@notmuchmail.org>; Sat, 13 Feb 2016 18:41:45 -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 OB-tYCJvNwCR for <notmuch@notmuchmail.org>;\r
16  Sat, 13 Feb 2016 18:41:43 -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 358F26DE0A9A\r
19  for <notmuch@notmuchmail.org>; Sat, 13 Feb 2016 18:41:42 -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 1aUmcO-0002eO-3T; Sat, 13 Feb 2016 21:41:00 -0500\r
23 Received: (nullmailer pid 14258 invoked by uid 1000);\r
24  Sun, 14 Feb 2016 02:41:40 -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: <20160213223357.GC4265@odin.tremily.us>\r
31 References: <87oabko293.fsf@zancas.localnet>\r
32  <20160213223357.GC4265@odin.tremily.us>\r
33 User-Agent: Notmuch/0.21+26~g9404723 (http://notmuchmail.org) Emacs/24.5.1\r
34  (x86_64-pc-linux-gnu)\r
35 Date: Sat, 13 Feb 2016 22:41:40 -0400\r
36 Message-ID: <87ziv4813v.fsf@zancas.localnet>\r
37 MIME-Version: 1.0\r
38 Content-Type: text/plain; charset=utf-8\r
39 Content-Transfer-Encoding: quoted-printable\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.20\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44  <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
46  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
51  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Sun, 14 Feb 2016 02:41:45 -0000\r
53 \r
54 "W. Trevor King" <wking@tremily.us> writes:\r
55 \r
56 >\r
57 >   $ nmbug --log-level debug commit\r
58 >\r
59 > which will give us the full traceback.\r
60 >\r
61 \r
62 Traceback (most recent call last):\r
63   File "/home/bremner/.config/scripts/nmbug.real", line 834, in <module>\r
64     args.func(**kwargs)\r
65   File "/home/bremner/.config/scripts/nmbug.real", line 324, in commit\r
66     status =3D get_status()\r
67   File "/home/bremner/.config/scripts/nmbug.real", line 581, in get_status\r
68     index =3D _index_tags()\r
69   File "/home/bremner/.config/scripts/nmbug.real", line 621, in _index_tags\r
70     git.stdin.write(line)\r
71 \r
72 > We only call =E2=80=98notmuch dump =E2=80=A6=E2=80=99 from _index_tags, w=\r
73 here dump's stdout is\r
74 > tweaked and fed into =E2=80=98git update-index =E2=80=A6=E2=80=99.  Your =\r
75 urllib UnicodeWarning\r
76 > suggests the issue lies in:\r
77 >\r
78 >   tags =3D [\r
79 >       _unquote(tag[len(prefix):])\r
80 >       for tag in tags_string.split()\r
81 >       if tag.startswith(prefix)]\r
82 \r
83 Looking at the source for urllib, that line is actually in quote, which\r
84 is called only from _hex_quote\r
85 \r
86 It turns out I only have a problem with python2.7; python3.4 completes\r
87 the commit. At a guess, that suggests a unicode problem of some kind.\r
88 Unfortunately despite my best efforts with filterwarnings, I couldn't\r
89 figure out how to get a stack trace for that UnicodeWarning.\r
90 \r
91 d\r