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 21E261F9FD; Wed, 17 Feb 2021 04:40:32 +0000 (UTC) Date: Wed, 17 Feb 2021 03:40:32 -0100 From: Eric Wong To: meta@public-inbox.org Subject: does "lei q" --format/-f need to exist? Message-ID: <20210217044032.GA17934@dcvr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline List-Id: "maildir:/path/to/dir" has been supported by public-inbox-watch for years, now. The following all work today: lei q -o mboxrd:/tmp/foo.mboxrd ... lei q -o mboxcl2:/tmp/foo.mboxcl2 ... lei q -o maildir:/tmp/foo/ ... So -f/--format seems redundant. I'm working on on "lei import" for multiple sources, so being able to specify the type/URL-scheme on a per-source basis seems like the way to go: lei import mboxrd:/tmp/foo.mboxrd maildir:/tmp/md/ ... lei import imaps://$host/INBOX.foo nntps://$host/news.group ... And there's also "lei convert" in the wings (mainly for testing/development purposes, but could be useful stand-alone): lei convert mboxrd:/tmp/foo.mboxrd maildir:/tmp/md/