Re: Message deletion wisdom
authorAntoine Beaupré <anarcat@anarcat.ath.cx>
Thu, 5 Apr 2012 16:20:43 +0000 (12:20 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:46:03 +0000 (09:46 -0800)
a6/807a5f7d02cd240f7cb8e6f021c71822cac8ee [new file with mode: 0644]

diff --git a/a6/807a5f7d02cd240f7cb8e6f021c71822cac8ee b/a6/807a5f7d02cd240f7cb8e6f021c71822cac8ee
new file mode 100644 (file)
index 0000000..caa786a
--- /dev/null
@@ -0,0 +1,161 @@
+Return-Path: <anarcat@anarcat.ath.cx>\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 5E72E431FB6\r
+       for <notmuch@notmuchmail.org>; Thu,  5 Apr 2012 09:20:46 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.274\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.274 tagged_above=-999 required=5\r
+       tests=[RDNS_NONE=1.274] autolearn=disabled\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 mMYS+gnjgiIM for <notmuch@notmuchmail.org>;\r
+       Thu,  5 Apr 2012 09:20:45 -0700 (PDT)\r
+Received: from marcos.anarcat.ath.cx (unknown [72.0.72.144])\r
+       by olra.theworths.org (Postfix) with ESMTP id 8A40C431FAE\r
+       for <notmuch@notmuchmail.org>; Thu,  5 Apr 2012 09:20:45 -0700 (PDT)\r
+Received: by marcos.anarcat.ath.cx (Postfix, from userid 1000)\r
+       id 7F23B1431E7; Thu,  5 Apr 2012 12:20:43 -0400 (EDT)\r
+From: Antoine =?utf-8?Q?Beaupr=C3=A9?= <anarcat@anarcat.ath.cx>\r
+To: Jameson Graef Rollins <jrollins@finestructure.net>,\r
+       Jacek Generowicz <jacek.generowicz@cern.ch>, notmuch@notmuchmail.org\r
+Subject: Re: Message deletion wisdom\r
+In-Reply-To: <87sjgk2xzf.fsf@servo.finestructure.net>\r
+References: <0cc49af3-5415-419d-97ef-2bec76117d63@CERNFE22.cern.ch>\r
+       <87sjgk2xzf.fsf@servo.finestructure.net>\r
+User-Agent: Notmuch/0.12 (http://notmuchmail.org) Emacs/23.4.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Thu, 05 Apr 2012 12:20:43 -0400\r
+Message-ID: <87k41ucfqc.fsf@marcos.anarcat.ath.cx>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="==-=-=";\r
+       micalg=pgp-sha256; protocol="application/pgp-signature"\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: Thu, 05 Apr 2012 16:20:46 -0000\r
+\r
+--==-=-=\r
+Content-Type: multipart/mixed; boundary="=-=-="\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Tue, 03 Apr 2012 16:32:04 -0700, Jameson Graef Rollins <jrollins@finestr=\r
+ucture.net> wrote:\r
+> So in summary, if you would like to "delete" messages, you can:\r
+>=20\r
+>  * add a key binding to emacs (or your favorite ui) to add a "deleted"\r
+>    tag to messages that you want to delete:\r
+>=20\r
+>     (define-key notmuch-show-mode-map "d"\r
+>       (lambda ()\r
+>         (interactive)\r
+>         (notmuch-show-tag-message "+deleted")))\r
+\r
+Thank you for this. I had tried to reroll your patches\r
+(id:"1326826969-23545-1-git-send-email-jrollins@finestructure.net") on\r
+top of 0.12 and that was a miserable failure, so the above works\r
+well. In fact, I have made it like this instead:\r
+\r
+(define-key notmuch-show-mode-map "d"\r
+  (lambda ()\r
+    (interactive)\r
+    (notmuch-show-tag-message "+deleted")\r
+    (notmuch-show-next-open-message)))\r
+\r
+... but it doesn't seem to actually go to the next message... oh well,\r
+at least I can delete mail.\r
+\r
+Also note that you can delete whole threads with this:\r
+\r
+(define-key notmuch-search-mode-map "d"\r
+  (lambda ()\r
+    (interactive)\r
+    (notmuch-search-tag-thread "+deleted")\r
+    (notmuch-search-next-thread)))\r
+\r
+... and I have added an undelete function:\r
+\r
+(define-key notmuch-search-mode-map "u"=20\r
+  (lambda ()\r
+    (interactive)\r
+    (notmuch-search-tag-thread "-deleted")\r
+    (notmuch-search-next-thread)))\r
+\r
+>  * and if you really want them purged from disk, delete them manually\r
+>    with:\r
+>=20\r
+>     notmuch search --output=3Dfiles tag:deleted | xargs -l rm\r
+\r
+I use this script:\r
+\r
+\r
+--=-=-=\r
+Content-Type: application/x-sh\r
+Content-Disposition: inline; filename=notmuch-purge\r
+Content-Transfer-Encoding: base64\r
+\r
+IyEvYmluL3NoCgpub3RtdWNoIHNlYXJjaCB0YWc6ZGVsZXRlZCB8ICRQQUdFUgoKZWNobyAiYWJv\r
+dXQgdG8gZGVsZXRlICphbGwqIHRob3NlIGVtYWlscyBmb3JldmVyLCBwcmVzcyBjb250cm9sLWMg\r
+dG8gYWJvcnQsIGVudGVyIHRvIGNvbnRpbnVlIgpyZWFkIGp1bmsKCm5vdG11Y2ggc2VhcmNoIC0t\r
+b3V0cHV0PWZpbGVzIHRhZzpkZWxldGVkIHwgeGFyZ3Mgcm0KCm5vdG11Y2ggbmV3Cg==\r
+--=-=-=\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+\r
+Finally, I want to voice that I feel a "delete" key, even if it doesn't\r
+delete mails, seems like an important part of a mail user\r
+agent. Archiving mail is one thing, but for the love and respect of\r
+sysadmins and the infrastructure they maintain, please consider adding\r
+at least a way to *tag* those deleted emails.\r
+\r
+Having the above keys being defined as standard in notmuch don't seem\r
+like much to ask.\r
+\r
+This may be a dissenting view here, but your mail is not that\r
+important. :P\r
+\r
+Cheers,\r
+\r
+A.\r
+=2D-=20\r
+L'art n'est pas un bureau d'anthropom=C3=A9trie.\r
+                        - L=C3=A9o Ferr=C3=A9, "Pr=C3=A9face"\r
+\r
+--=-=-=--\r
+\r
+--==-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.12 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJPfcZbAAoJEHkhUlJ7dZIeHvIP/1gG+cUslv0/qqsnjsW2zYXv\r
+QIh6Jw1iBFqGR1s3d+yuggPP6O6dnYN6W0yYlfcWsOvyVV7F3Sf/yMBsxD1tHxVh\r
+pjRPqX+VCUcCP/oBEeA0h0kb1mDUwAFjBEOECaxbcsACkUVKsNhWDkQkr++X36fn\r
+6cPCJHv7VP9Tgvud/VPJNv00YSkbLYd/6CxmRYxgLdFoJesSbyR+6bxr7vhuOImB\r
+S0ah2vtpkeIM+xxQP/ziFV45vbxKBJR2pJjj5k7K2UUTTT1R9XnDxGpPkCt88JtZ\r
+IEWgvM69OfYuzOUneIN5PZXN3IKKMM32/NVnGXEktC3qdWFfT38w7jrxQWkBkQSu\r
+KzhHjzv7Og96pFy7r26r19DZ5UREDfdyX1Pg9ftkbPsH2S+ZHLAM+iSIrsVYz84j\r
+t3L8g8K/UUTgMiub3opzRRVIBcxdj43auSwMrahLK43B8XMpapeBvMujpdtuu7en\r
+nUNpazK4ngoVadO4XMI6pd8SjrbP7ABzVneAb68+8X4zjSt2ZaCv6vbsROMADLdf\r
+bk0A54ygNSR0b5co/E1PG13um8vpi24TW8+6NYhKFs03ZKMiPaRv5yDDDSZV/Bov\r
+i2y47fXkr/ggkOvfizMgd20vvO8wNDVLck3Zkzu3h027mBFEz6CYgX8uzk5g/9Lg\r
+0Zl7huLKVqOJDoLblRiz\r
+=PAdh\r
+-----END PGP SIGNATURE-----\r
+--==-=-=--\r