Re: proposing "notmuch purge"

Subject: Re: proposing "notmuch purge"

Date: Tue, 14 Jan 2020 15:03:29 -0500

To: Jameson Graef Rollins, Daniel Kahn Gillmor, Teemu Likonen, Notmuch Mail


From: Antoine Beaupré

On 2020-01-14 11:55:36, Jameson Graef Rollins wrote:
> On Tue, Jan 14 2020, Daniel Kahn Gillmor <> wrote:
>>> I think that the "SEARCH-TERMS" part should be configurable, not
>>> hard-coded. A user could have setting like
>>> "search.purge_tags=deleted;spam" and that would lead to search terms
>>> "tag:deleted OR tag:spam" in the purge operation.
>> I want the user to be able to run "notmuch purge", with no arguments, to
>> "Do What I Mean"™
>> I also want the "purge" subcommand to have its own configuration
>> space -- it's *not* a specialized form of "search".
> Honestly I don't see the point of any user configuration here.  Seems
> likely to only add confusion and possibly improperly deleted messages,
> which would be very bad.
> Just use the "deleted" tag only.  It's already being used in multiple
> place to mean that the message should be deleted.

Agreed. If you want to delete messages matching an another tag, you just

    notmuch tag +deleted tag:another
    notmuch purge

Composability wins over configurability in this case. :)


Le péché est né avant la vertu, comme le moteur avant le frein.
                         - Jean-Paul Sartre
notmuch mailing list