21#ifndef G_SMTP_SERVER_SEND_H
22#define G_SMTP_SERVER_SEND_H
62 std::size_t max_size {0U} ;
64 bool starttls {
false} ;
66 bool chunking {
false} ;
67 bool binarymime {
false} ;
68 bool pipelining {
false} ;
69 bool smtputf8 {
false} ;
71 void send(
const char * ) ;
72 void send( std::string ,
bool =
false ) ;
73 void send(
const std::ostringstream & ) ;
74 void sendReadyForTls() ;
75 void sendInsecureAuth(
bool =
false ) ;
76 void sendEncryptionRequired(
bool =
false ) ;
77 void sendBadMechanism(
const std::string & = {} ) ;
78 void sendBadFrom(
const std::string & ) ;
80 void sendChallenge(
const std::string & ) ;
81 void sendBadTo(
const std::string & ,
const std::string & ,
bool ) ;
82 void sendBadDataOutOfSequence() ;
83 void sendOutOfSequence() ;
84 void sendGreeting(
const std::string & ,
bool ) ;
86 void sendUnrecognised(
const std::string & ) ;
87 void sendNotImplemented() ;
88 void sendHeloReply() ;
89 void sendEhloReply(
const Advertise & ) ;
90 void sendRsetReply() ;
91 void sendMailReply(
const std::string & from ) ;
92 void sendRcptReply(
const std::string & to ,
bool local ) ;
93 void sendDataReply() ;
94 void sendCompletionReply(
bool ok ,
int ,
const std::string & ) ;
96 void sendInvalidArgument() ;
97 void sendAuthenticationCancelled() ;
98 void sendAuthRequired(
bool =
false ) ;
100 void sendNoRecipients() ;
101 void sendMissingParameter() ;
102 void sendVerified(
const std::string & ) ;
103 void sendCannotVerify() ;
104 void sendNotVerified(
const std::string & ,
bool ) ;
105 void sendWillAccept(
const std::string & ) ;
106 void sendAuthDone(
bool ok ) ;
107 void sendOk(
const std::string & ) ;
A simple mix-in class for GSmtp::ServerProtocol that sends protocol responses via a GSmtp::ServerSend...
ServerSend(ServerSender *)
Constructor.
void setSender(ServerSender *)
Sets the sender interface pointer.
virtual bool sendFlush() const =0
Returns a 'flush' value for GSmtp::ServerSender::protocolSend().
An interface used by ServerProtocol to send protocol responses.
std::vector< std::string > StringArray
A std::vector of std::strings.
Configuration for the EHLO response.