--- /dev/null
+Return-Path: <jrollins@finestructure.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id AD47D431FB6\r
+ for <notmuch@notmuchmail.org>; Tue, 15 May 2012 09:49:06 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.29\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id EmCab+wmMJbs for <notmuch@notmuchmail.org>;\r
+ Tue, 15 May 2012 09:49:06 -0700 (PDT)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+ [131.215.239.19])\r
+ by olra.theworths.org (Postfix) with ESMTP id 277ED431FAE\r
+ for <notmuch@notmuchmail.org>; Tue, 15 May 2012 09:49:06 -0700 (PDT)\r
+Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+ by fire-doxen-postvirus (Postfix) with ESMTP id C585532805B;\r
+ Tue, 15 May 2012 09:49:03 -0700 (PDT)\r
+X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
+Received: from finestructure.net (lair.fifthhorseman.net [108.58.6.98])\r
+ (Authenticated sender: jrollins)\r
+ by fire-doxen-submit (Postfix) with ESMTP id D9CCE328036;\r
+ Tue, 15 May 2012 09:49:00 -0700 (PDT)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+ id 94091995; Tue, 15 May 2012 09:48:59 -0700 (PDT)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Pavel Panchekha <me@pavpanchekha.com>, notmuch@notmuchmail.org\r
+Subject: Re: Mark feature in notmuch.el\r
+In-Reply-To:\r
+ <CAE4=OQ80RLush229xi9uUu4VjG2tBrCmGcG7sGeVZbje7-ZBjw@mail.gmail.com>\r
+References:\r
+ <CAE4=OQ80RLush229xi9uUu4VjG2tBrCmGcG7sGeVZbje7-ZBjw@mail.gmail.com>\r
+User-Agent: Notmuch/0.12+183~g9d5ff3c (http://notmuchmail.org) Emacs/23.4.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Tue, 15 May 2012 09:48:55 -0700\r
+Message-ID: <87ipfxie4o.fsf@servo.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+ micalg=pgp-sha256; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 15 May 2012 16:49:06 -0000\r
+\r
+--=-=-=\r
+\r
+On Mon, May 14 2012, Pavel Panchekha <me@pavpanchekha.com> wrote:\r
+> I was wondering if there were any plans to add a "mark" feature. By\r
+> hitting some keybinding, one could mark some set of mails and then apply\r
+> operations to them as a batch. This would be often useful for me for, for\r
+> example, tagging all mails matching a search except some. If there were a\r
+> way to mark ranges, this would also make the syntax of date searches less\r
+> painful.\r
+\r
+Hi, Pavel. It wouldn't be hard to put together something like you're\r
+suggesting with the current functionality:\r
+\r
+* add a key binding to add the tag "mark" to a message. In emacs:\r
+\r
+(define-key notmuch-search-mode-map "q"\r
+ (lambda ()\r
+ "mark thread."\r
+ (interactive)\r
+ (notmuch-search-tag "+marked")))\r
+\r
+* add a key binding that runs "notmuch tag $TAG_CHANGES -- tag:mark":\r
+\r
+(define-key notmuch-search-mode-map "Q"\r
+ (lambda ()\r
+ "apply operation to marked threads."\r
+ (interactive)\r
+ (notmuch-tag "tag:marked" nil)))\r
+\r
+That last function should prompt for tags to apply to the marked\r
+threads.\r
+\r
+Note: those functions are NOT TESTED, and require 0.13 (which is not\r
+released yet).\r
+\r
+hth.\r
+\r
+jamie.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.12 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJPsoj3AAoJEO00zqvie6q8GC0P/RCwN4nAZQ/UaimGB442OJHP\r
+qFvMyOY74c+eMA6ZIfECJKzkIyz5eYgyevcB2GNQfE9SXkBYwoTbJxp5Rvqi2tek\r
+344542N+ZKJ0w/Cv5EIuV1zOjh1QgzFyhuWJCnWoQIIUCgVTejbQe/gdy3YoIWsg\r
+137iFBI3opkTBCmHg53mLC0u70lewSvTV4EcEhoj9yFjBGfxJbh1NptzPtMyH7hV\r
+LxsQnPlLW2A0VdOYDDH+RK25SV0/XzFxj5UCNh0C1w6OB1K9Z+Tg+X6aCTBkeCcP\r
+ql7C7mG5OqDOp+svtEmnBXfLN9BJN2NLSbfPFyvZ/vS31f3JSg5dkeoa5G9KrMQP\r
+1HkAWX1ZfoL1OskRZhvYPBjYW5FqbtqDPxg4QdaHdAv68VihAwVK963fF2DW00N3\r
+YSITONvCJKEAixLqk6U4KgkzNvq7Ab+ooFniHeHJA0wuvS0Kq1CTdxYmNX+iwGTq\r
+shZ1hTmsjdPcobyepGEyBok46jWR+sQpI8egkJtjWUnQrqgZ4tEc7/vBMFrkJwMN\r
+nmxzKlA8F0dI4+uvuSMstbNGVEBJDQkLGlkaFYb7ESBF40HkCEcW/xk4taSVmIdG\r
+rRaQUyM36hq2M3A6TMcFOYz5rbVIZkAtzwOQaeA7FjhMYl9bAk4J9dxERPyNFCFn\r
+g8QJcbMMqtByhjlns0ya\r
+=jbCX\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r