21#ifndef G_SPAM_FILTER_H
22#define G_SPAM_FILTER_H
45 Filter::Type ,
const Filter::Config & ,
46 const std::string & server_location ,
47 bool read_only ,
bool always_pass ) ;
54 std::string id()
const override ;
55 bool quiet()
const override ;
58 void cancel()
override ;
59 Result result()
const override ;
60 std::string response()
const override ;
61 int responseCode()
const override ;
62 std::string reason()
const override ;
63 bool special()
const override ;
72 void clientEvent(
const std::string & ,
const std::string & ,
const std::string & ) ;
73 void clientDeleted(
const std::string & ) ;
75 void onDoneTimeout() ;
85 unsigned int m_connection_timeout ;
86 unsigned int m_response_timeout ;
89 Result m_result {Result::fail} ;
A Filter class that passes the body of a message file to a remote process over the network and option...
SpamFilter(GNet::EventState, GStore::FileStore &, Filter::Type, const Filter::Config &, const std::string &server_location, bool read_only, bool always_pass)
Constructor.
~SpamFilter() override
Destructor.
A lightweight object containing an ExceptionHandler pointer, optional ExceptionSource pointer and opt...
A class that represents the remote target for out-going client connections.
A timer class template in which the timeout is delivered to the specified method.
An interface for processing a message file through a filter.
A concrete implementation of the MessageStore interface dealing in paired flat files.
A somewhat opaque identifer for a GStore::MessageStore message id.