- SEE ALSO
Mail::DSPAM::Learning - Perl extension for correcting spam learning of a DPSAM server
use Mail::DSPAM::Learning; my dspam_learner = Mail::DSPAM::Learning->new(); $dspam_learner->defineMyConfig("MyConfig.pm"); require $MyConfigFile; $dspam_learner->setMyConfig; $dspam_learner->setMailbox("spam_mbox"); $dspam_learner->parseMailbox(); $dspam_learner->askPassword(); $dspam_learner->setMailer; my $count = $dspam_learner->forwardMessages(!$test);
This module aims at proposing methods to correct the spam learning of your DSPAM server. Basically, it helps to parse a mailbox containing spams that a DSPAM server miss, and to forward them to the DSPAM server.
This method creates a new DSPAM lerner object and returns it.
$dspamèl = defineMyConfig($path);
This method sets the filename c<$path/MyConfig.pm>. Several information is asked to the user: domain, username, email address, DSPAM email adress, SMTP server and port.
This metho sets the user configuration of the dspam learner.
This method return the user configuration of the dspam learner.
This method displays the user configuration of the dspam learner.
This method set the delay (
$delay) for sending a mail to learn to the dspam server.
This method returns the delay for sending a mail to learn to the dspam server.
This method sets the password of the user for the current session
This method set the mailbox file to parse. This mailbox contains the spam to learn.
This method returns the mailbox file which contains the spam to learn.
This method sets the new mailbox manager.
This method greturns the mailbox manager.
The method parses and loads the mailbox containing the SPAMs, and sets the folder field.
This method returns the folder field
This method defines the message encapsulating the forwarded message and returns it. A additional parameter can be passed to the method. It is only useful, if its value is 0 to test the configuration without really sending message.
This method creats and sets the mailer.
This method returns the mailer.
This method sends the formwarded message
DSPAM web site: http://dspam.nuclearelephant.com/
Thierry Hamon <firstname.lastname@example.org>
Copyright (C) 2008 by Thierry Hamon
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 388:
Non-ASCII character seen before =encoding in '$dspamèl'. Assuming ISO8859-1