1 Return-Path: <mpn@google.com>
\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 906BC431FAF
\r
6 for <notmuch@notmuchmail.org>; Tue, 7 Aug 2012 08:33:01 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.8 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id 9hJQdzae+hkE for <notmuch@notmuchmail.org>;
\r
17 Tue, 7 Aug 2012 08:33:01 -0700 (PDT)
\r
18 Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com
\r
19 [209.85.215.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 95722431FC0
\r
22 for <notmuch@notmuchmail.org>; Tue, 7 Aug 2012 08:33:00 -0700 (PDT)
\r
23 Received: by eaan10 with SMTP id n10so1677000eaa.26
\r
24 for <notmuch@notmuchmail.org>; Tue, 07 Aug 2012 08:32:59 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
\r
26 s=20120113; h=from:to:subject:in-reply-to:organization:references:user-agent
\r
27 :x-face:face:x-pgp:x-pgp-fp:date:message-id:mime-version :content-type;
\r
28 bh=h0qdZrSUM/RogwqMFIUqgVQsmoSrh/I+oDAD+IVK9b0=;
\r
29 b=HQ//FTpJy3lyE5QXKAifMpOxtrD/PcwZ5iFJN2pBxY1Tb9Rdbx5gvPzawB/jhq8IIN
\r
30 72XoO3qu1haZay9IW6scaNO54bbLqbGYHt8lFsD6lX9QzCZpRh+KHPEm1GJ+Mxj6AmFk
\r
31 RzLO+KWtfc/Hcvn5URJJMvS8z2vTuwQ4Llszr8cUqFiSKg1kva56P5VSJ13cRTSDGtqY
\r
32 SWqdgKwdQR44rJgGwOmYII1AbomiqSZ3oK6WYjpi4PdJZoZqANeMPPCRzVuFGotnchUa
\r
33 fWDunpdlo/plKpArjykExQpJCtGrPpCFiiAc5rr+bWZ3J0g1TFLqcw946mYRTZ3RG5Hq XR6Q==
\r
34 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
35 d=google.com; s=20120113;
\r
36 h=from:to:subject:in-reply-to:organization:references:user-agent
\r
37 :x-face:face:x-pgp:x-pgp-fp:date:message-id:mime-version
\r
38 :content-type:x-gm-message-state;
\r
39 bh=h0qdZrSUM/RogwqMFIUqgVQsmoSrh/I+oDAD+IVK9b0=;
\r
40 b=mxznAuSVvppeF8UDMKSjxv6baideAcVbZHWgQBCbcxWwRvGVv1FBY1Sjj5DbngQRQZ
\r
41 XbM0mMabB7cDIeMPIs3fgZwdeciEf64fhIKy2E4NBzxbgE1laC3kmQAYU1FThqa+/I8z
\r
42 stNIf1V+L2GQ4NXnNFulkVFl0Fcb7UOJYyKmW6joda/7+vH8F4b7PaoLHbaNROcF1GBW
\r
43 bF6Uj/2VPgcrIKL13SUqmKx/UZVlj9xk8typKVHmeeNN9BuvjG7DBGJtfAsB0S5wxgB7
\r
44 iRdlhVIYHR60kL0QTaJ4+MGo+Y1AJGe6kfG8NdXEK2xnz6OSBEfZtA8BphVeOJowB9Ck
\r
46 Received: by 10.14.0.198 with SMTP id 46mr12102637eeb.30.1344353579021;
\r
47 Tue, 07 Aug 2012 08:32:59 -0700 (PDT)
\r
48 Received: by 10.14.0.198 with SMTP id 46mr12102622eeb.30.1344353578872;
\r
49 Tue, 07 Aug 2012 08:32:58 -0700 (PDT)
\r
50 Received: from mpn-glaptop ([2620:0:105f:5:f2de:f1ff:fe35:1a72])
\r
51 by mx.google.com with ESMTPS id g46sm56872806eep.15.2012.08.07.08.32.57
\r
52 (version=TLSv1/SSLv3 cipher=OTHER);
\r
53 Tue, 07 Aug 2012 08:32:57 -0700 (PDT)
\r
54 From: Michal Nazarewicz <mpn@google.com>
\r
55 To: Mark Walters <markwalters1009@gmail.com>, notmuch@notmuchmail.org
\r
56 Subject: Re: [PATCH] notmuch-show: add notmuch-show-auto-mark-read option
\r
57 In-Reply-To: <874noepwez.fsf@qmul.ac.uk>
\r
58 Organization: Google Inc
\r
60 <7c2931eb4d34ff78e4c73d721bc00dc60d185e6a.1344260116.git.mina86@mina86.com>
\r
61 <874noepwez.fsf@qmul.ac.uk>
\r
62 User-Agent: Notmuch/0.13.2 (http://notmuchmail.org) Emacs/24.1.50.2
\r
63 (x86_64-unknown-linux-gnu)
\r
64 X-Face: PbkBB1w#)bOqd`iCe"Ds{e+!C7`pkC9a|f)Qo^BMQvy\q5x3?vDQJeN(DS?|-^$uMti[3D*#^_Ts"pU$jBQLq~Ud6iNwAw_r_o_4]|JO?]}P_}Nc&"p#D(ZgUb4uCNPe7~a[DbPG0T~!&c.y$Ur,=N4RT>]dNpd; KFrfMCylc}gc??'U2j,!8%xdD
\r
65 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWbfGlUPDDHgE57V0jUupKjgIObY0PLrom9mH4dFRK4gmjPs41MxjOgAAACQElEQVQ4jW3TMWvbQBQHcBk1xE6WyALX1069oZBMlq+ouUwpEQQ6uRjttkWP4CmBgGM0BQLBdPFZYPsyFUo6uEtKDQ7oy/U96XR2Ux8ehH/89Z6enqxBcS7Lg81jmSuujrfCZcLI/TYYvbGj+jbgFpHJ/bqQAUISj8iLyu4LuFHJTosxsucO4jSDNE0Hq3hwK/ceQ5sx97b8LcUDsILfk+ovHkOIsMbBfg43VuQ5Ln9YAGCkUdKJoXR9EclFBhixy3EGVz1K6eEkhxCAkeMMnqoAhAKwhoUJkDrCqvbecaYINlFKSRS1i12VKH1XpUd4qxL876EkMcDvHj3s5RBajHHMlA5iK32e0C7VgG0RlzFPvoYHZLRmAC0BmNcBruhkE0KsMsbEc62ZwUJDxWUdMsMhVqovoT96i/DnX/ASvz/6hbCabELLk/6FF/8PNpPCGqcZTGFcBhhAaZZDbQPaAB3+KrWWy2XgbYDNIinkdWAFcCpraDE/knwe5DBqGmgzESl1p2E4MWAz0VUPgYYzmfWb9yS4vCvgsxJriNTHoIBz5YteBvg+VGISQWUqhMiByPIPpygeDBE6elD973xWwKkEiHZAHKjhuPsFnBuArrzxtakRcISv+XMIPl4aGBUJm8Emk7qBYU8IlgNEIpiJhk/No24jHwkKTFHDWfPniR4iw5vJaw2nzSjfq2zffcE/GDjRC2dn0J0XwPAbDL84TvaFCJEU4Oml9pRyEUhR3Cl2t01AoEjRbs0sYugp14/4X5n4pU4EHHnMAAAAAElFTkSuQmCC
\r
67 X-PGP-FP: AC1F 5F5C D418 88F8 CC84 5858 2060 4012 5075 1FF4
\r
68 Date: Tue, 07 Aug 2012 17:32:51 +0200
\r
69 Message-ID: <xa1tpq72d8f0.fsf@mina86.com>
\r
71 Content-Type: multipart/mixed; boundary="=-=-="
\r
72 X-Gm-Message-State: ALoCoQkoy9It0Ej6FwXJBwKhNPviFGvrbAS57KwlCTLvZHtUn9rIS1wY/ypzQyF663ZybeEecv1fU6zsM4SIhuUqskitKkzxdeFGa7gv5dEiPChDfXbQNiIf/HLz0eG8NKleSz/hHvdLLqlPjrmikaGMmNfMNLXaP46iAY2q4+2R4FmR24FygElcF/2Q99+93mlqgnQhJh5YyEbYpxP68qvv21CghA9vMw==
\r
73 X-BeenThere: notmuch@notmuchmail.org
\r
74 X-Mailman-Version: 2.1.13
\r
76 List-Id: "Use and development of the notmuch mail system."
\r
77 <notmuch.notmuchmail.org>
\r
78 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
79 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
80 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
81 List-Post: <mailto:notmuch@notmuchmail.org>
\r
82 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
83 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
84 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
85 X-List-Received-Date: Tue, 07 Aug 2012 15:33:02 -0000
\r
88 Content-Type: text/plain; charset=utf-8
\r
89 Content-Transfer-Encoding: quoted-printable
\r
91 > On Mon, 06 Aug 2012, Michal Nazarewicz <mpn@google.com> wrote:
\r
92 >> @@ -1374,9 +1382,11 @@ current thread."
\r
93 >> "Are the headers of the current message visible?"
\r
94 >> (notmuch-show-get-prop :headers-visible))
\r
96 >> -(defun notmuch-show-mark-read ()
\r
97 >> - "Mark the current message as read."
\r
98 >> - (notmuch-show-tag-message "-unread"))
\r
99 >> +(defun notmuch-show-mark-read (&optional force)
\r
100 >> + "Mark the current message as read if FORCE or
\r
101 >> +`notmuch-show-auto-mark-read' is non-nil."
\r
102 >> + (when (or force notmuch-show-auto-mark-read)
\r
103 >> + (notmuch-show-tag-message "-unread")))
\r
105 Mark Walters <markwalters1009@gmail.com> writes:
\r
106 > As an alternative approach would allowing a list of tags (or even tag
\r
107 > changes) to apply when a message is "read" do what you want and be more
\r
110 Something like the following (not tested)?
\r
112 From: Michal Nazarewicz <mina86@mina86.com>
\r
113 Date: Mon, 6 Aug 2012 15:31:20 +0200
\r
114 Subject: [PATCH] notmuch-show: add notmuch-show-mark-read-tags option
\r
116 The `notmuch-show-mark-read-tags' lists tags that are to be applied when
\r
117 message is read. By default, the only value is "-unread" which will remove
\r
118 the unread tag. Among other uses, this variable can be used to stop
\r
119 notmuch-show from modifying tags when message is shown (by setting the
\r
120 variable to an empty list).
\r
122 emacs/notmuch-show.el | 12 ++++++++++--
\r
123 1 files changed, 10 insertions(+), 2 deletions(-)
\r
125 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
126 index dcfc190..92a4beb 100644
\r
127 --- a/emacs/notmuch-show.el
\r
128 +++ b/emacs/notmuch-show.el
\r
129 @@ -183,6 +183,13 @@ provided with an MLA argument nor `completing-read' in=
\r
131 notmuch-show-stash-mlarchive-link-alist))
\r
132 :group 'notmuch-show)
\r
134 +(defcustom notmuch-show-mark-read-tags '("-unread")
\r
135 + "List of tags to apply when message is read, ie. shown in notmuch-show
\r
137 + :type '(repeat string)
\r
138 + :group 'notmuch-show)
\r
141 (defmacro with-current-notmuch-show-message (&rest body)
\r
142 "Evaluate body with current buffer set to the text of current message"
\r
144 @@ -1383,8 +1390,9 @@ current thread."
\r
145 (notmuch-show-get-prop :headers-visible))
\r
147 (defun notmuch-show-mark-read ()
\r
148 - "Mark the current message as read."
\r
149 - (notmuch-show-tag-message "-unread"))
\r
150 + "Apply `notmuch-show-mark-read-tags' to the message."
\r
151 + (when notmuch-show-mark-read-tags
\r
152 + (apply notmuch-show-tag-message notmuch-show-mark-read-tags)))
\r
154 ;; Functions for getting attributes of several messages in the current
\r
159 .o. | Liege of Serenely Enlightened Majesty of o' \,=3D./ `o
\r
160 ..o | Computer Science, Micha=C5=82 =E2=80=9Cmina86=E2=80=9D Nazarewicz =
\r
162 ooo +----<email/xmpp: mpn@google.com>--------------ooO--(_)--Ooo--
\r
164 Content-Type: multipart/signed; boundary="==-=-=";
\r
165 micalg=pgp-sha1; protocol="application/pgp-signature"
\r
168 Content-Type: text/plain
\r
172 Content-Type: application/pgp-signature
\r
174 -----BEGIN PGP SIGNATURE-----
\r
175 Version: GnuPG v1.4.10 (GNU/Linux)
\r
177 iQIcBAEBAgAGBQJQITUjAAoJECBgQBJQdR/0sW8P/jSm5/kLi+NroL9AMFuZ46td
\r
178 dF7PkkzxfjF40Zh/pYR4ismd7VXtj37o89AAp3KNOz5CKu6KtSu692E2BDEV3fWU
\r
179 eVsXj4qk3yEEs+E82WihuECu5LgBNFcQWAoc+2Fj0ct8isI9HuLF9Onj8e0jLgaY
\r
180 oOSoUnzCyB5Ga+O5QaM1JgYECV9nIfAibqf+6rhp8+6oZAHYTA5cJdXzDcGhB7V9
\r
181 d4Fw3/OYQqevMk1HIk27wt5zh322VMTmOaZrcNM8CwwaBttPGgmalcMf4cPTMo/4
\r
182 v7eCX+gaGMCbj691wKwmmz0UfVgQLfJYrugbgAJZkx0jRvSexBa1+JX8kVJqpAbG
\r
183 d98Kph8GTHJ7BXw62RLHFTPo8KKP7VzT0WNJ4bYA0QAEU6akLYORtkOUrYtYS4/F
\r
184 1LK9tICnEvASQlPEcZXx7mh5EaeTuzcKT+ML/Rn0rPVoC8TGybSzrU0B1onNfkBF
\r
185 79yMql/+Q1DQvw7YY7jYzAQL39u8FKVSVLVt5tHkk64D5+14TneaKZ2J+Fz1tHF/
\r
186 oZjzvFyWz1Emdh2EiN1UkhyAs57nVIGnQCKoQxoCaB/ZD+XIOYfVuMaP5jnw5O+v
\r
187 AuP0w3/R2KKvS3eaqFM2dbgviXf1kIjECqhpy73OBLYzhY0kvklYYa0elDcAB3kG
\r
188 sPAUSa7zu5o67xgyZLMj
\r
190 -----END PGP SIGNATURE-----
\r