Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / d0 / dddcbd83dfeb6ecbcf23e9e7ffd426ae65c0df
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 4EB2F6DE093A\r
6  for <notmuch@notmuchmail.org>; Sun, 26 Apr 2015 16:46:07 -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.332\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.332 tagged_above=-999 required=5 tests=[AWL=0.332]\r
12  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 ygA5r-bSThvQ for <notmuch@notmuchmail.org>;\r
16  Sun, 26 Apr 2015 16:46:05 -0700 (PDT)\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
18  [87.98.215.224])\r
19  by arlo.cworth.org (Postfix) with ESMTPS id BA9146DE02D6\r
20  for <notmuch@notmuchmail.org>; Sun, 26 Apr 2015 16:46:04 -0700 (PDT)\r
21 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
22  4.80) (envelope-from <david@tethera.net>)\r
23  id 1YmWEe-0002bb-E5; Sun, 26 Apr 2015 23:45:16 +0000\r
24 Received: (nullmailer pid 21469 invoked by uid 1000); Sun, 26 Apr 2015\r
25  23:45:03 -0000\r
26 From: David Bremner <david@tethera.net>\r
27 To: Mayeu <ml+notmuch@6x9.fr>\r
28 Subject: Re: Notmuch removing messages from the index, when calling `new` two\r
29  times in a row\r
30 In-Reply-To: <20150424112914.5ffef31c@azathoth>\r
31 References: <87y4llpiom.fsf@azathoth.devlab.ch>\r
32  <87mw1z8pxu.fsf@maritornes.cs.unb.ca>\r
33  <87fv7ruk2j.fsf@azathoth.i-did-not-set--mail-host-address--so-tickle-me>\r
34  <87oame7a93.fsf@maritornes.cs.unb.ca> <20150424112914.5ffef31c@azathoth>\r
35 User-Agent: Notmuch/0.19+96~g703c8f9 (http://notmuchmail.org) Emacs/24.4.1\r
36  (x86_64-pc-linux-gnu)\r
37 Date: Mon, 27 Apr 2015 08:45:03 +0900\r
38 Message-ID: <87k2wybgjk.fsf@maritornes.cs.unb.ca>\r
39 MIME-Version: 1.0\r
40 Content-Type: multipart/mixed; boundary="=-=-="\r
41 Cc: notmuch@notmuchmail.org\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.18\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46  <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Sun, 26 Apr 2015 23:46:07 -0000\r
55 \r
56 --=-=-=\r
57 Content-Type: text/plain\r
58 \r
59 Mayeu <ml+notmuch@6x9.fr> writes:\r
60 \r
61 > On Fri, 24 Apr 2015 07:25:28 +0900\r
62 > David Bremner <david@tethera.net> wrote:\r
63 >> OK. Please try running "notmuch new" (the second time) with --debug.\r
64 >\r
65 > The output is exactly the same, no other information. I also tried to\r
66 > add --verbose but same output. Both are accepted as valid since I do\r
67 > net get back any error, but the output is not changed.\r
68 >\r
69 \r
70 I think there is just not enough debugging output in this part of the\r
71 code. If you can compile from source, please try the attached patch\r
72 (it's against master, but I guess it should apply to 0.19 as well).\r
73 \r
74 \r
75 --=-=-=\r
76 Content-Type: text/x-diff\r
77 Content-Disposition: inline;\r
78  filename=0001-cli-new-add-more-debugging-output.patch\r
79 \r
80 >From 52975ecfdc754863e9ac9b465257a566845377c3 Mon Sep 17 00:00:00 2001\r
81 From: David Bremner <david@tethera.net>\r
82 Date: Mon, 27 Apr 2015 08:42:36 +0900\r
83 Subject: [PATCH] cli/new: add more debugging output\r
84 \r
85 Try to narrow down what part of the code adds files and directories to\r
86 the queue(s) to be deleted.\r
87 ---\r
88  notmuch-new.c | 14 ++++++++++++++\r
89  1 file changed, 14 insertions(+)\r
90 \r
91 diff --git a/notmuch-new.c b/notmuch-new.c\r
92 index e6c283e..39b0b9a 100644\r
93 --- a/notmuch-new.c\r
94 +++ b/notmuch-new.c\r
95 @@ -528,6 +528,10 @@ add_files (notmuch_database_t *notmuch,\r
96                                               "%s/%s", path,\r
97                                               notmuch_filenames_get (db_files));\r
98  \r
99 +           if (state->debug)\r
100 +               printf ("(D) add_files_recursive, pass 2: queuing passed file %s for deletion\n",\r
101 +                       absolute);\r
102 +\r
103             _filename_list_add (state->removed_files, absolute);\r
104  \r
105             notmuch_filenames_move_to_next (db_files);\r
106 @@ -542,6 +546,9 @@ add_files (notmuch_database_t *notmuch,\r
107             {\r
108                 char *absolute = talloc_asprintf (state->removed_directories,\r
109                                                   "%s/%s", path, filename);\r
110 +               if (state->debug)\r
111 +                   printf ("(D) add_files_recursive, pass 2: queuing passed directory %s for deletion\n",\r
112 +                       absolute);\r
113  \r
114                 _filename_list_add (state->removed_directories, absolute);\r
115             }\r
116 @@ -610,6 +617,9 @@ add_files (notmuch_database_t *notmuch,\r
117         char *absolute = talloc_asprintf (state->removed_files,\r
118                                           "%s/%s", path,\r
119                                           notmuch_filenames_get (db_files));\r
120 +       if (state->debug)\r
121 +           printf ("(D) add_files_recursive, pass 3: queuing leftover file %s for deletion\n",\r
122 +                   absolute);\r
123  \r
124         _filename_list_add (state->removed_files, absolute);\r
125  \r
126 @@ -622,6 +632,10 @@ add_files (notmuch_database_t *notmuch,\r
127                                           "%s/%s", path,\r
128                                           notmuch_filenames_get (db_subdirs));\r
129  \r
130 +       if (state->debug)\r
131 +           printf ("(D) add_files_recursive, pass 3: queuing leftover directory %s for deletion\n",\r
132 +                   absolute);\r
133 +\r
134         _filename_list_add (state->removed_directories, absolute);\r
135  \r
136         notmuch_filenames_move_to_next (db_subdirs);\r
137 -- \r
138 2.1.4\r
139 \r
140 \r
141 --=-=-=--\r