21 #ifndef G_SMTP_PROTOCOL_MESSAGE_STORE_H
22 #define G_SMTP_PROTOCOL_MESSAGE_STORE_H
37 class ProtocolMessageStore ;
57 virtual void reset() ;
60 virtual void clear() ;
63 virtual bool setFrom(
const std::string & from_user ) ;
72 virtual bool addText(
const std::string & ) ;
75 virtual std::string
from()
const ;
78 virtual void process(
const std::string & auth_id ,
const std::string & peer_socket_address ,
79 const std::string & peer_socket_name ,
const std::string & peer_certificate ) ;
84 void preprocessorDone(
bool ) ;
88 std::auto_ptr<Processor> m_processor ;
89 std::auto_ptr<NewMessage> m_msg ;
SMTP and message-store classes.
virtual void addReceived(const std::string &)
Final override from GSmtp::ProtocolMessage.
virtual void clear()
Final override from GSmtp::ProtocolMessage.
virtual bool addText(const std::string &)
Final override from GSmtp::ProtocolMessage.
virtual std::string from() const
Final override from GSmtp::ProtocolMessage.
A concrete implementation of the ProtocolMessage interface that stores incoming messages in the messa...
virtual bool setFrom(const std::string &from_user)
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.
ProtocolMessageStore(MessageStore &store, std::auto_ptr< Processor >)
Constructor.
A class which allows SMTP messages (envelope+content) to be stored and retrieved. ...
virtual void reset()
Final override from GSmtp::ProtocolMessage.
virtual ~ProtocolMessageStore()
Destructor.
virtual G::Signal3< bool, unsigned long, std::string > & doneSignal()
Final override from GSmtp::ProtocolMessage.
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 bool addTo(const std::string &to_user, VerifierStatus to_status)
Final override from GSmtp::ProtocolMessage.