From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id EBDD96DE0B36 for ; Tue, 14 Jan 2020 12:03:36 -0800 (PST) Authentication-Results: arlo.cworth.org; dkim=pass (2048-bit key; unprotected) header.d=orangeseeds.org header.i=@orangeseeds.org header.b="Z3iUlbVE"; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.121 X-Spam-Level: X-Spam-Status: No, score=-0.121 tagged_above=-999 required=5 tests=[AWL=0.080, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UhPjnIrNhLpg for ; Tue, 14 Jan 2020 12:03:32 -0800 (PST) Received: from marcos.anarc.at (marcos.anarc.at [206.248.172.91]) by arlo.cworth.org (Postfix) with ESMTPS id 8BA2D6DE0B33 for ; Tue, 14 Jan 2020 12:03:31 -0800 (PST) Received: by marcos.anarc.at (Postfix, from userid 1000) id 4CC4110E07B; Tue, 14 Jan 2020 15:03:30 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=orangeseeds.org; s=marcos; t=1579032210; bh=pPmUySfaa1khj8ehEOveKTcjxjdHj+GvGpyyWERdgeQ=; h=From:To:Subject:In-Reply-To:References:Date:From; b=Z3iUlbVEZyZcQDTq1FJhs1jwhtCxiwvCD98ncC/LpnEgwq8xZtNFW8QjgtWdAuY67 Q92h1AiRAcXE675VsSbyDT5FDMJByrHCvCjAZM+44oun/EKaBM4B8gFrw/Y+8s1Ozg muhQrV6zzqWR6kPacAHDCizu/6ByLArIRc0GSI6RPy/licsLkM3MuDtNXv4cLA9k0o QVccMKIXtPV7E+eJj0zCS/dMGO1kGdZ2/upPSZYFhyo0Q/SU53G6vdnwTlx7Q8FrHK hjNyEWdo6rOmOpyGL4AU8SK70sjPkXqlyam8qDRKpMUMbWwsLIeMye60bhnt9wMr4L WJGjaNsamVeCA== Received: by curie.anarc.at (Postfix, from userid 1000) id 7A0D8125052; Tue, 14 Jan 2020 15:03:29 -0500 (EST) From: =?utf-8?Q?Antoine_Beaupr=C3=A9?= To: Jameson Graef Rollins , Daniel Kahn Gillmor , Teemu Likonen , Notmuch Mail Subject: Re: proposing "notmuch purge" In-Reply-To: <87wo9tdd8n.fsf@caltech.edu> References: <87wo9vhtyh.fsf@fifthhorseman.net> <87d0bm1vjf.fsf@iki.fi> <87r201j0zr.fsf@fifthhorseman.net> <87wo9tdd8n.fsf@caltech.edu> Date: Tue, 14 Jan 2020 15:03:29 -0500 Message-ID: <87d0blyfe6.fsf@curie.anarc.at> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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: Tue, 14 Jan 2020 20:03:37 -0000 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=3Ddeleted;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"=E2=84=A2 >> >> 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 run: notmuch tag +deleted tag:another notmuch purge Composability wins over configurability in this case. :) A. --=20 Le p=C3=A9ch=C3=A9 est n=C3=A9 avant la vertu, comme le moteur avant le fre= in. - Jean-Paul Sartre