about summary refs log tree commit homepage
path: root/lib/PublicInbox/WatchMaildir.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-04-12 21:10:05 +0000
committerEric Wong <e@80x24.org>2017-04-12 21:10:05 +0000
commit3d6bb5064927764e57758d195db78639f4ec87f3 (patch)
tree93bec3910c76164f105ddcea46a3fcc365f10d1a /lib/PublicInbox/WatchMaildir.pm
parent8a3fc4a2f027b36f27225ceee5908c571c8f4f47 (diff)
parentde243560e2caa1d19bcbf518edfaf8b016161245 (diff)
downloadpublic-inbox-3d6bb5064927764e57758d195db78639f4ec87f3.tar.gz
* origin/master:
  search: fix help message for searching within quotes
  learn: scan all inboxes when learning spam
  watchmaildir: do not reject lowercase flags on Maildir files
  searchview: show full (&x=t) messages in ascending chronlogical order
  searchview: add "t" id to link to thread overview
  extmsg: use updated mail-archive.com URL
  view: escape HTML description name
Diffstat (limited to 'lib/PublicInbox/WatchMaildir.pm')
-rw-r--r--lib/PublicInbox/WatchMaildir.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/WatchMaildir.pm b/lib/PublicInbox/WatchMaildir.pm
index 1823c248..985f9192 100644
--- a/lib/PublicInbox/WatchMaildir.pm
+++ b/lib/PublicInbox/WatchMaildir.pm
@@ -97,7 +97,8 @@ sub _try_fsn_paths {
 
 sub _remove_spam {
         my ($self, $path) = @_;
-        $path =~ /:2,[A-R]*S[T-Z]*\z/i or return;
+        # path must be marked as (S)een
+        $path =~ /:2,[A-R]*S[T-Za-z]*\z/ or return;
         my $mime = _path_to_mime($path) or return;
         _force_mid($mime);
         $self->{config}->each_inbox(sub {