21 #ifndef G_SMTP_PROTOCOL_MESSAGE_FORWARD_H
22 #define G_SMTP_PROTOCOL_MESSAGE_FORWARD_H
40 class ProtocolMessageForward ;
58 unique_ptr<ProtocolMessage> pm ,
61 const std::string & remote_server_address ) ;
71 virtual void reset()
override ;
74 virtual void clear()
override ;
77 virtual bool setFrom(
const std::string & from_user ,
const std::string & )
override ;
83 virtual void addReceived(
const std::string & )
override ;
86 virtual bool addText(
const char * ,
size_t )
override ;
89 virtual std::string
from()
const override ;
92 virtual void process(
const std::string & auth_id,
const std::string & peer_socket_address ,
93 const std::string & peer_certificate )
override ;
103 void processDone(
bool ,
unsigned long , std::string , std::string ) ;
110 void clientDone( std::string ) ;
111 void messageDone( std::string ) ;
112 std::string forward(
unsigned long ,
bool & ) ;
119 unique_ptr<ProtocolMessage> m_pm ;
ProtocolMessageForward(MessageStore &store, unique_ptr< ProtocolMessage > pm, const GSmtp::Client::Config &client_config, const GAuth::Secrets &client_secrets, const std::string &remote_server_address)
Constructor.
SMTP and message-store classes.
A concrete implementation of the ProtocolMessage interface that stores incoming messages in the messa...
G::Slot::Signal4< bool, unsigned long, std::string, std::string > & storageDoneSignal()
Returns the signal which is used to signal that the storage is complete.
void processDone(bool, unsigned long, std::string, std::string)
Called by derived classes that have intercepted the storageDoneSignal() when their own post-storage p...
A class that holds a host/service name pair and the preferred address family (if any), and also the results of a name-to-address lookup, ie.
virtual bool addTo(const std::string &to_user, VerifierStatus to_status) override
Override from GSmtp::ProtocolMessage.
A class which allows SMTP messages to be stored and retrieved.
A simple interface for a store of secrets used in authentication.
virtual std::string from() const override
Override from GSmtp::ProtocolMessage.
virtual void process(const std::string &auth_id, const std::string &peer_socket_address, const std::string &peer_certificate) override
Override from GSmtp::ProtocolMessage.
virtual bool setFrom(const std::string &from_user, const std::string &) override
Override from GSmtp::ProtocolMessage.
A structure containing GSmtp::Client configuration parameters.
A structure returned by GSmtp::Verifier to describe the status of a 'rcpt-to' recipient.
An interface used by the ServerProtocol class to assemble and process an incoming message...
virtual void reset() override
Override from GSmtp::ProtocolMessage.
A smart pointer class for GNet::HeapClient that keeps track of when the contained instance deletes it...
virtual bool addText(const char *, size_t) override
Override from GSmtp::ProtocolMessage.
virtual void addReceived(const std::string &) override
Override from GSmtp::ProtocolMessage.
virtual G::Slot::Signal4< bool, unsigned long, std::string, std::string > & doneSignal() override
Override from GSmtp::ProtocolMessage.
virtual void clear() override
Override from GSmtp::ProtocolMessage.
virtual ~ProtocolMessageForward()
Destructor.