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 0EFA6431FAE for ; Thu, 25 Feb 2010 06:21:49 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.216 X-Spam-Level: X-Spam-Status: No, score=-0.216 tagged_above=-999 required=5 tests=[AWL=-0.317, BAYES_50=0.001, RDNS_DYNAMIC=0.1] autolearn=no 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 roTOtG7IGgmL for ; Thu, 25 Feb 2010 06:21:48 -0800 (PST) Received: from hackervisions.org (67-207-143-141.slicehost.net [67.207.143.141]) by olra.theworths.org (Postfix) with ESMTP id 9836B431FBF for ; Thu, 25 Feb 2010 06:21:48 -0800 (PST) Received: from ool-18bd392a.dyn.optonline.net ([24.189.57.42] helo=wyzanski.hackervisions.org) by hv with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1Nkeb1-0000nN-0p; Thu, 25 Feb 2010 09:21:43 -0500 Date: Thu, 25 Feb 2010 09:21:33 -0500 Message-ID: <87635ll7ki.wl%james@hackervisions.org> From: James Vasile To: "Sebastian Spaeth" In-Reply-To: <87eik9bn8l.fsf@SSpaeth.de> References: <1161359196.2247691263984967906.JavaMail.root@zimbra1-e1.priv.proxad.net> <87sk8qwjlt.fsf@yoom.home.cworth.org> <87tyt61mrl.fsf@servo.finestructure.net> <87eik9bn8l.fsf@SSpaeth.de> X-Mailer: Wanderlust/2.15.6 User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.1 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII 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: Thu, 25 Feb 2010 14:21:49 -0000 At Thu, 25 Feb 2010 11:53:14 +0100, Sebastian Spaeth wrote: > > On Wed, 24 Feb 2010 14:01:18 -0500, Jameson Rollins wrote: > > > 2. It removes the "inbox" and "unread" tags while adding the tag to > > > indicate deletion. > > > > Hey, Carl. Why is this last point important? [...]Why should it modify any other > > tags? A message/thread should be allowed to be both deleted and in the > > inbox. > > As long as deleted threads/messages show up in the default views, I > don't want them to show up in my inbox or show up as unread. I agree > that it might be possible to have "unread" yet "delete"d emails. But in > reality, if I delete a message I don't want it to pop up in my inbox. > > Feel free to apply patches however you want though, thanks to emacs, > I'll be able to get my desired behavior nonetheless :). > > > As for "unread", I think that should be handled by actually reading the > > message, not by manually applying a state to it. > > I agree, but deleting a message in my world view resets the unread tag > (as in, I don't want to read it anymore). This elisp might help. I run these when deleting messages in search or show modes. Basically, this means I never see deleted threads again. I also use these to mark spam. (defun notmuch-tags-strip-properties (tags) "return list of tags with emacs text properties removed tags is a list of tags where each tag is a string with emacs text properties " (mapcar '(lambda (tag) (set-text-properties 0 (length tag) nil tag) tag) tags)) (defun notmuch-show-remove-all-tags () "Remove all tags from the currently selected thread." (apply 'notmuch-show-remove-tag (notmuch-tags-strip-properties (notmuch-show-get-tags)))) (defun notmuch-search-remove-tags (&rest tags) "Remove multiple tags from the currently selected thread." (mapc 'notmuch-search-remove-tag tags)) (defun notmuch-search-remove-all-tags () "Remove all tags from the currently selected thread." (apply 'notmuch-search-remove-tags (notmuch-tags-strip-properties (notmuch-search-get-tags))))