Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 1E33D431FBC for ; Wed, 20 Jan 2010 02:56:21 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[BAYES_50=0.001] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c1Q6Al7NBxn3 for ; Wed, 20 Jan 2010 02:56:20 -0800 (PST) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [212.27.42.5]) by olra.theworths.org (Postfix) with ESMTP id 10252431FAE for ; Wed, 20 Jan 2010 02:56:18 -0800 (PST) Received: from smtp5-g21.free.fr (localhost [127.0.0.1]) by smtp5-g21.free.fr (Postfix) with ESMTP id 40355D48216; Wed, 20 Jan 2010 11:56:11 +0100 (CET) Received: from zimbra1-e1.priv.proxad.net (zimbra1-e1.priv.proxad.net [172.20.243.151]) by smtp5-g21.free.fr (Postfix) with ESMTP id 04789D4822A; Wed, 20 Jan 2010 11:56:08 +0100 (CET) Date: Wed, 20 Jan 2010 11:56:07 +0100 (CET) From: racin@free.fr To: Sebastian Spaeth Message-ID: <1161359196.2247691263984967906.JavaMail.root@zimbra1-e1.priv.proxad.net> In-Reply-To: <1263983530-5588-1-git-send-email-Sebastian@SSpaeth.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [132.166.135.72] X-Mailer: Zimbra 5.0 (ZimbraWebClient - FF3.0 (Linux)/5.0.15_GA_2815.UBUNTU8_64) X-Authenticated-User: racin@free.fr Cc: notmuch Subject: Re: [notmuch] [PATCH] add notmuch-show-delete keybinding 'd' X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2010 10:56:21 -0000 Hi Sebastian, I posted a similar patch a while ago, that also did not show deleted messag= es by default. Don't know if Carl wants to=20 integrate this though Matthieu ----- Mail Original ----- De: "Sebastian Spaeth" =C3=80: "notmuch" Envoy=C3=A9: Mercredi 20 Janvier 2010 10h32:10 GMT +00:00 GMT - Grande-Bret= agne, Irlande, Portugal Objet: [notmuch] [PATCH] add notmuch-show-delete keybinding 'd' It adds a tag 'delete' and removes the tags 'inbox' and 'unread'. Signed-off-by: Sebastian Spaeth --- notmuch.el | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/notmuch.el b/notmuch.el index 97914f2..ff930c9 100644 --- a/notmuch.el +++ b/notmuch.el @@ -63,6 +63,7 @@ (define-key map "m" 'message-mail) (define-key map "f" 'notmuch-show-forward-current) (define-key map "r" 'notmuch-show-reply) + (define-key map "d" 'notmuch-show-delete) (define-key map "|" 'notmuch-show-pipe-message) (define-key map "w" 'notmuch-show-save-attachments) (define-key map "V" 'notmuch-show-view-raw-message) @@ -369,6 +370,13 @@ buffer." (let ((message-id (notmuch-show-get-message-id))) (notmuch-reply message-id))) =20 +(defun notmuch-show-delete () + "'delete' current mail and remove 'unread' 'inbox'" + (interactive) + (notmuch-show-add-tag "delete") + (notmuch-show-remove-tag "unread") + (notmuch-show-remove-tag "inbox")) + (defun notmuch-show-forward-current () "Forward the current message." (interactive) --=20 1.6.3.3 _______________________________________________ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch