1 Return-Path: <amdragon@mit.edu>
\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 A4132431FAF
\r
6 for <notmuch@notmuchmail.org>; Wed, 9 Oct 2013 07:11:56 -0700 (PDT)
\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 EtfEEY9Jcn2d for <notmuch@notmuchmail.org>;
\r
16 Wed, 9 Oct 2013 07:11:50 -0700 (PDT)
\r
17 Received: from dmz-mailsec-scanner-5.mit.edu (dmz-mailsec-scanner-5.mit.edu
\r
19 by olra.theworths.org (Postfix) with ESMTP id 51196431FAE
\r
20 for <notmuch@notmuchmail.org>; Wed, 9 Oct 2013 07:11:50 -0700 (PDT)
\r
21 X-AuditID: 12074422-b7f5a8e000000a34-fc-525564238d71
\r
22 Received: from mailhub-auth-3.mit.edu ( [18.9.21.43])
\r
23 by dmz-mailsec-scanner-5.mit.edu (Symantec Messaging Gateway) with SMTP
\r
24 id DF.FD.02612.32465525; Wed, 9 Oct 2013 10:11:47 -0400 (EDT)
\r
25 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])
\r
26 by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id r99EBkDt005590;
\r
27 Wed, 9 Oct 2013 10:11:47 -0400
\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])
\r
29 (authenticated bits=0)
\r
30 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
31 by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r99EBj4o020422
\r
32 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
\r
33 Wed, 9 Oct 2013 10:11:46 -0400
\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80)
\r
35 (envelope-from <amdragon@mit.edu>)
\r
36 id 1VTuUK-00050C-Rj; Wed, 09 Oct 2013 10:11:44 -0400
\r
37 Date: Wed, 9 Oct 2013 10:11:44 -0400
\r
38 From: Austin Clements <amdragon@MIT.EDU>
\r
39 To: Mark Walters <markwalters1009@gmail.com>
\r
40 Subject: Re: [PATCH 07/11] emacs: Use notmuch tag --batch for large tag
\r
42 Message-ID: <20131009141144.GO21611@mit.edu>
\r
43 References: <1381185201-25197-1-git-send-email-amdragon@mit.edu>
\r
44 <1381185201-25197-8-git-send-email-amdragon@mit.edu>
\r
45 <87vc18rzn3.fsf@qmul.ac.uk>
\r
47 Content-Type: text/plain; charset=us-ascii
\r
48 Content-Disposition: inline
\r
49 In-Reply-To: <87vc18rzn3.fsf@qmul.ac.uk>
\r
50 User-Agent: Mutt/1.5.21 (2010-09-15)
\r
51 X-Brightmail-Tracker:
\r
52 H4sIAAAAAAAAA+NgFmphleLIzCtJLcpLzFFi42IR4hTV1lVOCQ0y2L9dxmL1XB6L6zdnMjsw
\r
53 eeycdZfd49mqW8wBTFFcNimpOZllqUX6dglcGU8PzWUtOM5XMfPyZOYGxu3cXYycHBICJhJT
\r
54 V25ggbDFJC7cW8/WxcjFISSwj1Gi6ekDZghnA6PE2zdfmSCcU0wSvR0ToMqWMEq8eLiGGaSf
\r
55 RUBFYv2Xj6wgNpuAhsS2/csZQWwRAR2J24cWsIPYzALSEt9+NzOB2MICgRJXN7eD1fMC1Zy6
\r
56 8JgRYuhURonvT96zQCQEJU7OfMIC0awlcePfS6BmDrBBy/9xgIQ5gXatW3YfbKYo0A1TTm5j
\r
57 m8AoNAtJ9ywk3bMQuhcwMq9ilE3JrdLNTczMKU5N1i1OTszLSy3SNdXLzSzRS00p3cQICmx2
\r
58 F6UdjD8PKh1iFOBgVOLhfcAfEiTEmlhWXJl7iFGSg0lJlHd7TGiQEF9SfkplRmJxRnxRaU5q
\r
59 8SFGCQ5mJRFe42igHG9KYmVValE+TEqag0VJnPcWh32QkEB6YklqdmpqQWoRTFaGg0NJgvdD
\r
60 ElCjYFFqempFWmZOCUKaiYMTZDgP0PBTIDW8xQWJucWZ6RD5U4yKUuK8DIlACQGQREZpHlwv
\r
61 LPG8YhQHekWYtxeknQeYtOC6XwENZgIavP17CMjgkkSElFQDo5yCmKhKSdhJr3+P6nfqf0+9
\r
62 8OjWXiWBsOaiG+bM//z2zghW6HnuZG+88vzJ7qMdW3sTF6zd3VOYuKUnsHTppeSrnzoOsofk
\r
63 T5iWpB95OH7b6vrOVbdk3jUf3767mi9N+OvLOVlCHPUKLxhXT5jpq/9+0tfjMWsiHfqv3LJx
\r
64 l7q4Z1t3QaBplBJLcUaioRZzUXEiAFXg7agXAwAA
\r
65 Cc: notmuch@notmuchmail.org
\r
66 X-BeenThere: notmuch@notmuchmail.org
\r
67 X-Mailman-Version: 2.1.13
\r
69 List-Id: "Use and development of the notmuch mail system."
\r
70 <notmuch.notmuchmail.org>
\r
71 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
72 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
73 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
74 List-Post: <mailto:notmuch@notmuchmail.org>
\r
75 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
76 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
77 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
78 X-List-Received-Date: Wed, 09 Oct 2013 14:11:56 -0000
\r
80 Quoth Mark Walters on Oct 08 at 8:27 am:
\r
81 > On Mon, 07 Oct 2013, Austin Clements <amdragon@MIT.EDU> wrote:
\r
82 > > (Unfortunately, it's difficult to first demonstrate this problem with
\r
83 > > a known-broken test because modern Linux kernels have argument length
\r
84 > > limits in the megabytes, which makes Emacs really slow!)
\r
86 > > emacs/notmuch-lib.el | 8 ++++++++
\r
87 > > emacs/notmuch-tag.el | 12 ++++++++++--
\r
88 > > test/emacs | 8 ++++++++
\r
89 > > 3 files changed, 26 insertions(+), 2 deletions(-)
\r
91 > > diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
\r
92 > > index 22156f1..348112b 100644
\r
93 > > --- a/emacs/notmuch-lib.el
\r
94 > > +++ b/emacs/notmuch-lib.el
\r
95 > > @@ -261,6 +261,14 @@ user-friendly queries."
\r
96 > > "Return a query that matches the message with id ID."
\r
97 > > (concat "id:" (notmuch-escape-boolean-term id)))
\r
99 > > +(defun notmuch-hex-encode (str)
\r
100 > > + "Hex-encode STR (e.g., as used by batch tagging).
\r
102 > > +This replaces spaces, percents, and double quotes in STR with
\r
103 > > +%NN where NN is the hexadecimal value of the character."
\r
104 > > + (replace-regexp-in-string
\r
105 > > + "[ %\"]" (lambda (match) (format "%%%02x" (aref match 0))) str))
\r
109 > > (defun notmuch-common-do-stash (text)
\r
110 > > diff --git a/emacs/notmuch-tag.el b/emacs/notmuch-tag.el
\r
111 > > index 064cfa8..a4eec14 100644
\r
112 > > --- a/emacs/notmuch-tag.el
\r
113 > > +++ b/emacs/notmuch-tag.el
\r
114 > > @@ -242,6 +242,8 @@ from TAGS if present."
\r
115 > > (error "Changed tag must be of the form `+this_tag' or `-that_tag'")))))
\r
116 > > (sort result-tags 'string<)))
\r
118 > > +(defconst notmuch-tag-argument-limit 1000)
\r
121 > Another triviality: I think this should have a doc string saying use
\r
122 > batch tag if the query is longer than this.
\r
126 > The other patches in the series up to this point LGTM.
\r