]> Sergey Matveev's repositories - public-inbox.git/commitdiff
watch_maildir: rename _check_spam => _remove_spam
authorEric Wong <e@80x24.org>
Fri, 24 Jun 2016 01:15:15 +0000 (01:15 +0000)
committerEric Wong <e@80x24.org>
Fri, 24 Jun 2016 02:00:33 +0000 (02:00 +0000)
We do not actually do spam checking, here; but will
do spam checking before adding a message in the future.

lib/PublicInbox/WatchMaildir.pm

index abf1df7bab32b533aa209e6f01999646a6be5767..c1fe81ecfe5a5a39f891bf231763ec83f6c4f489 100644 (file)
@@ -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;