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 4F4921F9F3 for ; Thu, 28 Oct 2021 06:17:22 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] lei add-watch: ensure folders are known to mail_sync.sqlite3 Date: Thu, 28 Oct 2021 06:17:22 +0000 Message-Id: <20211028061722.6232-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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; }