21 #ifndef G_SMTP_SPAM_FILTER__H
22 #define G_SMTP_SPAM_FILTER__H
45 bool server_side ,
const std::string & server_location ,
46 bool read_only ,
bool always_pass ,
47 unsigned int connection_timeout ,
unsigned int response_timeout ) ;
53 virtual std::string
id()
const override ;
56 virtual bool simple()
const override ;
62 virtual void start(
const std::string & path )
override ;
65 virtual void cancel()
override ;
71 virtual std::string
response()
const override ;
74 virtual std::string
reason()
const override ;
77 virtual bool special()
const override ;
83 void clientEvent( std::string , std::string ) ;
93 unsigned int m_connection_timeout ;
94 unsigned int m_response_timeout ;
SMTP and message-store classes.
virtual ~SpamFilter()
Destructor.
virtual void start(const std::string &path) override
Override from from GSmtp::Filter.
virtual std::string response() const override
Override from from GSmtp::Filter.
virtual std::string reason() const override
Override from from GSmtp::Filter.
virtual bool abandoned() const override
Override from from GSmtp::Filter.
An abstract interface for handling exceptions thrown out of event-loop callbacks (socket events...
A class that holds a host/service name pair and the preferred address family (if any), and also the results of a name-to-address lookup, ie.
An interface for processing a message file through a filter.
virtual bool special() const override
Override from from GSmtp::Filter.
virtual bool simple() const override
Override from from GSmtp::Filter.
A Filter class that passes the body of a message file to a remote process over the network and option...
A smart pointer class for GNet::HeapClient that keeps track of when the contained instance deletes it...
SpamFilter(GNet::ExceptionHandler &, bool server_side, const std::string &server_location, bool read_only, bool always_pass, unsigned int connection_timeout, unsigned int response_timeout)
Constructor.
virtual G::Slot::Signal1< int > & doneSignal() override
Override from from GSmtp::Filter.
virtual void cancel() override
Override from from GSmtp::Filter.
virtual std::string id() const override
Override from from GSmtp::Filter.