21 #ifndef G_SMTP_PROTOCOL_MESSAGE_H
22 #define G_SMTP_PROTOCOL_MESSAGE_H
35 class ProtocolMessage ;
79 virtual void reset() = 0 ;
82 virtual void clear() = 0 ;
86 virtual bool setFrom(
const std::string & from_user ) = 0 ;
100 virtual void addReceived(
const std::string & ) = 0 ;
106 virtual bool addText(
const std::string & ) = 0 ;
112 virtual std::string
from()
const = 0 ;
115 virtual void process(
const std::string & authenticated_client_id ,
const std::string & peer_socket_address ,
116 const std::string & peer_socket_name ,
const std::string & peer_certificate ) = 0 ;
SMTP and message-store classes.
virtual void clear()=0
Clears the message state and terminates any asynchronous message processing.
virtual bool addText(const std::string &)=0
Adds text.
virtual void process(const std::string &authenticated_client_id, const std::string &peer_socket_address, const std::string &peer_socket_name, const std::string &peer_certificate)=0
Starts asynchronous processing of the message.
virtual bool setFrom(const std::string &from_user)=0
Sets the message envelope 'from'.
virtual G::Signal3< bool, unsigned long, std::string > & doneSignal()=0
Returns a signal which is raised once process() has completed.
virtual void addReceived(const std::string &)=0
Adds a 'received' line to the start of the content.
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()=0
Resets the object state as if just constructed.
virtual bool addTo(const std::string &to_user, VerifierStatus to_status)=0
Adds an envelope 'to'.
virtual std::string from() const =0
Returns the setFrom() string.
virtual ~ProtocolMessage()
Destructor.