1 Return-Path: <Sebastian@SSpaeth.de>
\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 7981D431FBC
\r
6 for <notmuch@notmuchmail.org>; Wed, 20 Jan 2010 02:32:18 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.413 tagged_above=-999 required=5
\r
12 tests=[AWL=-0.228, BAYES_40=-0.185] autolearn=ham
\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 7UdMuvYBgMjU for <notmuch@notmuchmail.org>;
\r
16 Wed, 20 Jan 2010 02:32:17 -0800 (PST)
\r
17 Received: from homiemail-a24.g.dreamhost.com (caiajhbdcbhh.dreamhost.com
\r
19 by olra.theworths.org (Postfix) with ESMTP id A7010431FAE
\r
20 for <notmuch@notmuchmail.org>; Wed, 20 Jan 2010 02:32:17 -0800 (PST)
\r
21 Received: from localhost.localdomain (mtec-hg-docking-2-dhcp-062.ethz.ch
\r
23 by homiemail-a24.g.dreamhost.com (Postfix) with ESMTPA id 386EC2C806D;
\r
24 Wed, 20 Jan 2010 02:32:15 -0800 (PST)
\r
25 From: Sebastian Spaeth <Sebastian@SSpaeth.de>
\r
26 To: notmuch <notmuch@notmuchmail.org>
\r
27 Date: Wed, 20 Jan 2010 11:32:10 +0100
\r
28 Message-Id: <1263983530-5588-1-git-send-email-Sebastian@SSpaeth.de>
\r
29 X-Mailer: git-send-email 1.6.3.3
\r
30 Subject: [notmuch] [PATCH] add notmuch-show-delete keybinding 'd'
\r
31 X-BeenThere: notmuch@notmuchmail.org
\r
32 X-Mailman-Version: 2.1.13
\r
34 List-Id: "Use and development of the notmuch mail system."
\r
35 <notmuch.notmuchmail.org>
\r
36 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
37 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
38 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
39 List-Post: <mailto:notmuch@notmuchmail.org>
\r
40 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
41 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
42 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
43 X-List-Received-Date: Wed, 20 Jan 2010 10:32:18 -0000
\r
45 It adds a tag 'delete' and removes the tags 'inbox' and 'unread'.
\r
47 Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
\r
49 notmuch.el | 8 ++++++++
\r
50 1 files changed, 8 insertions(+), 0 deletions(-)
\r
52 diff --git a/notmuch.el b/notmuch.el
\r
53 index 97914f2..ff930c9 100644
\r
57 (define-key map "m" 'message-mail)
\r
58 (define-key map "f" 'notmuch-show-forward-current)
\r
59 (define-key map "r" 'notmuch-show-reply)
\r
60 + (define-key map "d" 'notmuch-show-delete)
\r
61 (define-key map "|" 'notmuch-show-pipe-message)
\r
62 (define-key map "w" 'notmuch-show-save-attachments)
\r
63 (define-key map "V" 'notmuch-show-view-raw-message)
\r
64 @@ -369,6 +370,13 @@ buffer."
\r
65 (let ((message-id (notmuch-show-get-message-id)))
\r
66 (notmuch-reply message-id)))
\r
68 +(defun notmuch-show-delete ()
\r
69 + "'delete' current mail and remove 'unread' 'inbox'"
\r
71 + (notmuch-show-add-tag "delete")
\r
72 + (notmuch-show-remove-tag "unread")
\r
73 + (notmuch-show-remove-tag "inbox"))
\r
75 (defun notmuch-show-forward-current ()
\r
76 "Forward the current message."
\r