From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 789DF6DE0C51 for ; Wed, 2 Sep 2015 14:22:15 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.368 X-Spam-Level: X-Spam-Status: No, score=0.368 tagged_above=-999 required=5 tests=[AWL=-0.275, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, URIBL_SBL=0.644, URIBL_SBL_A=0.1] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D3APAF3ccG5r for ; Wed, 2 Sep 2015 14:22:13 -0700 (PDT) Received: from jim.zolnowski.name (jim.zolnowski.name [188.116.54.122]) by arlo.cworth.org (Postfix) with ESMTPS id 487556DE0B38 for ; Wed, 2 Sep 2015 14:22:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aidecoe.name; s=jim; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=kfcO8tnIbmLNsWSnpsXzDc5jkDFv13ordriFSRKouUU=; b=PZ+WLFV1YSvpZ1ROZ1O394/TR0Lyko+ss+v1E8aT1hTzJ1f2Umq2ZpB54ZnH7r8iMLEyB/PRND9+T9WOQ6dOV4wcBU2nPK0h9gU3W8Bae/DctETbdWtZq/9wc6kA11BffWvncrc7Nk7xLDUpDY/7FIG0LwzsI9418PwotkgR/PIDTUvUCw9e4juD4rnB/cn/xjvjskpj01IYbAIae/a9mi91LaTumpbWf20U9GqnIqvWpUacTZVw5ySLjn4WtQIxZRySezYV4TRl7yaBw43Kl2q6O+e56dzr8VnaIULYos/5d/3IVXWsh4ruwghxkB7bCh/Uv96Nc8vmgnm/5JY59Q==; Received: from cpc3-cmbg17-2-0-cust294.5-4.cable.virginm.net ([86.22.65.39] helo=localhost) by jim.zolnowski.name with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85) (envelope-from ) id 1ZXFTm-00008y-My; Wed, 02 Sep 2015 23:22:03 +0200 From: Amadeusz =?utf-8?B?xbtvxYJub3dza2k=?= To: David Bremner , David Mazieres expires 2015-11-29 PST Subject: Re: muchsync files renames In-Reply-To: <87vbbthd1m.fsf@maritornes.cs.unb.ca> References: <878u93ujdo.fsf@freja.aidecoe.name> <876146o920.fsf@ta.scs.stanford.edu> <871teu8kdd.fsf@freja.aidecoe.name> <87oahxojlv.fsf@ta.scs.stanford.edu> <87vbbwnbb4.fsf@freja.aidecoe.name> <87io7wr50y.fsf@ta.scs.stanford.edu> <87k2sbmzww.fsf@freja.aidecoe.name> <87oahnmkqf.fsf@ta.scs.stanford.edu> <87egijm7kw.fsf@freja.aidecoe.name> <878u8rvxap.fsf@ta.scs.stanford.edu> <87613tn45m.fsf@freja.aidecoe.name> <87vbbthd1m.fsf@maritornes.cs.unb.ca> User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Wed, 02 Sep 2015 22:21:56 +0100 Message-ID: <87r3mgldor.fsf@freja.aidecoe.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.18 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: Wed, 02 Sep 2015 21:22:15 -0000 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable David Bremner writes: > If I understand the code correctly, this movement will only happen > when one of the maildir-flag-equivalent tags is changed. I haven't dug > ack through the archives, but I think mutt uses presence in new/ as > some kind of extra unseen state, so people requested not to move files > until needed. When I have added 'unread' tag the file was still in new/. Only after removing 'unread' afterwards the file has been moved to cur/. So it seems you're right, but take a look at the following excerpt from T340-maildir-sync.sh: test_begin_subtest "Message in new with maildir info is moved to cur on= any tag change" add_message [filename]=3D'message-with-info-to-be-moved-to-cur:2,' [dir= ]=3Dnew notmuch tag +anytag id:$gen_msg_id output=3D$(cd "$MAIL_DIR"; ls */message-with-info-to-be-moved-to-cur*) test_expect_equal "$output" "cur/message-with-info-to-be-moved-to-cur:2= ," What is different about the test case and my case is that my mail file doesn't have ":2," suffix. Adding the suffix to file name makes it working as expect by test case. I see I would have to convert my mail files names, but I think this inconsistency in notmuch should also take some attention. =2D-=20 Amadeusz =C5=BBo=C5=82nowski --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.1 iQJ8BAEBCgBmBQJV52h0XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCMzcyRTFENjI5NUM1MzYwQTQwODQyRUZD QkNDODAyM0Y1OUUxNzA0AAoJEMvMgCP1nhcEJcMP/1Xwg+ghprqmWJNn7InYIwE8 tXI0lzSp66qZVKGydrBrY5OhvoIqcBzXDlDGgjpeyyZHS8JiLVn4oWKQUwtHoTPJ fzVs3iX8CczivK+aBH/5JgiN1i5hibgFRtrGMhlveX+rDQvluBQd2CEwiAwf8lwl QQ6JjUfX7uxkjI0Af/d91TaMwOv1ALGMgMaPpCQUYTbDR3/aRfXsP3NNEQOitGeM sszYAYSb8EWEFi4dByPl29O2uCJh0LoRDq6XpbkH6PqWjVgmrMsW4WgzvopMuI9u aY3cLe45OWrPQHIEYphiXQlASG+YnZjT/GihRSfqAqd6uQFJDBsRfBT86O184Xjk 2iyGTwiZodtDu8drCrTMnWPD+smiM5tR9Yk5yE9PtPSEDeQhWoERpHRJ9n8LI3Ba Ydg58NRO4vxVW/iTjh8jxZvzb7WgOcRiOOrtV1eOPTNtjShShUpg80h7Li8aTW2E ZfRJZ/6EkhxnPFeLgjrnz1LUEYrcCw/DI5QrRM95Yf2KTCK1YyY4GSzE15+ze1og amg3U/O9zeo/dlQQef0NfKu9MdyiPtzKPzqElz3Ky1QgmTiO1+LljU2mca/hG2wG bK5H/9tiSpj3EP4RW+qp4OKXoMnFshTbhXQB73j+rLuyQ3fNKpHDDk/gJ/PRitiu 0X1YFvDPte//dsn1Gz8L =Unnc -----END PGP SIGNATURE----- --=-=-=--