1 Return-Path: <aidecoe@aidecoe.name>
\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 arlo.cworth.org (Postfix) with ESMTP id 159E16DE00BD
\r
6 for <notmuch@notmuchmail.org>; Tue, 2 Aug 2016 12:29:07 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=0.473 tagged_above=-999 required=5 tests=[AWL=0.574,
\r
12 DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 SPF_PASS=-0.001] autolearn=disabled
\r
14 Received: from arlo.cworth.org ([127.0.0.1])
\r
15 by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id ivbB4MGKJdAJ for <notmuch@notmuchmail.org>;
\r
17 Tue, 2 Aug 2016 12:28:58 -0700 (PDT)
\r
18 Received: from jim.zolnowski.name (jim.zolnowski.name [188.116.54.122])
\r
19 by arlo.cworth.org (Postfix) with ESMTPS id 57CA06DE00B8
\r
20 for <notmuch@notmuchmail.org>; Tue, 2 Aug 2016 12:28:58 -0700 (PDT)
\r
21 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
\r
22 d=aidecoe.name; s=jim; h=Content-Type:MIME-Version:Message-ID:Date:References
\r
23 :In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
\r
24 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
\r
25 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
\r
26 List-Subscribe:List-Post:List-Owner:List-Archive;
\r
27 bh=l6HtR8Uikb/eNaqK7OGl8GhxcXq1Bfypo1JFNbMQd5o=; b=sofEQyB9nAJSjj1fI8wjNcdB7K
\r
28 Y/A/AdDsNz15KgsZqcbdnZHirWAmqc0ovUru3kUuqumtLJCB5Jb2sbe3Krwr2q1kLJOQK58PK4Y/P
\r
29 A8nP8eOSdFNFewFQEK/M0vYi4/b0aM2mcJF1XEr/ZhqdooaSdEH4LR5b9slHUS2gTD6BE1FPEdC2J
\r
30 pwNRWkFBkQ+Nheh10o/4O2Ng5+0ZRANBiD3W69ufO3ZkeacA8YUqYWnQeRNqIOJFPAxKP7nBLokio
\r
31 H6Mry4TcXk5PV6Ln2Vi8ohZjUwIzc8Vuq2gNQjNTBEuVvPQIyUYwT4u1wOgGfdWj9YKg+b3Cyt68p
\r
33 Received: from cpc92302-cmbg19-2-0-cust189.5-4.cable.virginm.net
\r
34 ([82.1.208.190] helo=localhost)
\r
35 by jim.zolnowski.name with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
\r
36 (Exim 4.87) (envelope-from <aidecoe@aidecoe.name>)
\r
37 id 1bUfMy-0006Bt-2s; Tue, 02 Aug 2016 21:28:53 +0200
\r
38 From: Amadeusz =?utf-8?B?xbtvxYJub3dza2k=?= <aidecoe@aidecoe.name>
\r
39 To: Matt Armstrong <marmstrong@google.com>
\r
40 Cc: notmuch@notmuchmail.org
\r
41 Subject: Re: notmuch and "mute" -- useful to anyone?
\r
42 In-Reply-To: <qf5vazjjciq.fsf@marmstrong-linux.kir.corp.google.com>
\r
43 References: <qf5vazjjciq.fsf@marmstrong-linux.kir.corp.google.com>
\r
44 User-Agent: Notmuch/0.22.1 (http://notmuchmail.org) Emacs/24.5.1
\r
45 (x86_64-pc-linux-gnu)
\r
46 Date: Tue, 02 Aug 2016 20:28:38 +0100
\r
47 Message-ID: <87d1lrq8bd.fsf@freja.aidecoe.name>
\r
49 Content-Type: multipart/signed; boundary="=-=-=";
\r
50 micalg=pgp-sha512; protocol="application/pgp-signature"
\r
51 X-BeenThere: notmuch@notmuchmail.org
\r
52 X-Mailman-Version: 2.1.20
\r
54 List-Id: "Use and development of the notmuch mail system."
\r
55 <notmuch.notmuchmail.org>
\r
56 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>
\r
59 List-Post: <mailto:notmuch@notmuchmail.org>
\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
61 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,
\r
62 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
63 X-List-Received-Date: Tue, 02 Aug 2016 19:29:07 -0000
\r
66 Content-Type: text/plain; charset=utf-8
\r
67 Content-Transfer-Encoding: quoted-printable
\r
69 This seems to be something that https://github.com/teythoon/afew already
\r
70 does, although it uses tag 'killed' instead. I think that alot e-mail
\r
71 client uses 'killed' tag as well. Maybe you could consider having that
\r
72 name instead or make it configurable with 'killed' as default?
\r
76 =2D- Amadeusz =C5=BBo=C5=82nowski
\r
78 Matt Armstrong <marmstrong@google.com> writes:
\r
80 > Is anyone else interested in Gmail-like "mute" support in notmuch.el?
\r
81 > If so, I can think about polishing the below off and adding it to
\r
84 > I've managed to implement Gmail's "mute" in notmuch as follows in my
\r
87 > ----------------------------------------------------------------------
\r
88 > # Unmute all threads with new messages sent to me.
\r
89 > notmuch search --output=3Dthreads tag:new AND tag:me | \
\r
90 > xargs --no-run-if-empty notmuch tag -muted --
\r
92 > # Remove all muted threads from the inbox and mark every message in them
\r
93 > # muted. Ideally this would be atomic with the above.
\r
94 > notmuch search --output=3Dthreads tag:muted | \
\r
95 > xargs --no-run-if-empty notmuch tag -inbox +muted --
\r
96 > ----------------------------------------------------------------------
\r
100 > ----------------------------------------------------------------------
\r
101 > (defcustom my-notmuch-mute-tags '("+muted" "-inbox")
\r
102 > "List of tag changes to apply to a message or a thread when it is muted.
\r
104 > Tags starting with \"+\" (or not starting with either \"+\" or
\r
105 > \"-\") in the list will be added, and tags starting with \"-\"
\r
106 > will be removed from the message or thread being archived.
\r
108 > For example, if you wanted to remove an \"inbox\" tag and add an
\r
109 > \"archived\" tag, you would set:
\r
110 > (\"-inbox\" \"+archived\")"
\r
111 > :type '(repeat string)
\r
112 > :group 'notmuch-search
\r
113 > :group 'notmuch-show)
\r
115 > ;; TODO: consider defadvice?
\r
116 > (defun my-notmuch-search-mute-thread (&optional unarchive beg end)
\r
117 > "Mute the currently selected thread or region.
\r
119 > Mute each message in the currently selected thread by applying the
\r
120 > tag changes in `my-notmuch-mute-tags' to each (remove the \"inbox\"
\r
121 > tag by default). If a prefix argument is given, the messages will
\r
122 > be \"unarchived\" (i.e. the tag changes in `my-notmuch-mute-tags'
\r
123 > will be reversed).
\r
125 > This function advances the next thread when finished."
\r
126 > (interactive (cons current-prefix-arg (notmuch-search-interactive-regio=
\r
128 > (let ((notmuch-archive-tags my-notmuch-mute-tags))
\r
129 > (notmuch-search-archive-thread unarchive beg end)))
\r
131 > (defun my-notmuch-show-mute-thread-then-next ()
\r
133 > "Mute all messages in the current buffer, then show next thread from se=
\r
135 > (let ((notmuch-archive-tags my-notmuch-mute-tags))
\r
136 > (notmuch-show-archive-thread-then-next)))
\r
138 > (define-key notmuch-search-mode-map "m" 'my-notmuch-search-mute-thread)
\r
139 > (define-key notmuch-show-mode-map "m" 'my-notmuch-show-mute-thread-then-n=
\r
141 > ----------------------------------------------------------------------
\r
142 > _______________________________________________
\r
143 > notmuch mailing list
\r
144 > notmuch@notmuchmail.org
\r
145 > https://notmuchmail.org/mailman/listinfo/notmuch
\r
148 Content-Type: application/pgp-signature; name="signature.asc"
\r
150 -----BEGIN PGP SIGNATURE-----
\r
151 Version: GnuPG v2.1
\r
153 iQJ8BAEBCgBmBQJXoPRnXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
\r
154 ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCMzcyRTFENjI5NUM1MzYwQTQwODQyRUZD
\r
155 QkNDODAyM0Y1OUUxNzA0AAoJEMvMgCP1nhcEX7UP/jSq+b8HBhOdiMA+zui05DO9
\r
156 5HBiSboLyPZ6i/gHTyFbqC3wyS0zNHozyQl1Ok2yNunxi3QMpMFyYvKcEorPPR4b
\r
157 VNnsdC7CEo79CReB4EySZAJSH48FrHu8dOh3m6KMRI+Ui4igfUejWySvaZo3hgXE
\r
158 /01P4SHBcOfFkukQayrXgIryUJwpow6i6Yu4RpkokyoiNWzsmjQ3i6fFXWlKgI0c
\r
159 OlO9fk88wfoREmQb8e2MNps2oa7fuviruxghvm+Hue4/NYL09jrDmRSbMbrGuVrR
\r
160 AqkogqV+3xr22zOTV+VkPvsT0+InUBsIdv3lmQtEDKzT7DfATCeXTFGsZQu65IYp
\r
161 Fx5q1NUTa/hk9xJdvCec/NHj3VO7nhm4lCbbDkXgYs3xomjW7BY2R2uJnWadc0dK
\r
162 w5zP/1m1pXspCpjcnnGYaRn2uForDMjZELTVkpKAJpMLTekwMkqpgP6KvsKF4cgA
\r
163 1L9Hh6VcTOpaYVbUUeyTDvWadGxD0RjeTi3Ohfxh2OxTo3LKlJGjYR9Wey/K2Yvc
\r
164 YSwPX2ksq4v7MTd/RQvansXMCQQIWtuH0fSq+/ps7BVNYpEGr2ScTB38pdpV7hVD
\r
165 jLHrGdt/TooWuBTj132EUO3TxGFTYACPE4LSssK/vv5x3jupl9CABw0WTtSY5Thp
\r
166 kbKjj/1zocrx1+RaMWZe
\r
168 -----END PGP SIGNATURE-----
\r