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; }
Singleton to manage loading the kmail.antispamrc file.
const SpamAgents agents() const Returns a list of all agents found on the system.
const SpamAgents uniqueAgents() const Returns a list of unique agents, found on the system.
SpamAgentTypes Valid types of SpamAgent.
@ SpamAgentFloatLarge For straight percentages between 0.0 and 100.0.
@ SpamAgentBool Simple Yes or No (Razor)
@ SpamAgentFloat For straight percentages between 0.0 and 1.0 (BogoFilter)
@ SpamAgentNone Invalid SpamAgent, skip this agent.
@ SpamAgentAdjustedFloat Use this when we need to compare against a threshold (SpamAssasssin)
|