Re: [PATCH v4 08/16] reorganize indexing of multipart/signed and multipart/encrypted
[notmuch-archives.git] / 06 / 3e74929f7317a19f36ca85337e9c3c4a2558e7
1 Return-Path: <bremner@tesseract.cs.unb.ca>\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 3678F6DE0222\r
6  for <notmuch@notmuchmail.org>; Sun, 27 Mar 2016 13:25:42 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.015\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.015 tagged_above=-999 required=5\r
12  tests=[AWL=-0.016, HEADER_FROM_DIFFERENT_DOMAINS=0.001]\r
13  autolearn=disabled\r
14 Received: from arlo.cworth.org ([127.0.0.1])\r
15  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
16  with ESMTP id q-UEzZ1VvkcW for <notmuch@notmuchmail.org>;\r
17  Sun, 27 Mar 2016 13:25:34 -0700 (PDT)\r
18 Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
19  by arlo.cworth.org (Postfix) with ESMTPS id E99A46DE01F9\r
20  for <notmuch@notmuchmail.org>; Sun, 27 Mar 2016 13:25:33 -0700 (PDT)\r
21 Received: from remotemail by fethera.tethera.net with local (Exim 4.84)\r
22  (envelope-from <bremner@tesseract.cs.unb.ca>)\r
23  id 1akHGA-0003Ba-BG; Sun, 27 Mar 2016 16:26:06 -0400\r
24 Received: (nullmailer pid 23879 invoked by uid 1000);\r
25  Sun, 27 Mar 2016 20:25:16 -0000\r
26 From: David Bremner <david@tethera.net>\r
27 To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
28 Subject: [PATCH] nmbug: ignore # comments\r
29 Date: Sun, 27 Mar 2016 17:25:11 -0300\r
30 Message-Id: <1459110311-23774-1-git-send-email-david@tethera.net>\r
31 X-Mailer: git-send-email 2.6.4\r
32 In-Reply-To: <1459015043-8460-9-git-send-email-david@tethera.net>\r
33 References: <1459015043-8460-9-git-send-email-david@tethera.net>\r
34 X-BeenThere: notmuch@notmuchmail.org\r
35 X-Mailman-Version: 2.1.20\r
36 Precedence: list\r
37 List-Id: "Use and development of the notmuch mail system."\r
38  <notmuch.notmuchmail.org>\r
39 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
40  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
41 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
42 List-Post: <mailto:notmuch@notmuchmail.org>\r
43 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
44 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
45  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
46 X-List-Received-Date: Sun, 27 Mar 2016 20:25:42 -0000\r
47 \r
48 Lines starting with # have always (for a long time, anyway) been ignored\r
49 by notmuch-restore, but have not been generated by notmuch-dump\r
50 previously.  In order to make nmbug robust against such output, ignore\r
51 comment lines.\r
52 ---\r
53 \r
54  Even if we decide to change the default output of notmuch dump to not\r
55  contain any comments, this fix will be reasonable in terms of\r
56  increasing robustness against future breakage.\r
57 \r
58  devel/nmbug/nmbug | 2 ++\r
59  1 file changed, 2 insertions(+)\r
60 \r
61 diff --git a/devel/nmbug/nmbug b/devel/nmbug/nmbug\r
62 index 81f582c..0787b2b 100755\r
63 --- a/devel/nmbug/nmbug\r
64 +++ b/devel/nmbug/nmbug\r
65 @@ -608,6 +608,8 @@ def _index_tags():\r
66                  stdin=_subprocess.PIPE,\r
67                  additional_env={'GIT_INDEX_FILE': path}) as git:\r
68              for line in notmuch.stdout:\r
69 +                if line.strip().startswith('#'):\r
70 +                    continue\r
71                  (tags_string, id) = [_.strip() for _ in line.split(' -- id:')]\r
72                  tags = [\r
73                      _unquote(tag[len(prefix):])\r
74 -- \r
75 2.6.4\r
76 \r