Re: [PATCH v4 16/16] add "notmuch reindex" subcommand
[notmuch-archives.git] / 16 / d2a9f57f8b9b0d8d15e0ebfc7dca9a5c1c0755
1 Return-Path: <jrollins@finestructure.net>\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 AD47D431FB6\r
6         for <notmuch@notmuchmail.org>; Tue, 15 May 2012 09:49:06 -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: -2.29\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 EmCab+wmMJbs for <notmuch@notmuchmail.org>;\r
16         Tue, 15 May 2012 09:49:06 -0700 (PDT)\r
17 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
18         [131.215.239.19])\r
19         by olra.theworths.org (Postfix) with ESMTP id 277ED431FAE\r
20         for <notmuch@notmuchmail.org>; Tue, 15 May 2012 09:49:06 -0700 (PDT)\r
21 Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
22         by fire-doxen-postvirus (Postfix) with ESMTP id C585532805B;\r
23         Tue, 15 May 2012 09:49:03 -0700 (PDT)\r
24 X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
25 Received: from finestructure.net (lair.fifthhorseman.net [108.58.6.98])\r
26         (Authenticated sender: jrollins)\r
27         by fire-doxen-submit (Postfix) with ESMTP id D9CCE328036;\r
28         Tue, 15 May 2012 09:49:00 -0700 (PDT)\r
29 Received: by finestructure.net (Postfix, from userid 1000)\r
30         id 94091995; Tue, 15 May 2012 09:48:59 -0700 (PDT)\r
31 From: Jameson Graef Rollins <jrollins@finestructure.net>\r
32 To: Pavel Panchekha <me@pavpanchekha.com>, notmuch@notmuchmail.org\r
33 Subject: Re: Mark feature in notmuch.el\r
34 In-Reply-To:\r
35  <CAE4=OQ80RLush229xi9uUu4VjG2tBrCmGcG7sGeVZbje7-ZBjw@mail.gmail.com>\r
36 References:\r
37  <CAE4=OQ80RLush229xi9uUu4VjG2tBrCmGcG7sGeVZbje7-ZBjw@mail.gmail.com>\r
38 User-Agent: Notmuch/0.12+183~g9d5ff3c (http://notmuchmail.org) Emacs/23.4.1\r
39         (x86_64-pc-linux-gnu)\r
40 Date: Tue, 15 May 2012 09:48:55 -0700\r
41 Message-ID: <87ipfxie4o.fsf@servo.finestructure.net>\r
42 MIME-Version: 1.0\r
43 Content-Type: multipart/signed; boundary="=-=-=";\r
44         micalg=pgp-sha256; protocol="application/pgp-signature"\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: Tue, 15 May 2012 16:49:06 -0000\r
58 \r
59 --=-=-=\r
60 \r
61 On Mon, May 14 2012, Pavel Panchekha <me@pavpanchekha.com> wrote:\r
62 > I was wondering if there were any plans to add a "mark" feature.  By\r
63 > hitting some keybinding, one could mark some set of mails and then apply\r
64 > operations to them as a batch.  This would be often useful for me for, for\r
65 > example, tagging all mails matching a search except some.  If there were a\r
66 > way to mark ranges, this would also make the syntax of date searches less\r
67 > painful.\r
68 \r
69 Hi, Pavel.  It wouldn't be hard to put together something like you're\r
70 suggesting with the current functionality:\r
71 \r
72 * add a key binding to add the tag "mark" to a message.  In emacs:\r
73 \r
74 (define-key notmuch-search-mode-map "q"\r
75   (lambda ()\r
76     "mark thread."\r
77     (interactive)\r
78     (notmuch-search-tag "+marked")))\r
79 \r
80 * add a key binding that runs "notmuch tag $TAG_CHANGES -- tag:mark":\r
81 \r
82 (define-key notmuch-search-mode-map "Q"\r
83   (lambda ()\r
84     "apply operation to marked threads."\r
85     (interactive)\r
86     (notmuch-tag "tag:marked" nil)))\r
87 \r
88 That last function should prompt for tags to apply to the marked\r
89 threads.\r
90 \r
91 Note: those functions are NOT TESTED, and require 0.13 (which is not\r
92 released yet).\r
93 \r
94 hth.\r
95 \r
96 jamie.\r
97 \r
98 --=-=-=\r
99 Content-Type: application/pgp-signature\r
100 \r
101 -----BEGIN PGP SIGNATURE-----\r
102 Version: GnuPG v1.4.12 (GNU/Linux)\r
103 \r
104 iQIcBAEBCAAGBQJPsoj3AAoJEO00zqvie6q8GC0P/RCwN4nAZQ/UaimGB442OJHP\r
105 qFvMyOY74c+eMA6ZIfECJKzkIyz5eYgyevcB2GNQfE9SXkBYwoTbJxp5Rvqi2tek\r
106 344542N+ZKJ0w/Cv5EIuV1zOjh1QgzFyhuWJCnWoQIIUCgVTejbQe/gdy3YoIWsg\r
107 137iFBI3opkTBCmHg53mLC0u70lewSvTV4EcEhoj9yFjBGfxJbh1NptzPtMyH7hV\r
108 LxsQnPlLW2A0VdOYDDH+RK25SV0/XzFxj5UCNh0C1w6OB1K9Z+Tg+X6aCTBkeCcP\r
109 ql7C7mG5OqDOp+svtEmnBXfLN9BJN2NLSbfPFyvZ/vS31f3JSg5dkeoa5G9KrMQP\r
110 1HkAWX1ZfoL1OskRZhvYPBjYW5FqbtqDPxg4QdaHdAv68VihAwVK963fF2DW00N3\r
111 YSITONvCJKEAixLqk6U4KgkzNvq7Ab+ooFniHeHJA0wuvS0Kq1CTdxYmNX+iwGTq\r
112 shZ1hTmsjdPcobyepGEyBok46jWR+sQpI8egkJtjWUnQrqgZ4tEc7/vBMFrkJwMN\r
113 nmxzKlA8F0dI4+uvuSMstbNGVEBJDQkLGlkaFYb7ESBF40HkCEcW/xk4taSVmIdG\r
114 rRaQUyM36hq2M3A6TMcFOYz5rbVIZkAtzwOQaeA7FjhMYl9bAk4J9dxERPyNFCFn\r
115 g8QJcbMMqtByhjlns0ya\r
116 =jbCX\r
117 -----END PGP SIGNATURE-----\r
118 --=-=-=--\r