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

diff --git a/53/bdb5c39186fc9cf44a783c3241c86468dadae9 b/53/bdb5c39186fc9cf44a783c3241c86468dadae9
new file mode 100644 (file)
index 0000000..cfc3102
--- /dev/null
@@ -0,0 +1,99 @@
+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 A83FC431FB6\r
+       for <notmuch@notmuchmail.org>; Thu,  6 Dec 2012 14:48:10 -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 ak6uVhO2WAOe for <notmuch@notmuchmail.org>;\r
+       Thu,  6 Dec 2012 14:48:10 -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 17653431FAE\r
+       for <notmuch@notmuchmail.org>; Thu,  6 Dec 2012 14:48:09 -0800 (PST)\r
+Received: by mail-lb0-f181.google.com with SMTP id ge1so5974121lbb.26\r
+       for <notmuch@notmuchmail.org>; Thu, 06 Dec 2012 14:48:08 -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:in-reply-to:references\r
+       :x-gm-message-state;\r
+       bh=CKQES+M3ntljyAAZFcEACUrh+gLYbzQ3LGQBySOfUmc=;\r
+       b=LHvoffzhYecZttYZKH7kc68ygrxd/OMlcU70MVkyyM4LFSD352qdGhp9cc/jzGvt4b\r
+       kWzrmkEJk6BsVBVHLAUpDExvukStP4d+CejcE5PLDXS+JOGaQ2Ihh9n8wOcs2ev7uAYd\r
+       LhXiUnZ6g14PX6b5jPmqupVYqOh96yQKVPO3+YtXw5cF/mNtMfNOu/H4fyQ1hbviU2WG\r
+       gndGV4L8y0NblNg6iE10nfgUZtQEyhERKJNHp97AGHRSRm9qaP//uA+GGP/xY9iHV+6d\r
+       TWArlv97DNiVr8PzAibhPLFi6RnwUZHiA9Y2CVyLcF6/6A0pcyfRyyHnP0O/WUT6k0aM\r
+       2WHw==\r
+Received: by 10.112.42.233 with SMTP id r9mr1616454lbl.76.1354834088480;\r
+       Thu, 06 Dec 2012 14:48:08 -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 z9sm4006239lby.8.2012.12.06.14.48.06\r
+       (version=SSLv3 cipher=OTHER); Thu, 06 Dec 2012 14:48:07 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org,\r
+       Mark Walters <markwalters1009@gmail.com>\r
+Subject: [PATCH v2] emacs: add support for stashing the thread id in show view\r
+Date: Fri,  7 Dec 2012 00:48:05 +0200\r
+Message-Id: <1354834085-8225-1-git-send-email-jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.10.4\r
+In-Reply-To: <87mwxqhkqu.fsf@qmul.ac.uk>\r
+References: <87mwxqhkqu.fsf@qmul.ac.uk>\r
+X-Gm-Message-State:\r
+ ALoCoQmo4z0jztfrXhXJbBpqZD0lRU8n4TWSFzoOF0wHHFe5rj+HWbidjaZEMeRBv185OZI6RxVs\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 22:48:10 -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 |   14 ++++++++++----\r
+ 1 file changed, 10 insertions(+), 4 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+index 4d6c014..658a2be 100644\r
+--- a/emacs/notmuch-show.el\r
++++ b/emacs/notmuch-show.el\r
+@@ -1901,10 +1901,16 @@ 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 stash-thread-id)\r
++  "Copy id: query matching the current message to kill-ring.\r
++\r
++If invoked with a prefix argument (or STASH-THREAD-ID is\r
++non-nil), copy thread: query matching the current thread to\r
++kill-ring."\r
++  (interactive "P")\r
++  (if stash-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