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 9C3B3431FD0 for ; Mon, 9 Jan 2012 02:46:41 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled 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 WArmuzo0XbI5 for ; Mon, 9 Jan 2012 02:46:37 -0800 (PST) Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 859C3431FB6 for ; Mon, 9 Jan 2012 02:46:37 -0800 (PST) Received: by wgbds11 with SMTP id ds11so1309606wgb.2 for ; Mon, 09 Jan 2012 02:46:36 -0800 (PST) Received: by 10.216.132.82 with SMTP id n60mr3563963wei.1.1326105996127; Mon, 09 Jan 2012 02:46:36 -0800 (PST) Received: from hotblack-desiato.hh.sledj.net (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25]) by mx.google.com with ESMTPS id fo18sm78644170wbb.12.2012.01.09.02.46.33 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 09 Jan 2012 02:46:34 -0800 (PST) Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) id 4491D9FC48; Mon, 9 Jan 2012 10:46:32 +0000 (GMT) To: Tomi Ollila , Jani Nikula , Austin Clements , Aaron Ecay Subject: Re: [PATCH] emacs: call "notmuch tag" only once when archiving a thread In-Reply-To: References: <1325615346-8302-1-git-send-email-jani@nikula.org> <87fwftao1b.fsf@nikula.org> <20120109011259.GD20796@mit.edu> <87k451clp0.fsf@nikula.org> User-Agent: Notmuch/0.10.2+151~gbf1dc2b (http://notmuchmail.org) Emacs/24.0.92.1 (x86_64-pc-linux-gnu) From: David Edmondson X-Now-Playing: Mike Morasky: You Know Her? (Portal 2: Songs to Test By) Date: Mon, 09 Jan 2012 10:46:28 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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, 09 Jan 2012 10:46:41 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 09 Jan 2012 12:38:58 +0200, Tomi Ollila wrote: > > The downside is that there's still a race condition: you could get new > > messages between checking the number of messages in the thread and > > tagging. The window for error would be much smaller than now, but it's > > still there. (You could check afterwards if this happened, and notify > > the user, "oooops, I just tagged N messages more than you intended"...) >=20 > And this could also be "false alarm" if the the new messages arrived > after tagging but before checking... Or another process could change the tags, meaning that the number stayed the same but the set changed. (Wheeee....) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk8KxYQACgkQaezQq/BJZRZu1wCdH4gUGZ8vk/AWhqAIYh58RBYi 1T4AoIDHDe5vOe1vjyor+LaLMN7WXTYF =uwmv -----END PGP SIGNATURE----- --=-=-=--