HeaderFilter Class Reference

This is the mail header filter. Call check() with some header data of the mail to get the configured action for this mail. If the settings was changed by the config GUI you have to call load(). More...

#include <headerfilter.h>

List of all members.

Public Member Functions

 HeaderFilter ()
 ~HeaderFilter ()
FilterAction_Type check (QString from, QString to, uint size, QString subject, QStringList header, QString account, QString &mailboxName) const
void load ()
void print ()
bool isActive ()


Detailed Description

This is the mail header filter. Call check() with some header data of the mail to get the configured action for this mail. If the settings was changed by the config GUI you have to call load().

Author:
Ulrich Weigelt <ulrich.weigelt@gmx.de>

Definition at line 43 of file headerfilter.h.


Constructor & Destructor Documentation

HeaderFilter::HeaderFilter (  ) 

Constructor

Definition at line 20 of file headerfilter.cpp.

HeaderFilter::~HeaderFilter (  ) 

Destructor

Definition at line 30 of file headerfilter.cpp.


Member Function Documentation

FilterAction_Type HeaderFilter::check ( QString  from,
QString  to,
uint  size,
QString  subject,
QStringList  header,
QString  account,
QString &  mailboxName 
) const

Checks the given mail header.

Parameters:
from Sender
to Addressee
size Size
subject Subject
header Header
account Account
mailboxName contains the mailbox name after call, if filter action is MOVE
Returns:
recommend action

Definition at line 41 of file headerfilter.cpp.

void HeaderFilter::load (  ) 

Loads the settings from the application config file.

Definition at line 71 of file headerfilter.cpp.

void HeaderFilter::print (  ) 

Prints the settings

Definition at line 113 of file headerfilter.cpp.

bool HeaderFilter::isActive (  ) 

Returns the filter active state.

Returns:
TRUE - filter is active

Definition at line 154 of file headerfilter.cpp.


The documentation for this class was generated from the following files:

Generated on Tue May 18 19:43:53 2010 for KShowmail by  doxygen 1.5.6