1 Return-Path: <m.walters@qmul.ac.uk>
\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 B40A0431FB6
\r
6 for <notmuch@notmuchmail.org>; Thu, 6 Dec 2012 23:53:24 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5
\r
12 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,
\r
13 NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id lWzl5K7DvUIX for <notmuch@notmuchmail.org>;
\r
17 Thu, 6 Dec 2012 23:53:24 -0800 (PST)
\r
18 Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6])
\r
19 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 1B5E7431FAE
\r
22 for <notmuch@notmuchmail.org>; Thu, 6 Dec 2012 23:53:24 -0800 (PST)
\r
23 Received: from smtp.qmul.ac.uk ([138.37.6.40])
\r
24 by mail2.qmul.ac.uk with esmtp (Exim 4.71)
\r
25 (envelope-from <m.walters@qmul.ac.uk>)
\r
26 id 1TgskJ-0003oE-TC; Fri, 07 Dec 2012 07:53:20 +0000
\r
27 Received: from 93-97-24-31.zone5.bethere.co.uk ([93.97.24.31] helo=localhost)
\r
28 by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69)
\r
29 (envelope-from <m.walters@qmul.ac.uk>)
\r
30 id 1TgskJ-0000qI-LY; Fri, 07 Dec 2012 07:53:19 +0000
\r
31 From: Mark Walters <markwalters1009@gmail.com>
\r
32 To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org
\r
33 Subject: Re: [PATCH v2] emacs: add support for stashing the thread id in show
\r
35 In-Reply-To: <1354834085-8225-1-git-send-email-jani@nikula.org>
\r
36 References: <87mwxqhkqu.fsf@qmul.ac.uk>
\r
37 <1354834085-8225-1-git-send-email-jani@nikula.org>
\r
38 User-Agent: Notmuch/0.14+81~g9730584 (http://notmuchmail.org) Emacs/23.4.1
\r
40 Date: Fri, 07 Dec 2012 07:53:18 +0000
\r
41 Message-ID: <87wqwu5mdt.fsf@qmul.ac.uk>
\r
43 Content-Type: text/plain; charset=us-ascii
\r
44 X-Sender-Host-Address: 93.97.24.31
\r
45 X-QM-SPAM-Info: Sender has good ham record. :)
\r
46 X-QM-Body-MD5: ccd9e98621d14583ccd31390052e26a6 (of first 20000 bytes)
\r
47 X-SpamAssassin-Score: -1.7
\r
48 X-SpamAssassin-SpamBar: -
\r
49 X-SpamAssassin-Report: The QM spam filters have analysed this message to
\r
51 spam. We require at least 5.0 points to mark a message as spam.
\r
52 This message scored -1.7 points.
\r
53 Summary of the scoring:
\r
54 * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,
\r
56 * [138.37.6.40 listed in list.dnswl.org]
\r
57 * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
\r
58 provider * (markwalters1009[at]gmail.com)
\r
59 * 0.6 AWL AWL: From: address is in the auto white-list
\r
60 X-QM-Scan-Virus: ClamAV says the message is clean
\r
61 X-BeenThere: notmuch@notmuchmail.org
\r
62 X-Mailman-Version: 2.1.13
\r
64 List-Id: "Use and development of the notmuch mail system."
\r
65 <notmuch.notmuchmail.org>
\r
66 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
67 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
68 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
69 List-Post: <mailto:notmuch@notmuchmail.org>
\r
70 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
71 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
72 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
73 X-List-Received-Date: Fri, 07 Dec 2012 07:53:24 -0000
\r
75 Jani Nikula <jani@nikula.org> writes:
\r
77 > Add a prefix argument to notmuch-show-stash-message-id to stash thread
\r
78 > id instead of message id.
\r
87 > emacs/notmuch-show.el | 14 ++++++++++----
\r
88 > 1 file changed, 10 insertions(+), 4 deletions(-)
\r
90 > diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
91 > index 4d6c014..658a2be 100644
\r
92 > --- a/emacs/notmuch-show.el
\r
93 > +++ b/emacs/notmuch-show.el
\r
94 > @@ -1901,10 +1901,16 @@ thread from search."
\r
96 > (notmuch-common-do-stash (notmuch-show-get-from)))
\r
98 > -(defun notmuch-show-stash-message-id ()
\r
99 > - "Copy id: query matching the current message to kill-ring."
\r
101 > - (notmuch-common-do-stash (notmuch-show-get-message-id)))
\r
102 > +(defun notmuch-show-stash-message-id (&optional stash-thread-id)
\r
103 > + "Copy id: query matching the current message to kill-ring.
\r
105 > +If invoked with a prefix argument (or STASH-THREAD-ID is
\r
106 > +non-nil), copy thread: query matching the current thread to
\r
108 > + (interactive "P")
\r
109 > + (if stash-thread-id
\r
110 > + (notmuch-common-do-stash notmuch-show-thread-id)
\r
111 > + (notmuch-common-do-stash (notmuch-show-get-message-id))))
\r
113 > (defun notmuch-show-stash-message-id-stripped ()
\r
114 > "Copy message ID of current message (sans `id:' prefix) to kill-ring."
\r