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 C435B6DE0ACD for ; Tue, 14 Jan 2020 15:24:52 -0800 (PST) Authentication-Results: arlo.cworth.org; dkim=permerror (0-bit key) header.d=fifthhorseman.net header.i=@fifthhorseman.net header.b="8FLDnarh"; dkim=pass (2048-bit key; unprotected) header.d=fifthhorseman.net header.i=@fifthhorseman.net header.b="058XStGz"; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -1.57 X-Spam-Level: X-Spam-Status: No, score=-1.57 tagged_above=-999 required=5 tests=[AWL=0.931, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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 Md7JR0amK3Ry for ; Tue, 14 Jan 2020 15:24:49 -0800 (PST) Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by arlo.cworth.org (Postfix) with ESMTPS id DEBEA6DE0B2B for ; Tue, 14 Jan 2020 15:24:48 -0800 (PST) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1579044288; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=TucyKFYJM/9E850BdzQWXMTgfdyK3goR5ESJobEiJ1o=; b=8FLDnarh9byTWsaoUyjbqxxTvnQ0macNd9by4ICI/rzhxEZB18XqUlpl dpg+SK6AXPtTxGcoNbbe5UlNFOLvBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1579044288; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=TucyKFYJM/9E850BdzQWXMTgfdyK3goR5ESJobEiJ1o=; b=058XStGz81U9fGb6hr1Iqfs/4oSk1aKjUJ3kNuBu/UXSThBPj5y1Pdt8 EEDX0asaYddz4N3TPrQGIfYCGpPgNgvOPL6L/ErOz659g0tBM2DQnIepqj J44xYin0tsvP+ttdYDeS9Kdtq7vPiULqjgDmVMFh8gBur9XCcOUeVeBy73 ywNOGncLoxsn1rEdtbJtB119ejG5rLqNBj0qXGq9Ddp11UYtSM4mywgNu3 S+PwoxQTnFwbYVyMVVYa6eKwT02Ak9u8eOMcwtnerlfEUISXqp6OKc/ElO PyZaaqciJ23Jhez+S8caJp5CEZz9yn5rWGFwqDuSyPSr73UDbdcDvA== Received: from fifthhorseman.net (unknown [38.109.115.130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 9860BF9A6; Tue, 14 Jan 2020 18:24:46 -0500 (EST) Received: by fifthhorseman.net (Postfix, from userid 1000) id 6CB182046E; Tue, 14 Jan 2020 17:25:21 -0500 (EST) From: Daniel Kahn Gillmor To: Antoine =?utf-8?Q?Beaupr=C3=A9?= , Jameson Graef Rollins , Teemu Likonen , Notmuch Mail Subject: Re: proposing "notmuch purge" In-Reply-To: <87d0blyfe6.fsf@curie.anarc.at> References: <87wo9vhtyh.fsf@fifthhorseman.net> <87d0bm1vjf.fsf@iki.fi> <87r201j0zr.fsf@fifthhorseman.net> <87wo9tdd8n.fsf@caltech.edu> <87d0blyfe6.fsf@curie.anarc.at> Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEXEK/AhYJKwYBBAHaRw8BAQdAr/gSROcn+6m8ijTN0DV9AahoHGafy52RRkhCZVwxhEe0K0Rh bmllbCBLYWhuIEdpbGxtb3IgPGRrZ0BmaWZ0aGhvcnNlbWFuLm5ldD6ImQQTFggAQQIbAQULCQgH AgYVCgkICwIEFgIDAQIeAQIXgAIZARYhBMS8Lds4zOlkhevpwvIGkReQOOXGBQJd5Hw3BQkFpJWB AAoJEPIGkReQOOXGDYEA/j0ERjPxDleKMZ2LDcWc/3o5cLFwAVzBKQHppu0Be5IWAP0aeTnyEqlp RTE7M8zugwkhYeUYfYu0BjecDUMnYz6iDLgzBF3kewUWCSsGAQQB2kcPAQEHQK1IuW0GZmcrs2mx CYMl8IHse0tMF8cP7eBNXevrlx2ZiPUEGBYIACYCGwIWIQTEvC3bOMzpZIXr6cLyBpEXkDjlxgUC XeR7TwUJAiGl/gCBdiAEGRYIAB0WIQQsv6x2UaqQJzY+dXHEDyVUMvKBDwUCXeR7BQAKCRDEDyVU MvKBD7KmAQCHs+7588C4jto6fMje0Nu97zzoppjJM7lrGF2rVnbHvwD+MgmGUbHzPSUrTWnZBQDi /QM595bxNrBA4N1CiXhs2AMJEPIGkReQOOXGpp0BAM7YeBnt/UNvxJAGm4DidSfHU7RDMWe6Tgux HrH21cDkAQC9leNFXJsQ7F2ZniRPHa8CkictcQEKPL8VCWpfe8LbArg4BF3ke5wSCisGAQQBl1UB BQEBB0Cf+EiAXtntQMf51xpqb6uZ5O0eCLAZtkg0SXHjA1JlEwMBCAeIfgQYFggAJhYhBMS8Lds4 zOlkhevpwvIGkReQOOXGBQJd5HucAhsMBQkCIaVkAAoJEPIGkReQOOXGdYcBANYnW7VyL2CncKH1 iO4Zr0IwfdIv6rai1PUHL98pVi3cAP9tMh85CKGDa0Xi/fptQH41meollLW5tLb/bEWMuUNuBQ== Date: Tue, 14 Jan 2020 17:25:20 -0500 Message-ID: <87ftghiskv.fsf@fifthhorseman.net> 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.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 23:24:52 -0000 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue 2020-01-14 15:03:29 -0500, Antoine Beaupr=C3=A9 wrote: > 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. :) I like this outcome, though i'm not sure i like the *argument* for composability necessarily. If we're talking about end-user workflow, most folks don't want to be able to compose. At any rate, though i'd be happy with a simpler subcommand, with no configurability initially. The man page is shorter too :) And, there's less of a need to think about providing the user with a warning if they ask to do something really crazy like "notmuch purge '*'" What do folks think about exposing a "purge" interface in the C and Python APIs as well? Should that also be similarly un-parameterized? --dkg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTJDm02IAobkioVCed2GBllKa5f+AUCXh4/0QAKCRB2GBllKa5f +FlBAP9Fsep4cfZ07ZI2xcCrEp6BuPJW2GZG2/Sb1/4ItxFyKAD/XGb/IeLJB4xQ XFQWFGLnSI+opYCrmWe6Fx4/OsBS7AA= =iqfn -----END PGP SIGNATURE----- --=-=-=--