From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 345591F9FD; Thu, 4 Mar 2021 03:31:23 +0000 (UTC) Date: Thu, 4 Mar 2021 03:31:22 +0000 From: Eric Wong To: Kyle Meyer Cc: meta@public-inbox.org Subject: Re: RFH: --import-augment naming [was: lei q: import flags when clobbering/augmenting] Message-ID: References: <20210303134857.7227-1-e@80x24.org> <20210303134857.7227-5-e@80x24.org> <20210303222930.GA18597@dcvr> <87pn0fd4m3.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87pn0fd4m3.fsf@kyleam.com> List-Id: Kyle Meyer wrote: > Eric Wong writes: > > > --import-augment is the wrong name for this option, > > since the import happens even when --augment isn't specified. > > > > How about "--import-before" ? > > I don't have a good understanding of the internals, but fwiw that sounds > fine to me. Given your description of "[stash] keyword changes" and > "import flags", --stash-keywords or --import-keywords came to mind, but > perhaps those aren't quite accurate. Oh, I forgot to note it will probably import more than just keywords (but maybe it can be tweaked(*)). The thing I want to protect against is somebody forgetting --augment when using "lei q -o imaps://example.com/INBOX ..." which would delete mail that hasn't been imported to lei or backed-up by another tool. Causing data loss in the above scenario would be a nightmare, even if it's technically user error. There's also cases where someone will want to edit a patch in the search results mailbox before applying it (e.g. adding Acked-by, fixing whitespace, trivial errors, etc...) and it might be good to preserve a copy of the edited message. (*) possible directions: --import-$FOO=kw-only --import-$FOO=not-in-git --import-$FOO # same as "not-in-git", this should be the default --import-$FOO=none / --no-import-$FOO