From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 6B3FB431FBC for ; Sat, 16 Jan 2010 18:33:22 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.934 X-Spam-Level: X-Spam-Status: No, score=-1.934 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1.8, AWL=0.051, BAYES_40=-0.185] 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 TSZ3YZvb8DRE; Sat, 16 Jan 2010 18:33:21 -0800 (PST) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 0D47D431FAE; Sat, 16 Jan 2010 18:33:21 -0800 (PST) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id A9A01254090; Sat, 16 Jan 2010 18:33:17 -0800 (PST) From: Carl Worth To: Jameson Rollins In-Reply-To: <20100116233840.GA31869@finestructure.net> References: <20100114084713.GA22273@harikalardiyari> <87eilse1hg.fsf@yoom.home.cworth.org> <20100115001600.GD25209@lapse.rw.madduck.net> <87vdf3cd1y.fsf@yoom.home.cworth.org> <20100115210934.GA12515@harikalardiyari> <87r5prc64e.fsf@yoom.home.cworth.org> <20100116201803.GA19570@finestructure.net> <87bpgtd71q.fsf@yoom.home.cworth.org> <20100116233840.GA31869@finestructure.net> Date: Sat, 16 Jan 2010 18:33:17 -0800 Message-ID: <87pr59ihoy.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Cc: martin f krafft , notmuch@notmuchmail.org Subject: Re: inbox/unread tags for new messages [was: Re: Thoughts on notmuch and Lua] 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: Sun, 17 Jan 2010 02:33:22 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Sat, 16 Jan 2010 18:38:40 -0500, Jameson Rollins wrote: > Is it really a scheme change that would require delicate handling? Yes. > I would think that the change would be fairly straightforward: >=20 > - if notmuch sees that a message in the maildir has moved from new to > cur and/or the S flag has been added then any 'unread' flags should > be removed from the message. >=20 > - if a 'unread' tag is removed from a message, then the message S flag > should be added. I have thousands of messages that I have read with sup and notmuch. The filenames have never changed since the mail was originally delivered by maildrop. So these messages are all in "new" directories, do not have the 'S' flag in the filename, and do not have an "unread" tag. So the database and the filesystem are currently inconsistent and neither of the above state changes will trigger for any of these messages. Things "work" fine for me now because I'm treating the database state as authoritative and ignoring the names of the files. Your proposal is to treat the filenames as authoritative, so will require an additional step, (to copy the current state from the database to the file names), besides what you've outlineed above. =2DCarl --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLUnbt6JDdNq8qSWgRAmEkAJ9FM0nP5yMbWBAepynpeDhMq36c4gCgg8MO 3peYnW22zwDjlm4LFBGoFEE= =EVHZ -----END PGP SIGNATURE----- --=-=-=--