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 02F1040DDE6 for ; Fri, 12 Nov 2010 07:33:50 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -4.19 X-Spam-Level: X-Spam-Status: No, score=-4.19 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 1ur46-RFseW6 for ; Fri, 12 Nov 2010 07:33:39 -0800 (PST) Received: from brinza.cc.columbia.edu (brinza.cc.columbia.edu [128.59.29.8]) by olra.theworths.org (Postfix) with ESMTP id 44B2940DDE4 for ; Fri, 12 Nov 2010 07:33:39 -0800 (PST) Received: from servo.finestructure.net (cpe-74-66-82-137.nyc.res.rr.com [74.66.82.137]) (user=jgr2110 author=jrollins@finestructure.net mech=PLAIN bits=0) by brinza.cc.columbia.edu (8.14.4/8.14.3) with ESMTP id oACFXYAn007226 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Fri, 12 Nov 2010 10:33:36 -0500 (EST) Received: from jrollins by servo.finestructure.net with local (Exim 4.72) (envelope-from ) id 1PGvd8-00058s-8i; Fri, 12 Nov 2010 10:33:34 -0500 From: Jameson Rollins To: Matthieu Lemerre , notmuch@notmuchmail.org Subject: Re: [PATCH] How to improve the mail handling workflow? In-Reply-To: <87fwv65zw1.fsf@free.fr> References: <87fwv65zw1.fsf@free.fr> User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Fri, 12 Nov 2010 10:33:33 -0500 Message-ID: <87iq02wo8i.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.68 on 128.59.29.8 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: Fri, 12 Nov 2010 15:33:50 -0000 --=-=-= On Fri, 12 Nov 2010 16:23:58 +0100, Matthieu Lemerre wrote: > The emacs interface to notmuch gets in my way in at least several > manners: Hi, Matthieu. Here are some of the things I've done to deal with similar issues: > - I often find myself hitting the spacebar too much, which ends up with > some of my new messages being removed from all of their tags, which > make them very difficult to find. I don't think the spacebar should > remove the inbox tag at all. It should only change the unread tag. I agree that the function currently bound to space bar is annoying. I am actually in the middle of preparing a patch to fix this. I think that space should just scroll through the open messages. I don't want it to archive anything, or pop out of the currently viewed thread. I think this function is too aggressive as is. > - It does not provide a command for deleting mails. We were several > people who provided patches to add a 'd' keybinding to support > deletion. I provided a complex patch for that (that added "and not > tag:deleted" to all requests", but I now think that just adding a > "deleted" tag and removing the "inbox" tag would be sufficient). I agree that some built-in support for handling "deleted" tags is called for, but in the mean time it's very easy to make your own custom functions to drop into your emacs config. I have the following: (define-key notmuch-search-mode-map "d" (lambda () "delete thread and advance" (interactive) (notmuch-search-add-tag "deleted") (forward-line))) (define-key notmuch-show-mode-map "d" (lambda () "delete current message and advance" (interactive) (notmuch-show-add-tag "deleted") (notmuch-show-next-open-message-or-pop))) (define-key notmuch-search-mode-map "u" (lambda () "undelete thread" (interactive) (notmuch-search-remove-tag "deleted"))) (define-key notmuch-show-mode-map "u" (lambda () "undelete current message" (interactive) (notmuch-show-remove-tag "deleted"))) I do *not* think that adding the "deleted" tag should remove the inbox tag. If you want to view your inbox without seeing the deleted messages, then just use the search "tag:inbox and not tag:deleted". > - Processing mails which do not have any automatically added tag is > boring, because I need to press several keys to archive them: "+" to > add a tag, and then "a". If I forget about +, then my mail is > impossible to find. Again, I achieve archiving with some simple custom functions: (define-key notmuch-search-mode-map "a" (lambda () "archive thread and advance" (interactive) (notmuch-search-remove-tag "inbox") (notmuch-search-remove-tag "unread") (forward-line))) (define-key notmuch-show-mode-map "a" (lambda () "archive current message and advance" (interactive) (notmuch-show-remove-tag "inbox") (notmuch-show-next-open-message-or-pop))) (define-key notmuch-show-mode-map "i" (lambda () "add current message to inbox" (interactive) (notmuch-show-add-tag "inbox"))) jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCAAGBQJM3V5NAAoJEO00zqvie6q83p0QAKeDJfkh5hfOZBd2k4trpmdP hOkzzGiAemCRAzbfPsHmTS3l6KbY043qWccJZD1raskN+9LK5ClOhxUJfLrOTftu 3tX3idZn0sF4EFJ6ROQLFtbhmmsywsIjobNle7w2wbnNBOOBUqQRFIacE0WlXNa1 jy6+sRhKu6YdsyLFRUDcCyMaASPeL8irVBghrw6068XWd5Nxj7rCV21iv/GDmcb5 lqVFIYlu+fCM4wHAPPJ57j+St8ZduF50ABpyeX5Lmb1G7Mp6sxIFHRQOigKhcFpb NyYSJ18bMpEs3IXCLbDzdVgAMF3OPzYW62M5bUBqgFWLVF0z/WpDDyHG0iRRkRSR VEYp7F5igFSAu9fWnt05zvO0JImYyhEfQx7VynMQuBh6O0mHBT0uNM0jALsyVce7 pkA85UweWNW23ZOqamD7Aj3Ke6gPGelzD15elqHkmkDaTrBwvujpGvbKxY2h0HNo fLTT4NTZ4fzDVDqYf5TkiEdyzemwSN23ezrF+2QP/WVnX9zCTD7bBBQSeQOR1Wr5 16KX9tut0BAs3Tleo8nSUxIqqWZE0gWmvmNeHA7yHuKaEFtAm3dSpeNDCbc+a0H8 PiI0PL8qgiKAYny8gMlJMJT2kKiLJRkXe8/WLBB0zW5L3aQbrGrsjJcpDOcvJtvO ZgbMeziZZvQyNfcsQxid =kRYZ -----END PGP SIGNATURE----- --=-=-=--