1Mail::Message::Wrapper:U:sSepramCAosnstarsisbiunt(e3d)PMearill:D:oMceusmseangtea:t:iWornapper::SpamAssassin(3)
2
3
4

NAME

6       Mail::Message::Wrapper::SpamAssassin - Connect a Mail::Message with
7       Mail::SpamAssassin
8

INHERITANCE

10        Mail::Message::Wrapper::SpamAssassin
11          is a Mail::SpamAssassin::Message
12

SYNOPSIS

14        # WARNING: requires OLD SpamAssassion 2.x, not the new 3.x
15        # See Mail::Box::Search::SpamAssassin for the preferred interface
16        # However, it is possible to do:
17
18        my $msg    = ...;   # some Mail::Message object
19        my $sa     = Mail::Message::Wrapper::SpamAssassin->new($msg);
20        my $spam   = Mail::SpamAssassin->new;
21        my $status = $spam->check($sa);
22
23        $msg->label(spam => 1) if $status->is_spam;
24        $status->rewrite_mail;  # Adds spam lines to header
25

DESCRIPTION

27       WARNING: This module only works with the old version of SpamAssassin:
28       version 2.x.  The newer 3.x releases have changed the way that messages
29       are kept. Please contribute improved code.
30
31       The "Mail::Message::Wrapper::SpamAssassin" class --sorry for the long
32       package name-- is a wrapper around Mail::SpamAssassin::Message, which
33       is an interface to the spam checking software of Mail::SpamAssassin.
34

METHODS

36       Mail::Message::Wrapper::SpamAssassin->new($message, %options)
37           Creates a wrapper around the $message.  The already present fields
38           from a previous run of Spam::Assassin (or probably fake lines) are
39           removed first.
40

SEE ALSO

42       This module is part of Mail-Box distribution version 3.005, built on
43       March 04, 2018. Website: http://perl.overmeer.net/CPAN/
44

LICENSE

46       Copyrights 2001-2018 by [Mark Overmeer]. For other contributors see
47       ChangeLog.
48
49       This program is free software; you can redistribute it and/or modify it
50       under the same terms as Perl itself.  See http://dev.perl.org/licenses/
51
52
53
54perl v5.28.0                      2018-0M3a-i0l4::Message::Wrapper::SpamAssassin(3)
Impressum