21#ifndef G_SMTP_VERIFIER_H
22#define G_SMTP_VERIFIER_H
45 enum class Command { VRFY , RCPT } ;
48 Command command {Command::RCPT} ;
49 std::string raw_address ;
51 std::string from_address ;
53 std::string auth_mechanism ;
54 std::string auth_extra ;
58 unsigned int timeout {60U} ;
60 Config & set_timeout(
unsigned int ) noexcept ;
61 Config & set_domain(
const std::string & ) ;
81inline GSmtp::Verifier::Config & GSmtp::Verifier::Config::set_timeout(
unsigned int n )
noexcept { timeout = n ;
return *this ; }
82inline 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(const Request &)=0
Checks a recipient address and asynchronously returns a GSmtp::VerifierStatus structure to indicate w...
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.
Verification request passed to various GSmtp::Verifier::verify() overrides.
A slot holder, with connect() and emit() methods.