-
-
18 Aug 2020 08:01:21 UTC
- Distribution: Mail-Box
- Module version: 3.009
- Source (raw)
- Pod Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (5)
- Testers (725 / 0 / 3)
- Kwalitee
Bus factor: 1- 70.62% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (289.12KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Carp
- Cwd
- Date::Parse
- Devel::GlobalDestruction
- Errno
- Fcntl
- File::Basename
- File::Compare
- File::Copy
- File::Remove
- File::Spec
- File::Temp
- IO::Scalar
- Mail::Message
- Mail::Transport
- Object::Realize::Later
- POSIX
- Scalar::Util
- Sys::Hostname
- Test::More
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Mail::Message::Wrapper::SpamAssassin - Connect a Mail::Message with Mail::SpamAssassin
INHERITANCE
Mail::Message::Wrapper::SpamAssassin is a Mail::SpamAssassin::Message
SYNOPSIS
# 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 header
DESCRIPTION
WARNING: 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.METHODS
- Mail::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 ALSO
This module is part of Mail-Box distribution version 3.009, built on August 18, 2020. Website: http://perl.overmeer.net/CPAN/
LICENSE
Copyrights 2001-2020 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://dev.perl.org/licenses/
Module Install Instructions
To install Mail::Box, copy and paste the appropriate command in to your terminal.
cpanm Mail::Box
perl -MCPAN -e shell install Mail::Box
For more information on module installation, please visit the detailed CPAN module installation guide.