From: Eric Wong Date: Fri, 24 Jun 2016 01:15:15 +0000 (+0000) Subject: watch_maildir: rename _check_spam => _remove_spam X-Git-Tag: v1.0.0~371 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=f881729b5654a707cbc22dd0a386b3cbdff68d83 watch_maildir: rename _check_spam => _remove_spam We do not actually do spam checking, here; but will do spam checking before adding a message in the future. --- diff --git a/lib/PublicInbox/WatchMaildir.pm b/lib/PublicInbox/WatchMaildir.pm index abf1df7b..c1fe81ec 100644 --- a/lib/PublicInbox/WatchMaildir.pm +++ b/lib/PublicInbox/WatchMaildir.pm @@ -69,7 +69,7 @@ sub _try_fsn_paths { _done_for_now($self); } -sub _check_spam { +sub _remove_spam { my ($self, $path) = @_; $path =~ /:2,[A-R]*S[T-Z]*\z/ or return; my $mime = _path_to_mime($path) or return; @@ -121,7 +121,7 @@ sub _try_path { return; } if (!ref($inbox) && $inbox eq 'watchspam') { - return _check_spam($self, $path); + return _remove_spam($self, $path); } my $im = _importer_for($self, $inbox); my $mime = _path_to_mime($path) or return;