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 ABEC14196F2 for ; Mon, 12 Apr 2010 01:58:47 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.5 X-Spam-Level: X-Spam-Status: No, score=-0.5 tagged_above=-999 required=5 tests=[BAYES_05=-0.5] 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 NEhFeZ0P838k for ; Mon, 12 Apr 2010 01:58:46 -0700 (PDT) Received: from clegg.madduck.net (clegg.madduck.net [193.242.105.96]) by olra.theworths.org (Postfix) with ESMTP id 6234F431FC1 for ; Mon, 12 Apr 2010 01:58:46 -0700 (PDT) Received: from lapse.rw.madduck.net (lapse.rw.madduck.net [IPv6:2001:1620:f03::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "lapse.rw.madduck.net", Issuer "CAcert Class 3 Root" (verified OK)) by clegg.madduck.net (postfix) with ESMTPS id 2AF7D1D40A1; Mon, 12 Apr 2010 10:58:39 +0200 (CEST) Received: by lapse.rw.madduck.net (Postfix, from userid 1000) id 56DBC223F; Mon, 12 Apr 2010 10:18:05 +0200 (CEST) Date: Mon, 12 Apr 2010 10:18:05 +0200 From: martin f krafft To: Michal Sojka Subject: Re: [PATCH] Mailstore abstraction v4 - part 2 (maildir synchronization) Message-ID: <20100412081805.GA25971@lapse.rw.madduck.net> Mail-Followup-To: Michal Sojka , notmuch@notmuchmail.org References: <1270739592-30280-1-git-send-email-sojkam1@fel.cvut.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="fdj2RfSjLxBAspz7" Content-Disposition: inline In-Reply-To: <1270739592-30280-1-git-send-email-sojkam1@fel.cvut.cz> X-Motto: Keep the good times rollin' X-OS: Debian GNU/Linux squeeze/sid kernel 2.6.33-2-686 i686 X-Spamtrap: madduck.bogus@madduck.net X-Subliminal-Message: debian/rules! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: clamav-milter 0.95.3 at clegg X-Virus-Status: Clean Cc: notmuch@notmuchmail.org 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: Mon, 12 Apr 2010 08:58:47 -0000 --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable also sprach Michal Sojka [2010.04.08.1713 +0200]: > I'm working on the solution - if the mailstore cannot open the > message with the name passed, it tries different names with > different maildir flags. Wouldn't it be better to postpone synchronisation of the tags until after emacs is done with the message? I understand this might be hard to make work with mailstore abstraction. Wouldn't it make more sense to have emacs call 'notmuch cat', which returns the entire message, removes the unread tag, changes the filename, and updates the database? The message returned by cat would be stored in a temporary file for use by the client (emacs). And if the message was needed again, you could just search for it again. I dislike the idea of heuristically probing a Maildir for files. --=20 martin | http://madduck.net/ | http://two.sentenc.es/ =20 "i don't think so," said rene descartes. just then, he vanished. =20 spamtraps: madduck.bogus@madduck.net --fdj2RfSjLxBAspz7 Content-Type: application/pgp-signature; name="digital_signature_gpg.asc" Content-Description: Digital signature (see http://martin-krafft.net/gpg/) Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEAREDAAYFAkvC1z0ACgkQIgvIgzMMSnWHxACfW7uzubsQxbkfXrWjQ1Ss+Pgw nxMAn0xkMbkGPTrqpSEiz5idmwtlN4nq =iU4Y -----END PGP SIGNATURE----- --fdj2RfSjLxBAspz7--