Query: mail::message::wrapper::spamassassin
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Mail::Message::Wrapper::SpamAssassin(3pm) User Contributed Perl Documentation Mail::Message::Wrapper::SpamAssassin(3pm)NAMEMail::Message::Wrapper::SpamAssassin - Connect a Mail::Message with Mail::SpamAssassinINHERITANCEMail::Message::Wrapper::SpamAssassin is a Mail::SpamAssassin::MessageSYNOPSIS# WARNING: requires OLD SpamAssassion 2.x, not the new 3.x # See Mail::Box::Search::SpamAssassin for the preferred interface # However, it is possible to do: my $msg = ...; # some Mail::Message object my $sa = Mail::Message::Wrapper::SpamAssassin->new($msg); my $spam = Mail::SpamAssassin->new; my $status = $spam->check($sa); $msg->label(spam => 1) if $status->is_spam; $status->rewrite_mail; # Adds spam lines to headerDESCRIPTIONWARNING: This module only works with the old version of SpamAssassin: version 2.x. The newer 3.x releases have changed the way that messages are kept. Please contribute improved code. The "Mail::Message::Wrapper::SpamAssassin" class --sorry for the long package name-- is a wrapper around Mail::SpamAssassin::Message, which is an interface to the spam checking software of Mail::SpamAssassin.METHODSMail::Message::Wrapper::SpamAssassin->new(MESSAGE, OPTIONS) Creates a wrapper around the MESSAGE. The already present fields from a previous run of Spam::Assassin (or probably fake lines) are removed first.SEE ALSOThis module is part of Mail-Box distribution version 2.105, built on May 07, 2012. Website: http://perl.overmeer.net/mailbox/LICENSECopyrights 2001-2012 by [Mark Overmeer]. For other contributors see ChangeLog. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html perl v5.14.2 2012-05-07 Mail::Message::Wrapper::SpamAssassin(3pm)
Similar Topics in the Unix Linux Community |
---|
spam and protection? |
Search in a set of lines using perl |
Using Cookies to Stop Spam |
annacreek freaking out |
Purge of Inactive Users with Zero Posts and Other Anti-spam Measures |