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 53C8D40DBD4 for ; Tue, 9 Nov 2010 15:39:48 -0800 (PST) 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=unavailable 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 i46CDZFti5Mq for ; Tue, 9 Nov 2010 15:39:35 -0800 (PST) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 2FAF740DBD3 for ; Tue, 9 Nov 2010 15:39:35 -0800 (PST) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 2436E19F334D; Wed, 10 Nov 2010 00:39:34 +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 vEqg5nFhwAmv; Wed, 10 Nov 2010 00:39:32 +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 DEE8819F334C; Wed, 10 Nov 2010 00:39:32 +0100 (CET) Received: from steelpick.2x.cz (note-sojka.felk.cvut.cz [147.32.86.30]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id 0E27FFA003; Wed, 10 Nov 2010 00:39:31 +0100 (CET) Received: from wsh by steelpick.2x.cz with local (Exim 4.72) (envelope-from ) id 1PFxml-0001JA-MA; Wed, 10 Nov 2010 00:39:31 +0100 From: Michal Sojka To: Carl Worth , notmuch@notmuchmail.org Subject: Re: [PATCH v4 0/4] Maildir synchronization In-Reply-To: <87oc9ykzae.fsf@yoom.home.cworth.org> References: <87tyk3vpxd.fsf@wsheee.2x.cz> <1288560558-18915-1-git-send-email-sojkam1@fel.cvut.cz> <877hgsrjau.fsf@yoom.home.cworth.org> <87d3qhq527.fsf@resox.2x.cz> <874obrmww9.fsf@yoom.home.cworth.org> <87iq066cbd.fsf@steelpick.2x.cz> <87oc9ykzae.fsf@yoom.home.cworth.org> User-Agent: Notmuch/0.4-30-ga01dbf0 (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Wed, 10 Nov 2010 00:39:31 +0100 Message-ID: <877hgm2hjg.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: Tue, 09 Nov 2010 23:39:48 -0000 On Tue, 09 Nov 2010, Carl Worth wrote: > The updating I've done here only goes as far as just before "Add a > message to new/ without info". And it looks like one change I made > inadvertently broke a later test, so it's expected that "Check that > removing info did not change tags" currently fails. [And this failure > shows what I don't like about test_expect_success---if we were using > test_expect_equal it would be trivial to see what problem I made > here.] Did you try ./maildyr-sync -v? In fact, this is what I don't like about test_begin_subtest. test_begin_subtest does not hide debug output that goes to stdout and should only be shown with -v. I admit that test_expect_success is not ideal though. Without -v, it should automatically show stdout when a test fails. I'll send patch for this in another mail. > > Finally, when going through these tests I saw: > > "Removing of unread tag should fail without cur/" > > And that's behavior I do not want. Adding and removing tags should be > reliable whether or not the maildir synchronization can succeed. In this > specific case, the right answer is probably to say that a directory > without "new" and "cur" is not a maildir so no synchronization should be > done. This only fails if the message is in */new and there is no */cur. > Notmuch does need to be able to support things like mh format still. Do > the current patches break that by doing maildir-style renaming in > non-maildir directories? I do not know if MH format has something special or it is just plain files in plain directories. If the latter, the synchronzation should work unless one of the directories is named 'new'. See the tests with fakenew directory [fakenew is probably not the most obvious name for a simple non-maildir directory]. > If so, we'll need to fix that as well. And that might require an > "is_maildir" term to be stored for directory documents in the > database. > > Again, that's something I can help with. If you think that what we have now is not sufficient, I'd need some help with this. -Michal P.S. Because of my work on test suite, I didn't do any additional tests for maildir synchronization, so maybe tomorrow :-(