21#ifndef G_SMTP_PROTOCOL_MESSAGE_FORWARD_H
22#define G_SMTP_PROTOCOL_MESSAGE_FORWARD_H
41 class ProtocolMessageForward ;
60 std::unique_ptr<ProtocolMessage> pm ,
63 const std::string & forward_to ,
int forward_to_family ) ;
71 void reset()
override ;
72 void clear()
override ;
74 bool addTo(
const ToInfo & )
override ;
75 void addReceived(
const std::string & )
override ;
76 GStore::NewMessage::Status addContent(
const char * , std::size_t )
override ;
77 std::size_t contentSize()
const override ;
78 std::string from()
const override ;
80 std::string bodyType()
const override ;
81 void process(
const std::string & auth_id,
const std::string & peer_socket_address ,
82 const std::string & peer_certificate )
override ;
91 void clientDone(
const std::string & ) ;
104 std::unique_ptr<ProtocolMessage> m_pm ;
An interface used by GAuth::SaslClient to obtain a client id and its authentication secret.
A lightweight object containing an ExceptionHandler pointer, optional ExceptionSource pointer and opt...
A class that represents the remote target for out-going client connections.
A factory interface for making GSmtp::Filter message processors.
A concrete implementation of the ProtocolMessage interface that stores incoming messages in the messa...
ProtocolMessageForward(GNet::EventState, GStore::MessageStore &store, FilterFactoryBase &, std::unique_ptr< ProtocolMessage > pm, const GSmtp::Client::Config &client_config, const GAuth::SaslClientSecrets &client_secrets, const std::string &forward_to, int forward_to_family)
Constructor.
~ProtocolMessageForward() override
Destructor.
An interface used by the ServerProtocol class to assemble and process an incoming message.
A somewhat opaque identifer for a GStore::MessageStore message id.
A class which allows SMTP messages to be stored and retrieved.
A linked list of CallFrame pointers.
A structure containing GSmtp::Client configuration parameters.
Signal parameters for GNet::Client::messageDoneSignal()
Extra information from the SMTP MAIL-FROM command passed to GSmtp::ProtocolMessage::setFrom().
Parameters for GSmtp::ProtocolMessage::processedSignal()
Extra information passed to GSmtp::ProtocolMessage::addTo().