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 67A8B6DE0B33 for ; Tue, 14 Jan 2020 15:24:51 -0800 (PST) Authentication-Results: arlo.cworth.org; dkim=permerror (0-bit key) header.d=fifthhorseman.net header.i=@fifthhorseman.net header.b="a/9ZILFj"; dkim=pass (2048-bit key; unprotected) header.d=fifthhorseman.net header.i=@fifthhorseman.net header.b="VdLbxOSt"; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -1.569 X-Spam-Level: X-Spam-Status: No, score=-1.569 tagged_above=-999 required=5 tests=[AWL=0.932, 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 ov8BZLzCTHD7 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 BC3326DE0ACD 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=1579044287; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=Vvt8e9qlHFuMzXCIeSE2dzdjhla/WUVkvn9+HTbcAaU=; b=a/9ZILFjrojIC7gavutUpJ5Rf1P1E+drguDF+fwVV4C2khRtP4ycxUJm 3gBgtTuyKdbtgfBe1qlMc6jh6HbCCQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1579044287; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=Vvt8e9qlHFuMzXCIeSE2dzdjhla/WUVkvn9+HTbcAaU=; b=VdLbxOStfwK0nSs6+6+xwfsVBlonlJx1oBXDUS3Lo4yzwfC9+kpkFsbq /+9eSEJORtMbtYVk9nOfqLF/IakfQ0ijbVJTc6aSgqsGFeDNAfkFdbarDR JcaeCJiXWrhf7mkKJ2ACYzbmKMka2+79nPr/NqvXYhQ43OKVUri06qo9oA A2YiK8/fPDWiVT/ALnETf+a3tLO9RE3bRKuNXQt2cj3Du8iWZD6yfmGZt5 V9QQBkJm7t6BxMKZij4vxM2FPYrLtEuZlTNw7HozmHiXFwbP9jUgvL0R2+ CvKKfXJjf063zQ7P/A/ZgRUpWhu04azvhAqhfQ5aFJd3sv383ME7Jg== 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 A8AFEF9A7; Tue, 14 Jan 2020 18:24:46 -0500 (EST) Received: by fifthhorseman.net (Postfix, from userid 1000) id 47D75204B9; Tue, 14 Jan 2020 18:24:44 -0500 (EST) From: Daniel Kahn Gillmor To: Brian May , Notmuch Mail Subject: Re: proposing "notmuch purge" In-Reply-To: <87ftgh63wd.fsf@silverfish.pri> References: <87wo9vhtyh.fsf@fifthhorseman.net> <87ftgh63wd.fsf@silverfish.pri> 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 18:24:43 -0500 Message-ID: <87d0bliptw.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:51 -0000 --=-=-= Content-Type: text/plain On Wed 2020-01-15 09:59:14 +1100, Brian May wrote: > Daniel Kahn Gillmor writes: > >> So i'm proposing "notmuch purge", which could be something as simple as >> the equivalent of: > > I can't help think it will only be a matter of time before somebody > mistypes the search spec and accidentally deletes all their mail... > > Of course, this won't be a drama, because said user will revert to > up-to-date backup, created just before manually entering risky command, > right? ;-) I agree that's a risk, which is why (further downthread) i am finding myself liking the idea of omitting the search terms argument entirely, in favor of a very rigid interface that allows only "notmuch purge" (no arguments or options). in id:87ftghiskv.fsf@fifthhorseman.net, i wrote: >> [with the rigid interface], 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 '*'" would that satisfy your fears? --dkg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTJDm02IAobkioVCed2GBllKa5f+AUCXh5NuwAKCRB2GBllKa5f +DnhAQD0Q8slAeOi6++irFwzuMGcaE+Xe5pff5l49mmLYBY87wD+Ir1iNsRDsiD/ YmSbjwXu0NlkapWPTvcsgPb/H9mJ7wE= =MTxS -----END PGP SIGNATURE----- --=-=-=--