Re: [PATCH] How to improve the mail handling workflow?
authorJameson Rollins <jrollins@finestructure.net>
Fri, 12 Nov 2010 15:33:33 +0000 (10:33 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:28 +0000 (09:37 -0800)
cd/c51c57bf5ce7eee1c0c5dbefe9e7fbaee3e4ee [new file with mode: 0644]

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