* [PATCH] lei add-watch: ensure folders are known to mail_sync.sqlite3
@ 2021-10-28 6:17 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2021-10-28 6:17 UTC (permalink / raw)
To: meta
This prevents noisy errors in syslog when running t/lei-watch.t
---
lib/PublicInbox/LeiAddWatch.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/PublicInbox/LeiAddWatch.pm b/lib/PublicInbox/LeiAddWatch.pm
index 671d54f92467..97e7a3422897 100644
--- a/lib/PublicInbox/LeiAddWatch.pm
+++ b/lib/PublicInbox/LeiAddWatch.pm
@@ -34,6 +34,8 @@ sub lei_add_watch {
next if defined $cfg->{"watch.$w.state"};
$lei->_config("watch.$w.state", $state);
}
+ $lei->_lei_store(1); # create
+ $lei->lms(1)->lms_write_prepare->add_folders(@{$self->{inputs}});
delete $lei->{cfg}; # force reload
$lei->refresh_watches;
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-28 6:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-28 6:17 [PATCH] lei add-watch: ensure folders are known to mail_sync.sqlite3 Eric Wong
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).