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 E38BA4196F3 for ; Fri, 26 Mar 2010 14:41:54 -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 rGM73va4UU5y for ; Fri, 26 Mar 2010 14:41:54 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 0CF764196F2 for ; Fri, 26 Mar 2010 14:41:54 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 69B7619F3431; Fri, 26 Mar 2010 22:41:53 +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 Iolh6ciRFT8G; Fri, 26 Mar 2010 22:41:51 +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 1253D19F33ED; Fri, 26 Mar 2010 22:41:50 +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 BBDA415C062; Fri, 26 Mar 2010 22:41:45 +0100 (CET) Received: from wsh by steelpick.2x.cz with local (Exim 4.71) (envelope-from ) id 1NvHHk-0006f6-R1; Fri, 26 Mar 2010 22:41:44 +0100 From: Michal Sojka To: Ruben Pollan In-Reply-To: <20100323143714.GE28596@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> <878w9jcga6.fsf@steelpick.2x.cz> <20100323143714.GE28596@blackspot> Date: Fri, 26 Mar 2010 22:41:44 +0100 Message-ID: <87tys292w7.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: Fri, 26 Mar 2010 21:41:55 -0000 On Tue, 23 Mar 2010, Ruben Pollan wrote: > On 14:35, Tue 23 Mar 10, Michal Sojka wrote: > > 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/. > > True, I use fetchmail for download my email, it put the email in the new folder > without 'info'. > > > 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 think is better if new keeps the email where it is, only updates the database, > and when you remove the unread tag move the message from folder to folder. Some > mail readers (at least mutt) handles different the emails on the new folder than > the ones with no "S" flag con cur folder. > > > I'll try to implement it and send a new patch. > > That will be nice. Hi, Here is the updated patch series implementing your proposal. Let me know if it solves your problem. I also did some minor cleanups and included "Prevent data loss caused by SIGINT during notmuch new" patch which I've just sent separately. -Michal