diff options
author | Eric Wong <e@80x24.org> | 2017-04-04 18:25:47 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-04-04 18:25:47 +0000 |
commit | 5d39caaf83799ba3a94b73463a3597c181816425 (patch) | |
tree | 5949034bc7e1a89dd6e87ba4b26713e9edb26dea | |
parent | 4ba430497bfb4763691b0ad8af573eb6ff420b96 (diff) | |
download | public-inbox-5d39caaf83799ba3a94b73463a3597c181816425.tar.gz |
Dovecot uses 'a'..'z' (lowercase) to designate keywords in Maildir flags. This was preventing certain messages from being marked as spam. https://wiki2.dovecot.org/MailboxFormat/Maildir
-rw-r--r-- | lib/PublicInbox/WatchMaildir.pm | 3 |
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 { |