Debbugs::Log::Spam(3pm) | User Contributed Perl Documentation | Debbugs::Log::Spam(3pm) |
Debbugs::Log::Spam -- an interface to debbugs .log.spam files and .log.spam.d directories
use Debbugs::Log::Spam;
my $spam = Debbugs::Log::Spam->new(bug_num => '12345');
Spam in bugs can be excluded using a .log.spam file and a .log.spam.d directory. The file contains message ids, one per line, and the directory contains files named after message ids, one per file.
None known.
my $spam_log = Debbugs::Log::Spam->new(log_spam_name => "56/123456.log.spam"); my $spam_log = Debbugs::Log::Spam->new(bug_num => $nnn);
Parameters
One of the above options must be passed.
Saves changes to the bug log spam file.
Returns 1 if this message id confirms that the message is spam
Returns 0 if this message is not known to be spam
next if ($spam_log->is_ham('12456@exmaple.com'));
Returns 1 if this message id confirms that the message is ham
Returns 0 if this message is not known to be ham
$spam_log->add_spam('123456@example.com');
Add a message id to the spam listing.
You must call "$spam_log-"save()> if you wish the changes to be written out to disk.
$spam_log->add_ham('123456@example.com');
Add a message id to the ham listing.
You must call "$spam_log-"save()> if you wish the changes to be written out to disk.
$spam_log->remove_message('123456@example.com');
Remove a message from the spam/ham listing.
You must call "$spam_log-"save()> if you wish the changes to be written out to disk.
2020-04-07 | perl v5.30.0 |