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 556AC1F9FD for ; Wed, 17 Feb 2021 10:07:07 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 00/11] lei IMAP read support Date: Wed, 17 Feb 2021 09:06:56 -0100 Message-Id: <20210217100707.6796-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: IMAP write support for search results is planned, but testing could get tricky... Still unsure about some UI bits w.r.t --format/-f: https://public-inbox.org/meta/20210217044032.GA17934@dcvr/ convert and import should support parallel network xfers, NNTP reads, and eventually JMAP... convert and import don't support compressed mboxes, yet. Eric Wong (11): lei: bless config watch: move imap_common_init to NetReader watch: connect to NNTP and IMAP in config order lei import: start rearranging code for IMAP support lei import: move check_input_format to lei tests: setup_public_inboxes: use IMAP-friendly newsgroups t/lei_to_mail: remove unnecessary arg passing lei convert: mail format conversion sub-command lei import: add IMAP, (maildir|mbox*):$PATHNAME support lei: consolidate the bulk of the IPC code lei: check for IMAP auth errors MANIFEST | 11 +- lib/PublicInbox/GitCredential.pm | 18 ++- lib/PublicInbox/LEI.pm | 62 +++++++- lib/PublicInbox/LeiAuth.pm | 70 +++++++++ lib/PublicInbox/LeiConvert.pm | 137 +++++++++++++++++ lib/PublicInbox/LeiDedupe.pm | 2 +- lib/PublicInbox/LeiImport.pm | 156 +++++++++++++------- lib/PublicInbox/LeiMirror.pm | 19 +-- lib/PublicInbox/LeiOverview.pm | 7 +- lib/PublicInbox/LeiToMail.pm | 5 +- lib/PublicInbox/MdirReader.pm | 26 ++++ lib/PublicInbox/NetReader.pm | 242 +++++++++++++++++++++++++++++-- lib/PublicInbox/TestCommon.pm | 15 +- lib/PublicInbox/Watch.pm | 82 ++--------- t/{home1 => home2}/.gitignore | 0 t/{home1 => home2}/Makefile | 0 t/{home1 => home2}/README | 0 t/lei-convert.t | 36 +++++ t/lei-import-imap.t | 28 ++++ t/lei-import-maildir.t | 4 +- t/lei_to_mail.t | 14 +- t/net_reader-imap.t | 40 +++++ xt/lei-auth-fail.t | 20 +++ 23 files changed, 820 insertions(+), 174 deletions(-) create mode 100644 lib/PublicInbox/LeiAuth.pm create mode 100644 lib/PublicInbox/LeiConvert.pm rename t/{home1 => home2}/.gitignore (100%) rename t/{home1 => home2}/Makefile (100%) rename t/{home1 => home2}/README (100%) create mode 100644 t/lei-convert.t create mode 100644 t/lei-import-imap.t create mode 100644 t/net_reader-imap.t create mode 100644 xt/lei-auth-fail.t