21#ifndef G_SMTP_VERIFIER_H
22#define G_SMTP_VERIFIER_H
45 enum class Command { VRFY , RCPT } ;
48 std::string mail_from_parameter ;
51 std::string auth_mechanism ;
52 std::string auth_extra ;
56 unsigned int timeout {60U} ;
58 Config & set_timeout(
unsigned int ) noexcept ;
59 Config & set_domain(
const std::string & ) ;
62 virtual void verify( Command ,
const std::string & rcpt_to_parameter ,
79inline GSmtp::Verifier::Config & GSmtp::Verifier::Config::set_timeout(
unsigned int n )
noexcept { timeout = n ;
return *this ; }
80inline GSmtp::Verifier::Config & GSmtp::Verifier::Config::set_domain(
const std::string & s ) { domain = s ;
return *this ; }
An asynchronous interface that verifies recipient 'to' addresses.
virtual ~Verifier()=default
Destructor.
virtual G::Slot::Signal< Command, const VerifierStatus & > & doneSignal()=0
Returns a signal that is emit()ed when the verify() request is complete.
virtual void cancel()=0
Aborts any current processing.
virtual void verify(Command, const std::string &rcpt_to_parameter, const Info &)=0
Checks a recipient address and asynchronously returns a structure to indicate whether the address is ...
A structure that holds a network address as a string with no dependency on any low-level network libr...
Configuration passed to address verifier constructors.
Extra information passed to GSmtp::Verifier::verify().
A slot holder, with connect() and emit() methods.