E-MailRelay

Classes | Public Member Functions | Protected Member Functions | List of all members
GSmtp::ServerSend Class Referenceabstract

A simple mix-in class for GSmtp::ServerProtocol that sends protocol responses via a GSmtp::ServerSender. More...

`#include <gsmtpserversend.h>`

Inheritance diagram for GSmtp::ServerSend:
[legend]

## Classes
struct | Advertise
| Configuration for the EHLO response. More...

## Public Member Functions
| ServerSend (ServerSender *)
| Constructor. More...
void | setSender (ServerSender *)
| Sets the sender interface pointer. More...
virtual bool | sendFlush () const =0
| Returns a 'flush' value for GSmtp::ServerSender::protocolSend().
| ServerSend (const ServerSend &)=delete
| ServerSend (ServerSend &&)=delete
ServerSend & | operator= (const ServerSend &)=delete
ServerSend & | operator= (ServerSend &&)=delete

## Protected Member Functions
void | send (const char *)
void | send (std::string, bool=false)
void | send (const std::ostringstream &)
void | sendReadyForTls ()
void | sendInsecureAuth (bool=false)
void | sendEncryptionRequired (bool=false)
void | sendBadMechanism (const std::string &={})
void | sendBadFrom (const std::string &)
void | sendTooBig ()
void | sendChallenge (const std::string &)
void | sendBadTo (const std::string &, const std::string &, bool)
void | sendBadDataOutOfSequence ()
void | sendOutOfSequence ()
void | sendGreeting (const std::string &, bool)
void | sendQuitOk ()
void | sendUnrecognised (const std::string &)
void | sendNotImplemented ()
void | sendHeloReply ()
void | sendEhloReply (const Advertise &)
void | sendRsetReply ()
void | sendMailReply (const std::string &from)
void | sendRcptReply (const std::string &to, bool local)
void | sendDataReply ()
void | sendCompletionReply (bool ok, int, const std::string &)
void | sendFailed ()
void | sendInvalidArgument ()
void | sendAuthenticationCancelled ()
void | sendAuthRequired (bool=false)
void | sendDisabled ()
void | sendNoRecipients ()
void | sendMissingParameter ()
void | sendVerified (const std::string &)
void | sendCannotVerify ()
void | sendNotVerified (const std::string &, bool)
void | sendWillAccept (const std::string &)
void | sendAuthDone (bool ok)
void | sendOk (const std::string &)
void | sendOk ()

## Detailed Description

A simple mix-in class for GSmtp::ServerProtocol that sends protocol responses via a GSmtp::ServerSender.

Definition at line 39 of file gsmtpserversend.h.

## Constructor & Destructor Documentation

## ◆ ServerSend()

GSmtp::ServerSend::ServerSend | ( | ServerSender * | sender | ) |
| explicit

Constructor.

Definition at line 29 of file gsmtpserversend.cpp.

## Member Function Documentation

## ◆ send() [1/3]

void GSmtp::ServerSend::send | ( | const char * | line | ) |
| protected

Definition at line 280 of file gsmtpserversend.cpp.

## ◆ send() [2/3]

void GSmtp::ServerSend::send | ( | const std::ostringstream & | ss | ) |
| protected

Definition at line 294 of file gsmtpserversend.cpp.

## ◆ send() [3/3]

void GSmtp::ServerSend::send | ( | std::string | line_in,
|  | bool | go_secure = `false`
| ) |  |
| protected

Definition at line 285 of file gsmtpserversend.cpp.

## ◆ sendAuthDone()

void GSmtp::ServerSend::sendAuthDone | ( | bool | ok | ) |
| protected

Definition at line 83 of file gsmtpserversend.cpp.

## ◆ sendAuthenticationCancelled()

void GSmtp::ServerSend::sendAuthenticationCancelled | ( |  | ) |
| protected

Definition at line 62 of file gsmtpserversend.cpp.

## ◆ sendAuthRequired()

void GSmtp::ServerSend::sendAuthRequired | ( | bool | with_starttls_help = `false` | ) |
| protected

Definition at line 141 of file gsmtpserversend.cpp.

## ◆ sendBadDataOutOfSequence()

void GSmtp::ServerSend::sendBadDataOutOfSequence | ( |  | ) |
| protected

Definition at line 91 of file gsmtpserversend.cpp.

## ◆ sendBadFrom()

void GSmtp::ServerSend::sendBadFrom | ( | const std::string & | response_extra | ) |
| protected

Definition at line 208 of file gsmtpserversend.cpp.

## ◆ sendBadMechanism()

void GSmtp::ServerSend::sendBadMechanism | ( | const std::string & | preferred = `{}` | ) |
| protected

Definition at line 75 of file gsmtpserversend.cpp.

## ◆ sendBadTo()

void GSmtp::ServerSend::sendBadTo | ( | const std::string & | to,
|  | const std::string & | text,
|  | bool | temporary
| ) |  |
| protected

Definition at line 219 of file gsmtpserversend.cpp.

## ◆ sendCannotVerify()

void GSmtp::ServerSend::sendCannotVerify | ( |  | ) |
| protected

Definition at line 116 of file gsmtpserversend.cpp.

## ◆ sendChallenge()

void GSmtp::ServerSend::sendChallenge | ( | const std::string & | challenge | ) |
| protected

Definition at line 39 of file gsmtpserversend.cpp.

## ◆ sendCompletionReply()

void GSmtp::ServerSend::sendCompletionReply | ( | bool | ok,
|  | int | response_code,
|  | const std::string & | response
| ) |  |
| protected

Definition at line 187 of file gsmtpserversend.cpp.

## ◆ sendDataReply()

void GSmtp::ServerSend::sendDataReply | ( |  | ) |
| protected

Definition at line 172 of file gsmtpserversend.cpp.

## ◆ sendDisabled()

void GSmtp::ServerSend::sendDisabled | ( |  | ) |
| protected

Definition at line 149 of file gsmtpserversend.cpp.

## ◆ sendEhloReply()

void GSmtp::ServerSend::sendEhloReply | ( | const Advertise & | advertise | ) |
| protected

Definition at line 227 of file gsmtpserversend.cpp.

## ◆ sendEncryptionRequired()

void GSmtp::ServerSend::sendEncryptionRequired | ( | bool | with_starttls_help = `false` | ) |
| protected

Definition at line 154 of file gsmtpserversend.cpp.

## ◆ sendFailed()

void GSmtp::ServerSend::sendFailed | ( |  | ) |
| protected

Definition at line 197 of file gsmtpserversend.cpp.

## ◆ sendGreeting()

void GSmtp::ServerSend::sendGreeting | ( | const std::string & | text,
|  | bool | enabled
| ) |  |
| protected

Definition at line 44 of file gsmtpserversend.cpp.

## ◆ sendHeloReply()

void GSmtp::ServerSend::sendHeloReply | ( |  | ) |
| protected

Definition at line 263 of file gsmtpserversend.cpp.

## ◆ sendInsecureAuth()

void GSmtp::ServerSend::sendInsecureAuth | ( | bool | with_starttls_help = `false` | ) |
| protected

Definition at line 67 of file gsmtpserversend.cpp.

## ◆ sendInvalidArgument()

void GSmtp::ServerSend::sendInvalidArgument | ( |  | ) |
| protected

Definition at line 57 of file gsmtpserversend.cpp.

## ◆ sendMailReply()

void GSmtp::ServerSend::sendMailReply | ( | const std::string & | from | ) |
| protected

Definition at line 182 of file gsmtpserversend.cpp.

## ◆ sendMissingParameter()

void GSmtp::ServerSend::sendMissingParameter | ( |  | ) |
| protected

Definition at line 101 of file gsmtpserversend.cpp.

## ◆ sendNoRecipients()

void GSmtp::ServerSend::sendNoRecipients | ( |  | ) |
| protected

Definition at line 162 of file gsmtpserversend.cpp.

## ◆ sendNotImplemented()

void GSmtp::ServerSend::sendNotImplemented | ( |  | ) |
| protected

Definition at line 136 of file gsmtpserversend.cpp.

## ◆ sendNotVerified()

void GSmtp::ServerSend::sendNotVerified | ( | const std::string & | response,
|  | bool | temporary
| ) |  |
| protected

Definition at line 121 of file gsmtpserversend.cpp.

## ◆ sendOk() [1/2]

void GSmtp::ServerSend::sendOk | ( |  | ) |
| protected

Definition at line 274 of file gsmtpserversend.cpp.

## ◆ sendOk() [2/2]

void GSmtp::ServerSend::sendOk | ( | const std::string & | text | ) |
| protected

Definition at line 268 of file gsmtpserversend.cpp.

## ◆ sendOutOfSequence()

void GSmtp::ServerSend::sendOutOfSequence | ( |  | ) |
| protected

Definition at line 96 of file gsmtpserversend.cpp.

## ◆ sendQuitOk()

void GSmtp::ServerSend::sendQuitOk | ( |  | ) |
| protected

Definition at line 106 of file gsmtpserversend.cpp.

## ◆ sendRcptReply()

void GSmtp::ServerSend::sendRcptReply | ( | const std::string & | to,
|  | bool | local
| ) |  |
| protected

Definition at line 202 of file gsmtpserversend.cpp.

## ◆ sendReadyForTls()

void GSmtp::ServerSend::sendReadyForTls | ( |  | ) |
| protected

Definition at line 52 of file gsmtpserversend.cpp.

## ◆ sendRsetReply()

void GSmtp::ServerSend::sendRsetReply | ( |  | ) |
| protected

Definition at line 177 of file gsmtpserversend.cpp.

## ◆ sendTooBig()

void GSmtp::ServerSend::sendTooBig | ( |  | ) |
| protected

Definition at line 167 of file gsmtpserversend.cpp.

## ◆ sendUnrecognised()

void GSmtp::ServerSend::sendUnrecognised | ( | const std::string & |  | ) |
| protected

Definition at line 131 of file gsmtpserversend.cpp.

## ◆ sendVerified()

void GSmtp::ServerSend::sendVerified | ( | const std::string & | user | ) |
| protected

Definition at line 111 of file gsmtpserversend.cpp.

## ◆ sendWillAccept()

void GSmtp::ServerSend::sendWillAccept | ( | const std::string & | user | ) |
| protected

Definition at line 126 of file gsmtpserversend.cpp.

## ◆ setSender()

void GSmtp::ServerSend::setSender | ( | ServerSender * | sender | ) |

Sets the sender interface pointer.

Definition at line 34 of file gsmtpserversend.cpp.

The documentation for this class was generated from the following files:

- /tmp/slackdce/slackrepo.HKsbdz/build_emailrelay/emailrelay-2.6/src/gsmtp/gsmtpserversend.h
- /tmp/slackdce/slackrepo.HKsbdz/build_emailrelay/emailrelay-2.6/src/gsmtp/gsmtpserversend.cpp