]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/MdirReader.pm
lei import: skip trashed Maildir messages
[public-inbox.git] / lib / PublicInbox / MdirReader.pm
index 44724af1524fc9b845a5f8f32286c56fc1a52e95..06806e80eafc02d636a9ce988076387c03a87112 100644 (file)
@@ -57,6 +57,7 @@ sub maildir_each_eml ($$;@) {
        opendir my $dh, $pfx or return;
        while (defined(my $bn = readdir($dh))) {
                my $fl = maildir_basename_flags($bn) // next;
+               next if index($fl, 'T') >= 0;
                my $f = $pfx.$bn;
                my $eml = eml_from_path($f) or next;
                my @kw = sort(map { $c2kw{$_} // () } split(//, $fl));