1 Return-Path: <jani@nikula.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 81E1A429E32
\r
6 for <notmuch@notmuchmail.org>; Thu, 5 Jan 2012 12:58:36 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id 566X-1azUxHd for <notmuch@notmuchmail.org>;
\r
16 Thu, 5 Jan 2012 12:58:36 -0800 (PST)
\r
17 Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com
\r
18 [74.125.83.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
19 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
20 C897B429E31 for <notmuch@notmuchmail.org>; Thu, 5 Jan 2012 12:58:35 -0800
\r
22 Received: by eekd41 with SMTP id d41so778240eek.26
\r
23 for <notmuch@notmuchmail.org>; Thu, 05 Jan 2012 12:58:34 -0800 (PST)
\r
24 Received: by 10.14.11.164 with SMTP id 36mr1244806eex.107.1325797114479;
\r
25 Thu, 05 Jan 2012 12:58:34 -0800 (PST)
\r
26 Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi.
\r
28 by mx.google.com with ESMTPS id t1sm238417448eeb.3.2012.01.05.12.58.31
\r
29 (version=SSLv3 cipher=OTHER); Thu, 05 Jan 2012 12:58:32 -0800 (PST)
\r
30 From: Jani Nikula <jani@nikula.org>
\r
31 To: Jameson Graef Rollins <jrollins@finestructure.net>,
\r
32 Aaron Ecay <aaronecay@gmail.com>, notmuch@notmuchmail.org
\r
33 Subject: Re: [PATCH] emacs: call "notmuch tag" only once when archiving a
\r
35 In-Reply-To: <87vcop3mx1.fsf@servo.finestructure.net>
\r
36 References: <1325615346-8302-1-git-send-email-jani@nikula.org>
\r
37 <m2hb09kj0m.fsf@gmail.com> <87fwftao1b.fsf@nikula.org>
\r
38 <87vcop3mx1.fsf@servo.finestructure.net>
\r
39 User-Agent: Notmuch/0.10.2+182~g93862a2 (http://notmuchmail.org) Emacs/23.3.1
\r
41 Date: Thu, 05 Jan 2012 22:58:30 +0200
\r
42 Message-ID: <87d3axamtl.fsf@nikula.org>
\r
44 Content-Type: text/plain; charset=us-ascii
\r
45 X-BeenThere: notmuch@notmuchmail.org
\r
46 X-Mailman-Version: 2.1.13
\r
48 List-Id: "Use and development of the notmuch mail system."
\r
49 <notmuch.notmuchmail.org>
\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
53 List-Post: <mailto:notmuch@notmuchmail.org>
\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
57 X-List-Received-Date: Thu, 05 Jan 2012 20:58:36 -0000
\r
59 On Thu, 05 Jan 2012 12:38:18 -0800, Jameson Graef Rollins <jrollins@finestructure.net> wrote:
\r
60 > On Thu, 05 Jan 2012 22:32:16 +0200, Jani Nikula <jani@nikula.org> wrote:
\r
61 > > In the search view it does exactly this.
\r
63 > I worry about race conditions in this case, though. I frequently
\r
64 > archive threads after I've read everything, but I still want to know if
\r
65 > new message to that thread come in. If I attempt to archive a thread in
\r
66 > notmuch-search, but a new message has entered the thread without me
\r
67 > knowing it, I'll archive the new message before I had a chance to look
\r
70 Just to be clear: The patch in question does not alter this
\r
71 behaviour. The race you describe is there already.
\r
73 And at a glance, it does not look like something that would be trivial
\r
74 to fix. The buffer does not have the information to do that.
\r