]> Sergey Matveev's repositories - public-inbox.git/commitdiff
inboxwritable: import_maildir uses maildir_path_load
authorEric Wong <e@80x24.org>
Mon, 21 Oct 2019 11:22:25 +0000 (11:22 +0000)
committerEric Wong <e@80x24.org>
Tue, 22 Oct 2019 06:49:36 +0000 (06:49 +0000)
I'm not sure if this will get used anywhere, but at least
call a function which exists in dead code.

lib/PublicInbox/InboxWritable.pm

index 174e4245ab08157714b05f6e19377018023a1fc9..ab7b0ed5a7ba3fa82e62de4bcbe6704af70a0c3c 100644 (file)
@@ -134,7 +134,7 @@ sub import_maildir {
                opendir my $dh, "$dir/$sub" or die "opendir $dir/$sub: $!\n";
                while (defined(my $fn = readdir($dh))) {
                        next unless is_maildir_basename($fn);
-                       my $mime = maildir_file_load("$dir/$fn") or next;
+                       my $mime = maildir_path_load("$dir/$fn") or next;
 
                        if (my $filter = $self->filter($im)) {
                                my $ret = $filter->scrub($mime) or return;