Re: [notmuch] [PATCH] Simplify "unread" tag handling in emacs UI.
[notmuch-archives.git] / 28 / 83ce78ada6eb3d5be42ac057038ecec55a5af6
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 2EF47431FBC\r
6         for <notmuch@notmuchmail.org>; Wed, 17 Feb 2010 05:33:16 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.616\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.616 tagged_above=-999 required=5\r
12         tests=[AWL=-0.617, BAYES_50=0.001] 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 BZsMbOwu5GHK for <notmuch@notmuchmail.org>;\r
16         Wed, 17 Feb 2010 05:33:15 -0800 (PST)\r
17 Received: from homiemail-a17.g.dreamhost.com (caiajhbdcaid.dreamhost.com\r
18         [208.97.132.83])\r
19         by olra.theworths.org (Postfix) with ESMTP id 36784431FAE\r
20         for <notmuch@notmuchmail.org>; Wed, 17 Feb 2010 05:33:15 -0800 (PST)\r
21 Received: from sspaeth.de (mtec-hg-docking-1-dhcp-204.ethz.ch\r
22         [129.132.133.204])\r
23         by homiemail-a17.g.dreamhost.com (Postfix) with ESMTPA id 5F6527A8063; \r
24         Wed, 17 Feb 2010 05:33:13 -0800 (PST)\r
25 Received: by sspaeth.de (sSMTP sendmail emulation);\r
26         Wed, 17 Feb 2010 14:33:11 +0100\r
27 From: "Sebastian Spaeth" <Sebastian@SSpaeth.de>\r
28 To: Jameson Rollins <jrollins@finestructure.net>, Notmuch Mail list\r
29         <notmuch@notmuchmail.org>\r
30 In-Reply-To: <87ska1vh7r.fsf@servo.finestructure.net>\r
31 References: <87ska1vh7r.fsf@servo.finestructure.net>\r
32 Date: Wed, 17 Feb 2010 14:33:11 +0100\r
33 Message-ID: <87ljes0yy0.fsf@SSpaeth.de>\r
34 MIME-Version: 1.0\r
35 Content-Type: text/plain; charset=us-ascii\r
36 Subject: Re: [notmuch] [PATCH] Simplify "unread" tag handling in emacs UI.\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.13\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41         <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Wed, 17 Feb 2010 13:33:16 -0000\r
50 \r
51 On Tue, 19 Jan 2010 17:54:16 -0500, Jameson Rollins <jrollins@finestructure.net> wrote:\r
52 > This patch is intended to greatly simplify the handling of the\r
53 > "unread" tag in the emacs UI.  This patch adds a new function\r
54 > 'notmuch-show-mark-read', that removes the "unread" tag in\r
55 > notmuch-show-mode.  This function is then executed as a\r
56 > notmuch-show-hook, and by notmuch-show-next-message.  All of the\r
57 > functions that explicitly marked messages as unread are removed or\r
58 > renamed.\r
59 \r
60 Hi Jameson,\r
61 \r
62 I've been using this for quite some time now and I am pretty happy with\r
63 it. However, there is a problem with this approach as this renders the\r
64 function notmuch-show-next-unread-message useless. \r
65 \r
66 This proceeds to the next message, using\r
67 notmuch-show-next-message, which your patch marks automatically as read.\r
68 \r
69 It then checks the unread status in order to decide whether to proceed\r
70 to the next again. So with your patch notmuch-show-next-unread-message\r
71 will skip through all messages in a thread thinking they are all read\r
72 (and actually marking all as read).\r
73 \r
74 Sebastian\r