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