[PATCH] emacs: add support for stashing the thread id in show view
authorJani Nikula <jani@nikula.org>
Thu, 6 Dec 2012 20:57:23 +0000 (22:57 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:51:36 +0000 (09:51 -0800)
6f/b47f34fc725d1a2672a9b2e83739263165160a [new file with mode: 0644]

diff --git a/6f/b47f34fc725d1a2672a9b2e83739263165160a b/6f/b47f34fc725d1a2672a9b2e83739263165160a
new file mode 100644 (file)
index 0000000..af09496
--- /dev/null
@@ -0,0 +1,94 @@
+Return-Path: <jani@nikula.org>\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 2D60C431FB6\r
+       for <notmuch@notmuchmail.org>; Thu,  6 Dec 2012 12:57:30 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 3Tl4GViQcdtF for <notmuch@notmuchmail.org>;\r
+       Thu,  6 Dec 2012 12:57:29 -0800 (PST)\r
+Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com\r
+       [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 8738A431FAE\r
+       for <notmuch@notmuchmail.org>; Thu,  6 Dec 2012 12:57:29 -0800 (PST)\r
+Received: by mail-lb0-f181.google.com with SMTP id ge1so5898994lbb.26\r
+       for <notmuch@notmuchmail.org>; Thu, 06 Dec 2012 12:57:28 -0800 (PST)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=google.com; s=20120113;\r
+       h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state;\r
+       bh=E3s40yZSlYtEcOxT2ZmZ6FsXyahhvJT+wfnzAJmvex4=;\r
+       b=ch8tue0FwqkxdRsZg1iqtgp9haXBlFzuou2q5PcTE1ByHOm9vjjUnQ2JtRuQ2FVMHL\r
+       3kdaVlrtPtJwX/h5PchkNxmWvOTVPnV+DlRukdzMeT7ai750WK9zuCiI+fKa2bOUMaNo\r
+       ETA3A6wPMFVGmDb5ELsczbJLLciRYi/ygmo/Ab2C15i/x+7QFd3rocQhqRysroRczAOB\r
+       3DkJ/bzxCK3fbCbLm1riycno8nK/ageKZbzDaXxAdvXZTGHqNci0MlLgW4qvLAgHjVfO\r
+       Dn8m2dPC22WwX04fnDImaNNxao6mjBzmNI4CHVunxMC0dXbLgxPuhACQCnLvZPA8e3/K\r
+       qJoA==\r
+Received: by 10.112.101.135 with SMTP id fg7mr1581580lbb.87.1354827446761;\r
+       Thu, 06 Dec 2012 12:57:26 -0800 (PST)\r
+Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi.\r
+       [80.223.81.27])\r
+       by mx.google.com with ESMTPS id ee5sm3930122lbb.14.2012.12.06.12.57.24\r
+       (version=SSLv3 cipher=OTHER); Thu, 06 Dec 2012 12:57:25 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] emacs: add support for stashing the thread id in show view\r
+Date: Thu,  6 Dec 2012 22:57:23 +0200\r
+Message-Id: <1354827443-10549-1-git-send-email-jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.10.4\r
+X-Gm-Message-State:\r
+ ALoCoQnD7Mjy2EZ3W1auf13damc5cT0bK/+Gj2gLMZehBq45WBfFKDIxJzSwA1NDsFdMK+SI7kxf\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: Thu, 06 Dec 2012 20:57:30 -0000\r
+\r
+Add a prefix argument to notmuch-show-stash-message-id to stash thread\r
+id instead of message id.\r
+---\r
+ emacs/notmuch-show.el |   13 +++++++++----\r
+ 1 file changed, 9 insertions(+), 4 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+index 4d6c014..2245b4f 100644\r
+--- a/emacs/notmuch-show.el\r
++++ b/emacs/notmuch-show.el\r
+@@ -1901,10 +1901,15 @@ thread from search."\r
+   (interactive)\r
+   (notmuch-common-do-stash (notmuch-show-get-from)))\r
\r
+-(defun notmuch-show-stash-message-id ()\r
+-  "Copy id: query matching the current message to kill-ring."\r
+-  (interactive)\r
+-  (notmuch-common-do-stash (notmuch-show-get-message-id)))\r
++(defun notmuch-show-stash-message-id (&optional thread-id)\r
++  "Copy id: query matching the current message to kill-ring.\r
++\r
++If invoked with a prefix argument (or THREAD-ID is non-nil), copy\r
++thread: query matching the current thread to kill-ring."\r
++  (interactive "P")\r
++  (if thread-id\r
++      (notmuch-common-do-stash notmuch-show-thread-id)\r
++    (notmuch-common-do-stash (notmuch-show-get-message-id))))\r
\r
+ (defun notmuch-show-stash-message-id-stripped ()\r
+   "Copy message ID of current message (sans `id:' prefix) to kill-ring."\r
+-- \r
+1.7.10.4\r
+\r