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 4C91C4196F0 for ; Tue, 23 Mar 2010 07:33:50 -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 Y8CEFBIyzDCa for ; Tue, 23 Mar 2010 07:33:49 -0700 (PDT) Received: from flatline.sindominio.net (flatline.sindominio.net [82.144.4.26]) by olra.theworths.org (Postfix) with ESMTP id 09CFB431FC1 for ; Tue, 23 Mar 2010 07:33:48 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by flatline.sindominio.net (Postfix) with ESMTP id 4593B262612; Tue, 23 Mar 2010 15:33:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at sindominio.net Received: from flatline.sindominio.net ([127.0.0.1]) by localhost (flatline.sindominio.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NcWNQyhDHJCY; Tue, 23 Mar 2010 15:33:37 +0100 (CET) Received: from blackspot (rpollan-laptop.cern.ch [137.138.192.228]) by flatline.sindominio.net (Postfix) with ESMTPA id 263662625F8; Tue, 23 Mar 2010 15:33:37 +0100 (CET) Received: by blackspot (Postfix, from userid 1000) id 2AE1F8BE60; Tue, 23 Mar 2010 15:37:14 +0100 (CET) Date: Tue, 23 Mar 2010 15:37:14 +0100 From: Ruben Pollan To: Michal Sojka Message-ID: <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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gDGSpKKIBgtShtf+" Content-Disposition: inline In-Reply-To: <878w9jcga6.fsf@steelpick.2x.cz> User-Agent: Mutt/1.5.20 (2009-06-14) 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 14:33:50 -0000 --gDGSpKKIBgtShtf+ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 14:35, Tue 23 Mar 10, Michal Sojka wrote: > 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. > >=20 > > 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? >=20 > 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 fo= lder 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 data= base, and when you remove the unread tag move the message from folder to folder. = Some=20 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. --=20 Rub=E9n Poll=E1n | jabber:meskio@jabber.org -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D- Nos vamos a Croatan. --gDGSpKKIBgtShtf+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkuo0hoACgkQGKOQ92SwNMKPYwCgnP+xg/R+XYX6XIjwVzUfJVUj nMcAn2kHSRbm+2fbpFUqB1wKx0GxkcGe =Euph -----END PGP SIGNATURE----- --gDGSpKKIBgtShtf+--