Re: [PATCH] Fix typo in Message.maildir_flags_to_tags
[notmuch-archives.git] / 0b / 7732bbfc2e3f5d956616f9be3322e3259ba947
1 Return-Path: <jrollins@finestructure.net>\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 0D39B431FB6\r
6         for <notmuch@notmuchmail.org>; Tue,  3 Apr 2012 16:32:11 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.29\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] autolearn=disabled\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 DRGJGk4PeNSh for <notmuch@notmuchmail.org>;\r
16         Tue,  3 Apr 2012 16:32:10 -0700 (PDT)\r
17 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
18         [131.215.239.19])\r
19         by olra.theworths.org (Postfix) with ESMTP id 62839431FAE\r
20         for <notmuch@notmuchmail.org>; Tue,  3 Apr 2012 16:32:10 -0700 (PDT)\r
21 Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
22         by earth-doxen-postvirus (Postfix) with ESMTP id 2194266E0124;\r
23         Tue,  3 Apr 2012 16:32:10 -0700 (PDT)\r
24 X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
25 Received: from finestructure.net (gwave-107.ligo.caltech.edu\r
26  [131.215.114.107])     (Authenticated sender: jrollins)        by earth-doxen-submit\r
27  (Postfix) with ESMTP id 3579266E0179;  Tue,  3 Apr 2012 16:32:07 -0700 (PDT)\r
28 Received: by finestructure.net (Postfix, from userid 1000)\r
29         id 19E05888; Tue,  3 Apr 2012 16:32:07 -0700 (PDT)\r
30 From: Jameson Graef Rollins <jrollins@finestructure.net>\r
31 To: Jacek Generowicz <jacek.generowicz@cern.ch>, notmuch@notmuchmail.org\r
32 Subject: Re: Message deletion wisdom\r
33 In-Reply-To: <0cc49af3-5415-419d-97ef-2bec76117d63@CERNFE22.cern.ch>\r
34 References: <0cc49af3-5415-419d-97ef-2bec76117d63@CERNFE22.cern.ch>\r
35 User-Agent: Notmuch/0.12+87~g3c4c85f (http://notmuchmail.org) Emacs/23.3.1\r
36         (x86_64-pc-linux-gnu)\r
37 Date: Tue, 03 Apr 2012 16:32:04 -0700\r
38 Message-ID: <87sjgk2xzf.fsf@servo.finestructure.net>\r
39 MIME-Version: 1.0\r
40 Content-Type: multipart/signed; boundary="=-=-=";\r
41         micalg=pgp-sha256; protocol="application/pgp-signature"\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Tue, 03 Apr 2012 23:32:11 -0000\r
55 \r
56 --=-=-=\r
57 \r
58 On Tue, Apr 03 2012, Jacek Generowicz <jacek.generowicz@cern.ch> wrote:\r
59 > Looking through the archives of this list, I see that the topic of\r
60 > message deletion is, if not controversial, then at least non-trivial.\r
61 >\r
62 > + Requests for the provision of message deletion mechanisms have\r
63 >   appeared many times, and that various patches addressing the issue\r
64 >   have been submitted, and (IIUC) some of these are awaiting review\r
65 >   and might possibly make it into an official release in the future.\r
66 >\r
67 > + Having the 'deleted' tag cause messages to be deleted is,\r
68 >   apparently, fraught with peril of losing mail.\r
69 \r
70 Hi, Jacek.  You are right on both of these points.  It has indeed been a\r
71 controversial topic.  However, I would say that we have reached a stasis\r
72 in terms of our response to this issue.  I'll try to summarize here.\r
73 \r
74 I can say with a very high degree of certainly that notmuch will NEVER\r
75 gain the capability to actually delete mail files from disk itself.  It\r
76 is too risky for notmuch to be involved in that, and it's too easy to do\r
77 it outside of notmuch (e.g. "notmuch search --output=files tag:deleted |\r
78 xargs rm").  This has never really been up for discussion.\r
79 \r
80 What *has* generated a lot of discussion is whether or not the emacs\r
81 interface should by default support key bindings that add a "deleted"\r
82 tag to messages, and how that tag should be handled.  I think we have\r
83 finally settled on notmuch NOT supporting such a key binding by default,\r
84 since it's easy enough for users to add the binding themselves if they\r
85 wish.\r
86 \r
87 What we have added (or more accurately "are adding") though (thanks to\r
88 the work of Austin Clements and Mark Walters) is the ability to exclude\r
89 messages with a certain tag from search results.  This is like an\r
90 effective deletion, since messages can be completely omitted from search\r
91 results without having them actually be deleted from disk.  This is\r
92 obviously much safer, and a more generally useful functionality.  This\r
93 functionality is currently in beta, but will be full-featured in the\r
94 next release.\r
95 \r
96 So in summary, if you would like to "delete" messages, you can:\r
97 \r
98  * add a key binding to emacs (or your favorite ui) to add a "deleted"\r
99    tag to messages that you want to delete:\r
100 \r
101     (define-key notmuch-show-mode-map "d"\r
102       (lambda ()\r
103         (interactive)\r
104         (notmuch-show-tag-message "+deleted")))\r
105 \r
106  * add exclusion for messages with the "deleted" tag:\r
107 \r
108     notmuch config set search.exclude_tags deleted\r
109 \r
110  * and if you really want them purged from disk, delete them manually\r
111    with:\r
112 \r
113     notmuch search --output=files tag:deleted | xargs -l rm\r
114 \r
115 I'll add a page about this to the wiki, since it comes up enough.\r
116 \r
117 hth.\r
118 \r
119 jamie.\r
120 \r
121 --=-=-=\r
122 Content-Type: application/pgp-signature\r
123 \r
124 -----BEGIN PGP SIGNATURE-----\r
125 Version: GnuPG v1.4.12 (GNU/Linux)\r
126 \r
127 iQIcBAEBCAAGBQJPe4h1AAoJEO00zqvie6q8OSwP/3KUtk0gqmxLnCfWSTLbHCpm\r
128 1jhSrJgUa4eo4rHi7tSjVTe0B1dlJArsoAqFmKMCZON3w8KPpdTbnqRUjmNRuqMt\r
129 qqwLvL3mOjPQ7339tVzjoro0akCaLm6I8IBdox6saZhWy1jownmUexxtlXDPGc46\r
130 kl6T6novbemFLLeFsqAa46eiVJZZO9nMPmp2xcNgG1KpJ57ILzad+bjgI1ePZx6w\r
131 /fPlenG4GELZApKjjqYHfR9HMX7D8EOv4BteOQpNnQNXpGcFxVmW8y4917ZZkMtv\r
132 +3D4jqghXflO2/KJvGw6TToD65tlWprVfR4PwqJxRxO+FD1fdTxf3S0gNTUl7dOe\r
133 2LxJfYa/t0dZayu1QYnIKJr6jqRsIbe/0GwtP2URNCEP30o9irYn06iaSxurklzB\r
134 tkEfwmcQLNy+71aHjjn7zvlzbT29vp9kLx/zzMvnkMhybsKJmpPTA6Qa1teKiqPs\r
135 gdBqc2ebh0yLWbnIwwy8WbzwYRmltMyYMYGub8pmJZKrNfommaAbD6I18h7+65uY\r
136 Szs4pijzO7qsvOuge3URHPZNFsAd2MTFY/gsFPnAwVjATNmyX+KNPNHq+Uil3Jhg\r
137 +KuhRnDZ2stuMtzY1kg4AyPrSc8fMP4t9a+bZ20BgfzOnFrO7CTUMuv0HeX0Nad7\r
138 j++wonmbWQP8uzl7JDr9\r
139 =rfb1\r
140 -----END PGP SIGNATURE-----\r
141 --=-=-=--\r