21 #ifndef G_SMTP_VERIFIER_H
22 #define G_SMTP_VERIFIER_H
47 G_EXCEPTION( AbortRequest ,
"verifier abort request" ) ;
49 virtual void verify(
const std::string & rcpt_to_parameter ,
50 const std::string & mail_from_parameter ,
const GNet::Address & client_ip ,
51 const std::string & auth_mechanism ,
const std::string & auth_extra ) = 0 ;
67 virtual void reset() = 0 ;
Part of the slot/signal system.
SMTP and message-store classes.
The Address class encapsulates an IP transport address.
An asynchronous interface that verifies recipient 'to' addresses.
virtual G::Signal2< std::string, VerifierStatus > & doneSignal()=0
Returns a signal that is emit()ed when the verify() request is complete.
virtual void verify(const std::string &rcpt_to_parameter, const std::string &mail_from_parameter, const GNet::Address &client_ip, const std::string &auth_mechanism, const std::string &auth_extra)=0
Checks a recipient address and asynchronously returns a structure to indicate whether the address is ...
virtual void reset()=0
Aborts any current processing.
#define G_EXCEPTION(class_name, description)
define as a function rather than a type if optimising for size
virtual ~Verifier()
Destructor.