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 864171F9FD for ; Fri, 19 Feb 2021 12:09:56 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/6] lei: start working on IMAP writes Date: Fri, 19 Feb 2021 05:09:49 -0700 Message-Id: <20210219120955.13891-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Testing this will be tricky and require writable access to an existing IMAP server via TEST_IMAP_WRITE_URL env. I don't know if I want to do a writable IMAP server for testing (or maybe accessible via lei somehow). 4/6 is fix for a long-standing bug carried over from Watch.pm (well, as long as -watch has had IMAP support) which was within the past year, but it's been a long year :<) Eric Wong (6): t/lei-externals: favor "-o format:$PATHNAME" over "-f" lei_to_mail: get rid of empty _post_augment_maildir tests: require Mail::IMAPClient for IMAP tests net_reader: handle single-message IMAP mailboxes net_writer: start implementing IMAP write support URIimap: overload "" to ->as_string MANIFEST | 2 ++ lib/PublicInbox/LeiToMail.pm | 14 +++++------ lib/PublicInbox/NetReader.pm | 47 +++++++++++++++++++++-------------- lib/PublicInbox/NetWriter.pm | 26 +++++++++++++++++++ lib/PublicInbox/URIimap.pm | 1 + t/lei-convert.t | 2 +- t/lei-externals.t | 8 +++--- t/lei-import-imap.t | 2 +- t/net_reader-imap.t | 2 +- t/uri_imap.t | 1 + xt/lei-auth-fail.t | 1 + xt/net_writer-imap.t | 48 ++++++++++++++++++++++++++++++++++++ 12 files changed, 121 insertions(+), 33 deletions(-) create mode 100644 lib/PublicInbox/NetWriter.pm create mode 100644 xt/net_writer-imap.t