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 86CE44196F0 for ; Tue, 23 Mar 2010 06:35:19 -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 FFUeeP8Roo6i for ; Tue, 23 Mar 2010 06:35:17 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 74345431FC1 for ; Tue, 23 Mar 2010 06:35:17 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id A6E0719F33CA; Tue, 23 Mar 2010 14:35:16 +0100 (CET) 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 b21Um116sHWy; Tue, 23 Mar 2010 14:35:15 +0100 (CET) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id ED90019F33C1; Tue, 23 Mar 2010 14:35:14 +0100 (CET) Received: from steelpick.2x.cz (r5da224.net.upc.cz [86.49.116.224]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id CFC00FA003; Tue, 23 Mar 2010 14:35:14 +0100 (CET) Received: from wsh by steelpick.2x.cz with local (Exim 4.71) (envelope-from ) id 1Nu4GH-00073H-RK; Tue, 23 Mar 2010 14:35:13 +0100 From: Michal Sojka To: Ruben Pollan In-Reply-To: <20100323105644.GB28596@blackspot> References: <1268926780-20045-1-git-send-email-sojkam1@fel.cvut.cz> <1268926780-20045-4-git-send-email-sojkam1@fel.cvut.cz> <20100323105644.GB28596@blackspot> Date: Tue, 23 Mar 2010 14:35:13 +0100 Message-ID: <878w9jcga6.fsf@steelpick.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] [PATCH 3/4] Add maildir-based mailstore 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: Tue, 23 Mar 2010 13:35:19 -0000 On Tue, 23 Mar 2010, Ruben Pollan wrote: > On 16:39, Thu 18 Mar 10, Michal Sojka wrote: > > This mailstore allows bi-directional synchronization between maildir > > flags and certain tags. The flag-to-tag mapping is defined by flag2tag > > array. > > I'm trying it, the synchronization from my maildir to notmuch seems to work fine > except for the "unread" tag, it is never set. I use normally my maildir with > mutt, so the unread messages are on mail_folder/new. Could that be the problem? > is it a bug or something I do wrong? Yes, that's a bug. Messages in your mail_folder/new probably don't have any 'info' (flags) in their filename, which is correct with respect to http://cr.yp.to/proto/maildir.html. My patch incorrectly ignores the files without 'info'. I didn't catch this error because is seems that offlineimap puts 'info' part even to messages in new/. I think that the correct fix for this is to change how notmuch new works: Whenever a message in new/ is found, it will be moved to cur/ and in there is no info part it will be appended and the message will be tagged accordingly. I'll try to implement it and send a new patch. -Michal