KMail::AntiSpamWizard Class Reference
KMail anti-spam wizard. More...
#include <antispamwizard.h>
Public Types | |
| enum | WizardMode { AntiSpam, AntiVirus } |
Public Member Functions | |
| AntiSpamWizard (WizardMode mode, QWidget *parent, KMFolderTree *mainFolderTree, KActionCollection *collection) | |
Protected Slots | |
| void | checkProgramsSelections () |
| void | checkSpamRulesSelections () |
| void | checkVirusRulesSelections () |
| void | checkToolAvailability () |
| void | slotHelpClicked () |
Protected Member Functions | |
| void | accept () |
| int | checkForProgram (QString executable) |
Detailed Description
KMail anti-spam wizard.
- Author:
- Andreas Gungl <a.gungl@gmx.de>
Anti-virus support was added by Fred Emmott <fred87@users.sf.net>
The configuration for the tools to get checked and set up is read fro a config file. The structure of the file is as following:
[General]
tools=1
[Spamtool #1]
Ident=spamassassin
Version=0
VisibleName=&Spamassassin
Executable=spamassassin -V
URL=http://spamassassin.org
PipeFilterName=SpamAssassin Check
PipeCmdDetect=spamassassin -L
ExecCmdSpam=sa-learn --spam --no-rebuild --single
ExecCmdHam=sa-learn --ham --no-rebuild --single
DetectionHeader=X-Spam-Flag
DetectionPattern=yes
UseRegExp=0
SupportsBayes=1
type=spam
The name of the config file is kmail.antispamrc and it's expected in the config dir of KDE.
Definition at line 94 of file antispamwizard.h.
Member Enumeration Documentation
|
|
The wizard can be used for setting up anti-spam tools and for setting up anti-virus tools. Definition at line 102 of file antispamwizard.h. |
Constructor & Destructor Documentation
|
||||||||||||||||||||
|
Constructor that needs to initialize from the main folder tree of KMail. ¶m mode The mode the wizard should run in.
References checkProgramsSelections(), checkSpamRulesSelections(), checkToolAvailability(), checkVirusRulesSelections(), KMail::AntiSpamWizard::ConfigReader::getToolList(), KMail::AntiSpamWizard::ConfigReader::readAndMergeConfig(), and slotHelpClicked(). |
Member Function Documentation
|
|
Evaluate the settings made and create the appropriate filter rules. Definition at line 134 of file antispamwizard.cpp. References KMFilterAction::argsFromString(), KMSearchPattern::name(), KMSearchPattern::setName(), and KMSearchPattern::setOp(). |
|
|
Check for the availability of an executible along the PATH. Definition at line 519 of file antispamwizard.cpp. Referenced by checkToolAvailability(). |
|
|
Modify the status of the wizard to reflect the selection of spam tools. Definition at line 446 of file antispamwizard.cpp. References checkSpamRulesSelections(), and checkVirusRulesSelections(). Referenced by AntiSpamWizard(). |
|
|
Modify the status of the wizard to reflect the selected functionality. Definition at line 488 of file antispamwizard.cpp. Referenced by AntiSpamWizard(), and checkProgramsSelections(). |
|
|
Modify the status of the wizard to reflect the selected functionality. Definition at line 493 of file antispamwizard.cpp. Referenced by AntiSpamWizard(), and checkProgramsSelections(). |
|
|
Check if the spam tools are available via the PATH. Definition at line 499 of file antispamwizard.cpp. References checkForProgram(). Referenced by AntiSpamWizard(). |
|
|
Show a help topic. Definition at line 530 of file antispamwizard.cpp. Referenced by AntiSpamWizard(). |
The documentation for this class was generated from the following files:
