Re: SpamAssassin integration missing Received: headers
Mark Overmeer <[email protected]> Mon, 14 Jun 2004 19:17:15 +0200
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Organization | MARKOV Solutions |
| Message-ID | <[email protected]> |
* Carlos Perez ([email protected]) [040614 18:48]: > I running Mail::Box version 2.055. When I call SpamAssassin with a > 'wrapped' message it executes but does not analyze the Received: headers, so > it misses some important tests, such as DATE_IN_FUTURE_ and RBL tests. > > Bug or setup problem? > > Snippet: > > open(MSG, "<spammsg.eml") || die "Unable to open file: $!\n"; > my $newmsg = Mail::Message->read(\*MSG); > > my $sa = Mail::Message::Wrapper::SpamAssassin->new($newmsg); > my $spam = Mail::SpamAssassin->new; > my $status = $spam->check($sa); Although I understand your question, it is too hard to "debug" this from a distance. If you know what is wrong, you may be able to give me some hints. But I expect you have to pass some arguments to Mail::SpamAssassin->new(...) See the docs of that module. If you figured-out what the problem is, please tell me and I will adapt the docs. -- MarkOv ------------------------------------------------------------------------ drs Mark A.C.J. Overmeer MARKOV Solutions [email protected] [email protected] http://Mark.Overmeer.net http://solutions.overmeer.net