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-ASN: 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 8596E1F8C8 for ; Fri, 17 Sep 2021 01:56:44 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH v2 0/6] lei refresh-mail-sync: another try... Date: Thu, 16 Sep 2021 20:56:38 -0500 Message-Id: <20210917015644.32746-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: OK, so a bunch of things were broken/annoying in my initial patch @ <20210916094116.11457-3-e@80x24.org> 2/6 was only exposed in real-world usage with giant folders; and a testcase is still pending for that... Eric Wong (6): lei refresh-mail-sync: replace prune-mail-sync lei_mail_sync: don't hold statement handle into callback lei refresh-mail-sync: remove "gone" notices lei refresh-mail-sync: drop unused {verify} code path lei refresh-mail-sync: implicitly remove missing folders lei refresh-mail-sync: drop old IMAP folder info MANIFEST | 3 +- lib/PublicInbox/LEI.pm | 3 +- lib/PublicInbox/LeiInput.pm | 11 +- lib/PublicInbox/LeiMailSync.pm | 41 ++++-- ...PruneMailSync.pm => LeiRefreshMailSync.pm} | 79 +++++----- lib/PublicInbox/LeiStore.pm | 5 + t/lei-export-kw.t | 1 - t/lei-refresh-mail-sync.t | 137 ++++++++++++++++++ 8 files changed, 231 insertions(+), 49 deletions(-) rename lib/PublicInbox/{LeiPruneMailSync.pm => LeiRefreshMailSync.pm} (52%) create mode 100644 t/lei-refresh-mail-sync.t