Re: Message deletion wisdom

Subject: Re: Message deletion wisdom

Date: Mon, 09 Apr 2012 00:24:29 +0200

To: Jameson Graef Rollins, Jacek Generowicz, notmuch@notmuchmail.org

Cc:

From: Sebastian Spaeth


Jameson Graef Rollins <jrollins@finestructure.net> wrote:
>So in summary, if you would like to "delete" messages, you can:
>
> * add a key binding to emacs (or your favorite ui) to add a "deleted"
>   tag to messages that you want to delete:
>
>    (define-key notmuch-show-mode-map "d"
>      (lambda ()
>        (interactive)
>        (notmuch-show-tag-message "+deleted")))
>
> * add exclusion for messages with the "deleted" tag:
>
>    notmuch config set search.exclude_tags deleted
>
> * and if you really want them purged from disk, delete them manually
>   with:
>
>    notmuch search --output=files tag:deleted | xargs -l rm

Thanks Jamie, that ws a very helpful summary.

Sebastian

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Thread: