about summary refs log tree commit homepage
path: root/lib/PublicInbox/Watch.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Watch.pm')
-rw-r--r--lib/PublicInbox/Watch.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/Watch.pm b/lib/PublicInbox/Watch.pm
index 05956cbb..86dae91f 100644
--- a/lib/PublicInbox/Watch.pm
+++ b/lib/PublicInbox/Watch.pm
@@ -53,8 +53,7 @@ sub new {
         # indefinitely...
         foreach my $pfx (qw(publicinboxwatch publicinboxlearn)) {
                 my $k = "$pfx.watchspam";
-                defined(my $dirs = $cfg->{$k}) or next;
-                $dirs = PublicInbox::Config::_array($dirs);
+                my $dirs = $cfg->get_all($k) // next;
                 for my $dir (@$dirs) {
                         my $uri;
                         if (is_maildir($dir)) {