about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-24 01:15:15 +0000
committerEric Wong <e@80x24.org>2016-06-24 02:00:33 +0000
commitf881729b5654a707cbc22dd0a386b3cbdff68d83 (patch)
treeeb50cc037957118bf218cee8de46d2d69543ba2a /lib/PublicInbox
parent216ecf0404c79e0e4986a4717d10f6a029e4257b (diff)
downloadpublic-inbox-f881729b5654a707cbc22dd0a386b3cbdff68d83.tar.gz
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.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/WatchMaildir.pm4
1 files changed, 2 insertions, 2 deletions
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;