Re: [PATCH v2] debian: package ruby bindings
[notmuch-archives.git] / 5b / d47e32ce3129af10b338b8a0242087fb71e1c6
1 Return-Path: <amdragon@gmail.com>\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 51FD141ED93\r
6         for <notmuch@notmuchmail.org>; Fri,  1 Jul 2011 07:55:15 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.699\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001,\r
13         RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id avFKwAzyFr0w for <notmuch@notmuchmail.org>;\r
17         Fri,  1 Jul 2011 07:55:14 -0700 (PDT)\r
18 Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com\r
19         [209.85.216.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 8BD0441ED86\r
22         for <notmuch@notmuchmail.org>; Fri,  1 Jul 2011 07:55:14 -0700 (PDT)\r
23 Received: by qyk9 with SMTP id 9so2189003qyk.5\r
24         for <notmuch@notmuchmail.org>; Fri, 01 Jul 2011 07:55:13 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=mime-version:sender:in-reply-to:references:date\r
27         :x-google-sender-auth:message-id:subject:from:to:cc:content-type\r
28         :content-transfer-encoding;\r
29         bh=UJMkV0UwUTQf9t7I5b1BQ+dVypEj5dkma/xNfUHKiCo=;\r
30         b=DHEqfJB8LXqBpW9Y8vmwQ8YxhLwBZpxwkyHfx4dPywa/sWM90cbvKewPBO/ycEpXTV\r
31         YoFpLLhRPBlVli1gVJZECf2gxmzoeIzdQp8eT68c+swA0cvXk0lrNGtzGsQFAfNTnVFw\r
32         W6NSIljdkz/XYMhnj/9E3gMyR5Gbjduw1Edkc=\r
33 MIME-Version: 1.0\r
34 Received: by 10.229.106.32 with SMTP id v32mr2616575qco.77.1309532113634; Fri,\r
35         01 Jul 2011 07:55:13 -0700 (PDT)\r
36 Sender: amdragon@gmail.com\r
37 Received: by 10.229.249.193 with HTTP; Fri, 1 Jul 2011 07:55:13 -0700 (PDT)\r
38 In-Reply-To: <87r56brtxt.fsf@praet.org>\r
39 References: <8739itagad.fsf@yoom.home.cworth.org>\r
40         <1309450108-2793-1-git-send-email-pieter@praet.org>\r
41         <1309450108-2793-2-git-send-email-pieter@praet.org>\r
42         <87r56brtxt.fsf@praet.org>\r
43 Date: Fri, 1 Jul 2011 10:55:13 -0400\r
44 X-Google-Sender-Auth: Ivdxn_e_u2WGmM6XswSPWWGP7ok\r
45 Message-ID:\r
46  <CAH-f9WstN909tsDepsmPUvfgudkv0mHTzsvuRAeq0B+-ywtrrw@mail.gmail.com>\r
47 Subject: Re: [PATCH 2/2] [RFC] possible solution for "Race condition for '*'\r
48         command"\r
49 From: Austin Clements <amdragon@mit.edu>\r
50 To: Pieter Praet <pieter@praet.org>\r
51 Content-Type: text/plain; charset=ISO-8859-1\r
52 Content-Transfer-Encoding: quoted-printable\r
53 Cc: notmuch@notmuchmail.org\r
54 X-BeenThere: notmuch@notmuchmail.org\r
55 X-Mailman-Version: 2.1.13\r
56 Precedence: list\r
57 List-Id: "Use and development of the notmuch mail system."\r
58         <notmuch.notmuchmail.org>\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
62 List-Post: <mailto:notmuch@notmuchmail.org>\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
66 X-List-Received-Date: Fri, 01 Jul 2011 14:55:15 -0000\r
67 \r
68 On Thu, Jun 30, 2011 at 3:38 PM, Pieter Praet <pieter@praet.org> wrote:\r
69 > Ok, even though my very first reply [1] may have created the impression\r
70 > that I understood the issue, I clearly didn't...\r
71 >\r
72 > The test [2] needs a more applicable commit message, and the subsequent\r
73 > patch [3] points more or less in the right direction, but the Message-Id\r
74 > list should be local to the *search buffer* rather than to the\r
75 > `notmuch-search-operate-all' function.\r
76 >\r
77 > `notmuch-search' could:\r
78 > =A0- run "notmuch-command search" with the "--output=3Dmessages" option\r
79 > =A0 =A0instead of a plain search,\r
80 > =A0- maintain a buffer-local var with a list of returned Message-Id's,\r
81 > =A0- ...and populate the buffer based on that list.\r
82 >\r
83 > As such we'd have -for each individual search buffer- a canonical list\r
84 > of Message-Id's (i.e. messages which actually *match* the query AND are\r
85 > currently visible in the search buffer), to be used by\r
86 > `notmuch-search-operate-all' et al.\r
87 >\r
88 >\r
89 > Peace\r
90 >\r
91 > --\r
92 > Pieter\r
93 >\r
94 > [1] id:"87fwmuxxgd.fsf@praet.org"\r
95 > [2] id:"1309450108-2793-2-git-send-email-pieter@praet.org"\r
96 > [3] id:"1309450108-2793-1-git-send-email-pieter@praet.org"\r
97 \r
98 Ideally, this wouldn't be per-buffer, but per *line*.  This race\r
99 equally affects adding and removing tags from individual results,\r
100 since that's done using a thread: query, whose results could have\r
101 changed since the original search.\r
102 \r
103 This almost certainly requires support from the notmuch core.  The\r
104 good news is that the library already provides this information, so\r
105 there will be virtually no performance hit for outputting it.\r