Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / c1 / 78215d531aed85d7871ca77a47f8113ffe8444
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 C575D431FD0\r
6         for <notmuch@notmuchmail.org>; Mon,  9 Jan 2012 00:41:23 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \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 6jkvamzNU1KB for <notmuch@notmuchmail.org>;\r
16         Mon,  9 Jan 2012 00:41:23 -0800 (PST)\r
17 Received: from mail-tul01m020-f181.google.com (mail-tul01m020-f181.google.com\r
18         [209.85.214.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 254C7431FB6\r
21         for <notmuch@notmuchmail.org>; Mon,  9 Jan 2012 00:41:23 -0800 (PST)\r
22 Received: by obbup6 with SMTP id up6so4198760obb.26\r
23         for <notmuch@notmuchmail.org>; Mon, 09 Jan 2012 00:41:21 -0800 (PST)\r
24 Received: by 10.182.52.66 with SMTP id r2mr13643184obo.56.1326098481568;\r
25         Mon, 09 Jan 2012 00:41:21 -0800 (PST)\r
26 Received: from localhost (nikula.org. [92.243.24.172])\r
27         by mx.google.com with ESMTPS id h1sm73909077obj.3.2012.01.09.00.41.18\r
28         (version=SSLv3 cipher=OTHER); Mon, 09 Jan 2012 00:41:20 -0800 (PST)\r
29 From: Jani Nikula <jani@nikula.org>\r
30 To: Austin Clements <amdragon@MIT.EDU>, Aaron Ecay <aaronecay@gmail.com>\r
31 Subject: Re: [PATCH] emacs: call "notmuch tag" only once when archiving a\r
32         thread\r
33 In-Reply-To: <20120109011259.GD20796@mit.edu>\r
34 References: <1325615346-8302-1-git-send-email-jani@nikula.org>\r
35         <m2hb09kj0m.fsf@gmail.com> <87fwftao1b.fsf@nikula.org>\r
36         <m262glk82m.fsf@gmail.com> <20120109011259.GD20796@mit.edu>\r
37 User-Agent: Notmuch/0.10.2+129~g8a76c81 (http://notmuchmail.org) Emacs/23.1.1\r
38         (i686-pc-linux-gnu)\r
39 Date: Mon, 09 Jan 2012 08:41:15 +0000\r
40 Message-ID: <87k451clp0.fsf@nikula.org>\r
41 MIME-Version: 1.0\r
42 Content-Type: text/plain; charset=utf-8\r
43 Content-Transfer-Encoding: quoted-printable\r
44 Cc: notmuch@notmuchmail.org\r
45 X-BeenThere: notmuch@notmuchmail.org\r
46 X-Mailman-Version: 2.1.13\r
47 Precedence: list\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: Mon, 09 Jan 2012 08:41:23 -0000\r
58 \r
59 On Sun, 8 Jan 2012 20:12:59 -0500, Austin Clements <amdragon@MIT.EDU> wrote:\r
60 > Quoth Aaron Ecay on Jan 08 at  7:56 pm:\r
61 > > On Thu, 05 Jan 2012 22:32:16 +0200, Jani Nikula <jani@nikula.org> wrote:\r
62 > >=20\r
63 > > [...]\r
64 > >=20\r
65 > > > In the show view it only modifies the messages that are currently\r
66 > > > visible. This is to make sure you don't accidentally archive things t=\r
67 hat\r
68 > > > have arrived after refreshing the buffer. I think this is safest.\r
69 > >=20\r
70 > > Hmm.  Perhaps it would make sense to add a check in the search view that\r
71 > > the thread being archived[1] has the same number of messages as it did\r
72 > > when the buffer was constructed.  (The information on how many messages\r
73 > > the thread has is in the buffer; we would then compare this to the resu=\r
74 lt\r
75 > > of =E2=80=9Cnotmuch count thread:000foo=E2=80=9D when the user requests=\r
76  to archive.)  If\r
77 > > the counts don=E2=80=99t match, the interface should show a message in =\r
78 the echo\r
79 > > area and (probably) refuse to do the tagging.\r
80 >=20\r
81 > That sounds like a clever workaround.\r
82 \r
83 The downside is that there's still a race condition: you could get new\r
84 messages between checking the number of messages in the thread and\r
85 tagging. The window for error would be much smaller than now, but it's\r
86 still there. (You could check afterwards if this happened, and notify\r
87 the user, "oooops, I just tagged N messages more than you intended"...)\r
88 \r
89 J.\r