1Mail::Message::Wrapper:U:sSepramCAosnstarsisbiunt(e3d)PMearill:D:oMceusmseangtea:t:iWornapper::SpamAssassin(3)
2
3
4
6 Mail::Message::Wrapper::SpamAssassin - Connect a Mail::Message with
7 Mail::SpamAssassin
8
10 Mail::Message::Wrapper::SpamAssassin
11 is a Mail::SpamAssassin::Message
12
14 # WARNING: requires OLD SpamAssassion 2.x, not the new 3.x
15 # See Mail::Box::Search::SpamAssassin for the prefered 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
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
36 Mail::Message::Wrapper::SpamAssassin->new(MESSAGE, OPTIONS)
37
38 Creates a wrapper around the MESSAGE. The already present fields
39 from a previous run of Spam::Assassin (or probably fake lines) are
40 removed first.
41
43 This module is part of Mail-Box distribution version 2.070, built on
44 March 25, 2007. Website: http://perl.overmeer.net/mailbox/
45
47 Copyrights 2001-2007 by Mark Overmeer.For other contributors see
48 ChangeLog.
49
50 This program is free software; you can redistribute it and/or modify it
51 under the same terms as Perl itself. See
52 http://www.perl.com/perl/misc/Artistic.html
53
54
55
56perl v5.8.8 2007-0M3a-i2l5::Message::Wrapper::SpamAssassin(3)