Re: [RFC PATCH v2 0/3] notmuch-pick: an emacs threaded message view with split-pane
[notmuch-archives.git] / a4 / 4de2acc8cba233f2c2a28e9f9712fee4ec9eab
1 Return-Path: <sojkam1@fel.cvut.cz>\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 CF7344196F0\r
6         for <notmuch@notmuchmail.org>; Fri,  9 Apr 2010 00:49:22 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9] autolearn=ham\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id vmHB8aw9qlzP for <notmuch@notmuchmail.org>;\r
16         Fri,  9 Apr 2010 00:49:22 -0700 (PDT)\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
18         by olra.theworths.org (Postfix) with ESMTP id D69CB431FC1\r
19         for <notmuch@notmuchmail.org>; Fri,  9 Apr 2010 00:49:21 -0700 (PDT)\r
20 Received: from localhost (unknown [192.168.200.4])\r
21         by max.feld.cvut.cz (Postfix) with ESMTP id 38D3419F3391;\r
22         Fri,  9 Apr 2010 09:49:21 +0200 (CEST)\r
23 X-Virus-Scanned: IMAP AMAVIS\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])\r
25         by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
26         port 10044)\r
27         with ESMTP id PGsTzpBOPBPd; Fri,  9 Apr 2010 09:49:20 +0200 (CEST)\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
29         by max.feld.cvut.cz (Postfix) with ESMTP id BE0BC19F33B9;\r
30         Fri,  9 Apr 2010 09:49:19 +0200 (CEST)\r
31 Received: from steelpick.2x.cz (k335-30.felk.cvut.cz [147.32.86.30])\r
32         (Authenticated sender: sojkam1)\r
33         by imap.feld.cvut.cz (Postfix) with ESMTPSA id 52480FA003;\r
34         Fri,  9 Apr 2010 09:49:19 +0200 (CEST)\r
35 Received: from wsh by steelpick.2x.cz with local (Exim 4.71)\r
36         (envelope-from <sojkam1@fel.cvut.cz>)\r
37         id 1O08xq-0003F2-TA; Fri, 09 Apr 2010 09:49:18 +0200\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
39 To: Sebastian Spaeth <Sebastian@SSpaeth.de>,\r
40  micah anderson <micah@riseup.net>,\r
41         Notmuch development list <notmuch@notmuchmail.org>\r
42 Subject: Re: [notmuch] [Sebastian Spaeth] Pull requests\r
43 In-Reply-To: <87eiipt75i.fsf@SSpaeth.de>\r
44 References: <87iq9gi0z8.fsf@SSpaeth.de> <87hbo3vlrn.fsf@algae.riseup.net>\r
45         <87bpe9qr5f.fsf@SSpaeth.de> <87d3yb6dyh.fsf@algae.riseup.net>\r
46         <878w8y6py8.fsf@steelpick.2x.cz> <87eiipt75i.fsf@SSpaeth.de>\r
47 Date: Fri, 09 Apr 2010 09:49:18 +0200\r
48 Message-ID: <874ojlt69t.fsf@steelpick.2x.cz>\r
49 MIME-Version: 1.0\r
50 Content-Type: text/plain; charset=us-ascii\r
51 X-BeenThere: notmuch@notmuchmail.org\r
52 X-Mailman-Version: 2.1.13\r
53 Precedence: list\r
54 List-Id: "Use and development of the notmuch mail system."\r
55         <notmuch.notmuchmail.org>\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
59 List-Post: <mailto:notmuch@notmuchmail.org>\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
63 X-List-Received-Date: Fri, 09 Apr 2010 07:49:23 -0000\r
64 \r
65 On Fri, 09 Apr 2010, Sebastian Spaeth wrote:\r
66 > On 2010-04-08, Michal Sojka wrote:\r
67 > > I think that the patch you sent was not the latest version. The latest\r
68 > > is in id:1265122868-12133-1-git-send-email-sojkam1@fel.cvut.cz, but it\r
69 > > is not rebased to the current master.\r
70\r
71 > Not sure what I am doing wrong, but with this patch even after a\r
72 > dump/delete/new/restore. I get\r
73\r
74 > ./notmuch count to:\r
75 > 11788\r
76 > ./notmuch count folder:\r
77 > 247\r
78 > ./notmuch count folder:inbox\r
79 > 0\r
80 \r
81 Hi Sebastian,\r
82 \r
83 I do not have time to help you with this right now, but you can try the\r
84 following patch to debug what's happening. It should apply on top of\r
85 your issue28-search-folder-name branch.\r
86 \r
87 -Michal\r
88 \r
89 diff --git a/notmuch-new.c b/notmuch-new.c\r
90 index e787407..ebeb287 100644\r
91 --- a/notmuch-new.c\r
92 +++ b/notmuch-new.c\r
93 @@ -416,6 +416,7 @@ add_files_recursive (notmuch_database_t *notmuch,\r
94         case NOTMUCH_STATUS_SUCCESS:\r
95             state->added_messages++;\r
96             tag_inbox_and_unread (message);\r
97 +           printf("DBG: Added new message: folder=%s  message=%s\n", folder, next);\r
98             break;\r
99         /* Non-fatal issues (go on to next file) */\r
100         case NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID:\r