This code is licensed under the terms of the GNU General Public License, version 2. Note that when you have finished using the returned status object, you should call its finish() method to free up resources. Spam_assassin_status returns a Mail::SpamAssassin::PerMsgStatus object on success, or undef is something went wrong. Where CONFDIR is the value of Mailmunge::Constants->get('Path:CONFDIR'). If not supplied, Mailmunge uses the first file found out of: $config is the path to the SpamAssassin userprefs_fileanem. It is optional if not supplied, it defaults to false. $local_tests_only is passed as the local_tests_only option to the Mail::SpamAssassin constructor. Runs a SpamAssassin check against the current message. INSTANCE METHODS spam_assassin_status($ctx, $local_tests_only, $config) } CLASS METHODS Mailmunge::Test::SpamAssassin->new($filter)Ĭonstructs a new Mailmunge::Test::SpamAssassin object and stores a copy of $filter in it. $self->action_change_header($ctx, 'Subject', ' '. It uses a robust scoring framework and plug-ins to integrate a wide range of advanced heuristic and statistical analysis tests on email headers and body text including text analysis. My $status = $test->spam_assassin_status($ctx) Apache SpamAssassin is the 1 Open Source anti-spam platform giving system administrators a filter to classify email and block spam (unsolicited bulk email). My ($self, $ctx) = $test = Mailmunge::Test::SpamAssassin->new($self) You must have Mail::SpamAssassin installed to use this class. Apache SpamAssassin is a user-friendly email utility which examines incoming mail for different spam characteristics. This class runs SpamAssassin against the message and returns the SpamAssassin Mail::SpamAssassin::PerMsgStatus object that is the result of the SpamAssassin run. Mailmunge::Test::SpamAssassin - run SpamAssassin against the current message.
0 Comments
Leave a Reply. |