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 2DD2F1F8C6 for ; Wed, 8 Sep 2021 19:04:37 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] lei prune-mail-sync: ignore missing locations Date: Wed, 8 Sep 2021 19:04:37 +0000 Message-Id: <20210908190437.12492-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: "lei prune-mail-sync --all" shouldn't abort if a location isn't available, and maybe it should prune harder... --- lib/PublicInbox/LeiPruneMailSync.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/LeiPruneMailSync.pm b/lib/PublicInbox/LeiPruneMailSync.pm index 1a277122..3678bd04 100644 --- a/lib/PublicInbox/LeiPruneMailSync.pm +++ b/lib/PublicInbox/LeiPruneMailSync.pm @@ -73,7 +73,7 @@ lei mail_sync.sqlite3 uninitialized, see lei-import(1) EOM } $sto->write_prepare($lei); - my $self = bless {}, __PACKAGE__; + my $self = bless { missing_ok => 1 }, __PACKAGE__; $lei->{opt}->{'mail-sync'} = 1; # for prepare_inputs $self->prepare_inputs($lei, \@folders) or return; my $j = $lei->{opt}->{jobs} || scalar(@{$self->{inputs}}) || 1;