KMail::AntiSpamWizard Class Reference
KMail anti-spam wizard. More...
#include <antispamwizard.h>
Inherits KWizard.
Public Types
- enum WizardMode { AntiSpam, AntiVirus }
Public Member Functions
- AntiSpamWizard (WizardMode mode, QWidget *parent, KMFolderTree *mainFolderTree)
Protected Slots
- void checkProgramsSelections ()
- void checkSpamRulesSelections ()
- void checkVirusRulesSelections ()
- void checkToolAvailability ()
- void slotHelpClicked ()
Protected Member Functions
- void accept ()
- int checkForProgram (const QString &executable)
Classes
- class ConfigReader
- Instances of this class control reading the configuration of the anti-spam tools from global and user config files as well as the merging of different config versions. More...
- Instances of this class control reading the configuration of the anti-spam tools from global and user config files as well as the merging of different config versions. More...
- class SpamToolConfig
- Instances of this class store the settings for one tool as read from the config file. More...
- Instances of this class store the settings for one tool as read from the config file. More...
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 DetectionPattern2= DetectionOnly=0 UseRegExp=0 SupportsBayes=1 SupportsUnsure=0 type=spamThe name of the config file is kmail.antispamrc and it's expected in the config dir of KDE.
Member Enumeration Documentation
|
The wizard can be used for setting up anti-spam tools and for setting up anti-virus tools.
|
Constructor & Destructor Documentation
|
Constructor that needs to initialize from the main folder tree of KMail.
|
Member Function Documentation
|
Evaluate the settings made and create the appropriate filter rules.
|
|
Check for the availability of an executible along the PATH.
|
|
Modify the status of the wizard to reflect the selection of spam tools.
|
|
Modify the status of the wizard to reflect the selected functionality.
|
|
Modify the status of the wizard to reflect the selected functionality.
|
|
Check if the spam tools are available via the PATH.
|
|
Show a help topic.
|
The documentation for this class was generated from the following files:
- antispamwizard.h
- antispamwizard.cpp