Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id CF7344196F0 for ; Fri, 9 Apr 2010 00:49:22 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vmHB8aw9qlzP for ; Fri, 9 Apr 2010 00:49:22 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id D69CB431FC1 for ; Fri, 9 Apr 2010 00:49:21 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 38D3419F3391; Fri, 9 Apr 2010 09:49:21 +0200 (CEST) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id PGsTzpBOPBPd; Fri, 9 Apr 2010 09:49:20 +0200 (CEST) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id BE0BC19F33B9; Fri, 9 Apr 2010 09:49:19 +0200 (CEST) Received: from steelpick.2x.cz (k335-30.felk.cvut.cz [147.32.86.30]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id 52480FA003; Fri, 9 Apr 2010 09:49:19 +0200 (CEST) Received: from wsh by steelpick.2x.cz with local (Exim 4.71) (envelope-from ) id 1O08xq-0003F2-TA; Fri, 09 Apr 2010 09:49:18 +0200 From: Michal Sojka To: Sebastian Spaeth , micah anderson , Notmuch development list Subject: Re: [notmuch] [Sebastian Spaeth] Pull requests In-Reply-To: <87eiipt75i.fsf@SSpaeth.de> References: <87iq9gi0z8.fsf@SSpaeth.de> <87hbo3vlrn.fsf@algae.riseup.net> <87bpe9qr5f.fsf@SSpaeth.de> <87d3yb6dyh.fsf@algae.riseup.net> <878w8y6py8.fsf@steelpick.2x.cz> <87eiipt75i.fsf@SSpaeth.de> Date: Fri, 09 Apr 2010 09:49:18 +0200 Message-ID: <874ojlt69t.fsf@steelpick.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2010 07:49:23 -0000 On Fri, 09 Apr 2010, Sebastian Spaeth wrote: > On 2010-04-08, Michal Sojka wrote: > > I think that the patch you sent was not the latest version. The latest > > is in id:1265122868-12133-1-git-send-email-sojkam1@fel.cvut.cz, but it > > is not rebased to the current master. > > Not sure what I am doing wrong, but with this patch even after a > dump/delete/new/restore. I get > > ./notmuch count to: > 11788 > ./notmuch count folder: > 247 > ./notmuch count folder:inbox > 0 Hi Sebastian, I do not have time to help you with this right now, but you can try the following patch to debug what's happening. It should apply on top of your issue28-search-folder-name branch. -Michal diff --git a/notmuch-new.c b/notmuch-new.c index e787407..ebeb287 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -416,6 +416,7 @@ add_files_recursive (notmuch_database_t *notmuch, case NOTMUCH_STATUS_SUCCESS: state->added_messages++; tag_inbox_and_unread (message); + printf("DBG: Added new message: folder=%s message=%s\n", folder, next); break; /* Non-fatal issues (go on to next file) */ case NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID: