From f881729b5654a707cbc22dd0a386b3cbdff68d83 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 24 Jun 2016 01:15:15 +0000 Subject: 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. --- lib/PublicInbox/WatchMaildir.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox') 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; -- cgit v1.2.3-24-ge0c7