Courie...ssassin(3pm)
π NAME π
Courier::Filter::Module::SpamAssassin β the SpamAssassin message filter module for the Courier::Filter framework. bestie, it's giving "your inbox's personal bouncer" π«Ά
(this is the page for Courie...ssassin(3pm), yeah the title got squished, we don't talk about it π
)
β¨ SYNOPSIS β¨
use Courier::Filter::Module::SpamAssassin;
my $module = Courier::Filter::Module::SpamAssassin->new(
prefs_file => '/etc/courier/filters/courier-filter-spamassassin.cf',
sa_options => {
# any Mail::SpamAssassin options
},
logger => $logger,
inverse => 0,
trusting => 0,
testing => 0,
debugging => 0
);
my $filter = Courier::Filter->new(
...
modules => [ $module ],
...
);
πΈ DESCRIPTION πΈ
okay so this class is a filter module class, meant to be used with Courier::Filter. What does it do? It's literally a vibe check for spam π β it matches a message if its SpamAssassin spam score exceeds the configured threshold. that's it, that's the whole job, and it ate.
π Constructor π
here's the constructor it serves you:
new(%options): returns Courier::Filter::Module::SpamAssassin
Creates a new SpamAssassin filter module. iconic behavior, no notes.
%options is a list of key/value pairs, and those pairs can be any of the following bestie:
prefs_fileβ the path of a SpamAssassin preferences file. If you specify this option, its value gets passed straight to theMail::SpamAssassinconstructor'suserprefs_filenameoption, no cap. If it'sundef, SpamAssassin is told not to read any preferences besides its default configuration files. Defaults toundef.sa_optionsβ a hash-ref specifying options for theMail::SpamAssassinobject that this filter module uses. Wanna know which options are supported? go see"new" in Mail::SpamAssassin, she'll tell you π
also!! all the options of the Courier::Filter::Module constructor are supported too β every single one. Please see "new" in Courier::Filter::Module for their descriptions, iykyk.
π Instance methods π
See "Instance methods" in Courier::Filter::Module for a description of the provided instance methods. she's got the details fr fr.
π SEE ALSO π
Courier::Filter::Module, Courier::Filter::Overview.
For AVAILABILITY, SUPPORT, COPYRIGHT, and LICENSE information, see Courier::Filter::Overview. yes bestie, all the legal stuff lives over there, go read it π«Ά
β AUTHOR β
Julian Mehnle <julian@mehnle.net> β tysm for this one, legend behavior π
and that's the whole page, bestie π this absolute masterpiece is User Contributed Perl Documentation, running under perl v5.34.0, dated 2022-10-21 β periodt, no cap, go filter some spam πβ¨
π¦ where this page comes from
- debian bookworm: courier-filter-perl 0.200+ds-6 Β· Artistic-1.0-Perl OR GPL-2.0-or-later
- debian trixie: courier-filter-perl 0.200+ds-6 Β· Artistic-1.0-Perl OR GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms