34 #ifndef __KMAIL_ANTISPAMCONFIG_H__
35 #define __KMAIL_ANTISPAMCONFIG_H__
37 #include <tqvaluelist.h>
57 SpamAgent(
const TQString & name,
SpamAgentTypes type,
const TQCString & field,
58 const TQRegExp & score,
const TQRegExp & threshold )
59 : mName( name ), mType( type ), mField( field ),
60 mScore( score ), mThreshold( threshold ) {}
62 TQString name()
const {
return mName; }
64 TQCString header()
const {
return mField; }
65 TQRegExp scorePattern()
const {
return mScore; }
66 TQRegExp thresholdPattern()
const {
return mThreshold; }
75 typedef TQValueList<SpamAgent> SpamAgents;
76 typedef TQValueListIterator<SpamAgent> SpamAgentsIterator;
102 const SpamAgents
agents()
const {
return mAgents; }
103 SpamAgents
agents() {
return mAgents; }
120 #endif // __KMAIL_ANTISPAMCONFIG_H__
@ SpamAgentFloatLarge
For straight percentages between 0.0 and 100.0.
SpamAgentTypes
Valid types of SpamAgent.
@ SpamAgentAdjustedFloat
Use this when we need to compare against a threshold (SpamAssasssin)
@ SpamAgentBool
Simple Yes or No (Razor)
@ SpamAgentFloat
For straight percentages between 0.0 and 1.0 (BogoFilter)
Singleton to manage loading the kmail.antispamrc file.
const SpamAgents uniqueAgents() const
Returns a list of unique agents, found on the system.
@ SpamAgentNone
Invalid SpamAgent, skip this agent.
const SpamAgents agents() const
Returns a list of all agents found on the system.