• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

kmail

  • KMail
  • AntiSpamWizard
Classes | Public Types | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
KMail::AntiSpamWizard Class Reference

#include <antispamwizard.h>

Inheritance diagram for KMail::AntiSpamWizard:
Inheritance graph
[legend]

Classes

class  ConfigReader
 
class  SpamToolConfig
 

Public Types

enum  WizardMode { AntiSpam, AntiVirus }
 

Public Member Functions

 AntiSpamWizard (WizardMode mode, QWidget *parent)
 

Protected Slots

void checkProgramsSelections ()
 
void checkToolAvailability ()
 
void checkVirusRulesSelections ()
 
void slotBuildSummary ()
 
void slotHelpClicked ()
 

Protected Member Functions

void accept ()
 

Detailed Description

KMail anti-spam wizard.

Author
Andreas Gungl a.gun.nosp@m.gl@g.nosp@m.mx.de

The wizard helps to create filter rules to let KMail operate with external anti-spam tools. The wizard tries to detect the tools, but the user can overide the preselections. Then the user can decide what functionality shall be supported by the created filter rules. The wizard will append the created filter rules after the last existing rule to keep possible conflicts with existing filter configurations minimal.

Anti-virus support was added by Fred Emmott fred8.nosp@m.7@us.nosp@m.ers.s.nosp@m.f.ne.nosp@m.t

The configuration for the tools to get checked and set up is read from a config file. The structure of the file is as following:

[General]
tools=1
[Spamtool #1]
Ident=spamassassin
Version=0
Priority=1
VisibleName=&Spamassassin
Executable=spamassassin -V
URL=http://spamassassin.org
PipeFilterName=SpamAssassin Check
PipeCmdDetect=spamassassin -L
ExecCmdSpam=sa-learn --spam --no-sync --single
ExecCmdHam=sa-learn --ham --no-sync --single
PipeCmdNoSpam=spamassassin -d
DetectionHeader=X-Spam-Flag
DetectionPattern=yes
DetectionPattern2=
DetectionOnly=0
UseRegExp=0
SupportsBayes=1
SupportsUnsure=0
ServerSided=0
type=spam

The name of the config file is kmail.antispamrc and it's expected in the config dir of KDE.

Definition at line 105 of file antispamwizard.h.

Member Enumeration Documentation

enum KMail::AntiSpamWizard::WizardMode

The wizard can be used for setting up anti-spam tools and for setting up anti-virus tools.

Enumerator
AntiSpam 
AntiVirus 

Definition at line 113 of file antispamwizard.h.

Constructor & Destructor Documentation

AntiSpamWizard::AntiSpamWizard ( WizardMode  mode,
QWidget *  parent 
)

Constructor that needs to initialize from the main folder tree of KMail.

Parameters
modeThe mode the wizard should run in.
parentThe parent widget for the wizard.
mainFolderTreeThe main folder tree from which the folders are copied to allow the selection of a spam folder in a tree within one of the wizard pages.

Definition at line 75 of file antispamwizard.cpp.

Member Function Documentation

void AntiSpamWizard::accept ( )
protected

Evaluate the settings made and create the appropriate filter rules.

Definition at line 148 of file antispamwizard.cpp.

void AntiSpamWizard::checkProgramsSelections ( )
protectedslot

Modify the status of the wizard to reflect the selection of spam tools.

Definition at line 470 of file antispamwizard.cpp.

void AntiSpamWizard::checkToolAvailability ( )
protectedslot

Check if the spam tools are available via the PATH.

Definition at line 514 of file antispamwizard.cpp.

void AntiSpamWizard::checkVirusRulesSelections ( )
protectedslot

Modify the status of the wizard to reflect the selected functionality.

Definition at line 508 of file antispamwizard.cpp.

void AntiSpamWizard::slotBuildSummary ( )
protectedslot

Create the summary text based on the current settings.

Definition at line 591 of file antispamwizard.cpp.

void AntiSpamWizard::slotHelpClicked ( )
protectedslot

Show a help topic.

Definition at line 582 of file antispamwizard.cpp.


The documentation for this class was generated from the following files:
  • antispamwizard.h
  • antispamwizard.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal