user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* [PATCH] lei prune-mail-sync: ignore missing locations
@ 2021-09-08 19:04 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2021-09-08 19:04 UTC (permalink / raw)
  To: meta

"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;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-08 19:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-08 19:04 [PATCH] lei prune-mail-sync: ignore missing locations Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).