21 #ifndef G_SMTP_PROTOCOL_MESSAGE_FORWARD_H
22 #define G_SMTP_PROTOCOL_MESSAGE_FORWARD_H
42 class ProtocolMessageForward ;
60 std::auto_ptr<ProtocolMessage> pm ,
63 const std::string & server_address ,
64 unsigned int connection_timeout ) ;
74 virtual void reset() ;
77 virtual void clear() ;
80 virtual bool setFrom(
const std::string & from_user ) ;
89 virtual bool addText(
const std::string & ) ;
92 virtual std::string
from()
const ;
95 virtual void process(
const std::string & auth_id,
const std::string & peer_socket_address ,
96 const std::string & peer_socket_name ,
const std::string & peer_certificate ) ;
106 void processDone(
bool ,
unsigned long , std::string ) ;
113 void clientDone( std::string ,
bool ) ;
114 void messageDone( std::string ) ;
115 bool forward(
unsigned long ,
bool & , std::string * ) ;
122 std::auto_ptr<ProtocolMessage> m_pm ;
125 unsigned int m_connection_timeout ;
G::Signal3< bool, unsigned long, std::string > & storageDoneSignal()
Returns the signal which is used to signal that the storage is complete.
SMTP and message-store classes.
virtual bool addText(const std::string &)
Final override from GSmtp::ProtocolMessage.
void processDone(bool, unsigned long, std::string)
Called by derived classes that have intercepted the storageDoneSignal() when their own post-storage p...
virtual void clear()
Final override from GSmtp::ProtocolMessage.
A concrete implementation of the ProtocolMessage interface which stores incoming messages in the mess...
virtual void addReceived(const std::string &)
Final override from GSmtp::ProtocolMessage.
A class that holds a host/service name pair and optionally the results of a name-to-address lookup...
virtual bool setFrom(const std::string &from_user)
Final override from GSmtp::ProtocolMessage.
A class which allows SMTP messages (envelope+content) to be stored and retrieved. ...
A simple interface to a store of secrets as used in authentication.
ProtocolMessageForward(MessageStore &store, std::auto_ptr< ProtocolMessage > pm, const GSmtp::Client::Config &client_config, const GAuth::Secrets &client_secrets, const std::string &server_address, unsigned int connection_timeout)
Constructor.
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 G::Signal3< bool, unsigned long, std::string > & doneSignal()
Final override from GSmtp::ProtocolMessage.
virtual void process(const std::string &auth_id, const std::string &peer_socket_address, const std::string &peer_socket_name, const std::string &peer_certificate)
Final override from GSmtp::ProtocolMessage.
virtual std::string from() const
Final override from GSmtp::ProtocolMessage.
virtual bool addTo(const std::string &to_user, VerifierStatus to_status)
Final override from GSmtp::ProtocolMessage.
virtual void reset()
Final override from GSmtp::ProtocolMessage.
virtual ~ProtocolMessageForward()
Destructor.