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; } 63 SpamAgentTypes scoreType() const { return mType; } 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; } 110 const SpamAgents uniqueAgents() const; 120 #endif // __KMAIL_ANTISPAMCONFIG_H__ Use this when we need to compare against a threshold (SpamAssasssin)
const SpamAgents agents() const Returns a list of all agents found on the system.
Singleton to manage loading the kmail.antispamrc file.
For straight percentages between 0.0 and 100.0.
Invalid SpamAgent, skip this agent.
For straight percentages between 0.0 and 1.0 (BogoFilter)
SpamAgentTypes Valid types of SpamAgent.
|