21 #ifndef G_SMTP_NEW_MESSAGE_H
22 #define G_SMTP_NEW_MESSAGE_H
30 class MessageStoreImp ;
41 virtual void addTo(
const std::string & to ,
bool local ) = 0 ;
44 virtual bool addText(
const char * ,
size_t ) = 0 ;
48 virtual std::string
prepare(
const std::string & session_auth_id ,
49 const std::string & peer_socket_address ,
const std::string & peer_certificate ) = 0 ;
53 virtual void commit(
bool strict ) = 0 ;
58 virtual unsigned long id()
const = 0 ;
SMTP and message-store classes.
virtual void commit(bool strict)=0
Commits the prepare()d message to the store.
bool addTextLine(const std::string &)
A convenience function that calls addText() taking a string parameter.
virtual ~NewMessage()
Destructor.
virtual std::string prepare(const std::string &session_auth_id, const std::string &peer_socket_address, const std::string &peer_certificate)=0
Prepares to store the message in the message store.
virtual void addTo(const std::string &to, bool local)=0
Adds a 'to' address.
An abstract class to allow the creation of a new message in the message store.
virtual bool addText(const char *, size_t)=0
Adds a line of content.
virtual unsigned long id() const =0
Returns the message's unique non-zero identifier.