21 #ifndef G_SMTP_NEW_MESSAGE_H
22 #define G_SMTP_NEW_MESSAGE_H
31 class MessageStoreImp ;
42 virtual void addTo(
const std::string & to ,
bool local ) = 0 ;
45 virtual bool addText(
const std::string & line ) = 0 ;
48 virtual std::string
prepare(
const std::string & auth_id ,
const std::string & peer_socket_address ,
49 const std::string & peer_socket_name ,
const std::string & peer_certificate ) = 0 ;
53 virtual void commit() = 0 ;
56 virtual unsigned long id()
const = 0 ;
SMTP and message-store classes.
virtual std::string prepare(const std::string &auth_id, const std::string &peer_socket_address, const std::string &peer_socket_name, const std::string &peer_certificate)=0
Prepares to store the message in the message store.
virtual ~NewMessage()
Destructor.
virtual void addTo(const std::string &to, bool local)=0
Adds a 'to' address.
virtual bool addText(const std::string &line)=0
Adds a line of content. Returns false on overflow.
An abstract class to allow the creation of a new message in the message store.
virtual void commit()=0
Commits the prepare()d message to the store.
virtual unsigned long id() const =0
Returns the message's unique non-zero identifier.