21 #ifndef G_SMTP_STORED_MESSAGE_H
22 #define G_SMTP_STORED_MESSAGE_H
43 virtual std::string
name()
const = 0 ;
46 virtual std::string
location()
const = 0 ;
49 virtual const std::string &
from()
const = 0 ;
62 virtual void fail(
const std::string & reason ,
int reason_code ) = 0 ;
65 virtual void unfail() = 0 ;
82 virtual void sync() = 0 ;
virtual std::string authentication() const =0
Returns the message authentication string.
SMTP and message-store classes.
virtual const std::string & from() const =0
Returns the envelope 'from' field.
virtual void unfail()=0
Marks the message as unfailed within the store.
virtual std::string name() const =0
Returns some sort of unique identifier for the message.
std::list< std::string > Strings
A std::list of std::strings.
virtual const G::Strings & to() const =0
Returns the envelope 'to' fields.
An abstract class for messages which have come from the store.
virtual ~StoredMessage()
Destructor.
virtual void destroy()=0
Deletes the message within the store.
virtual std::auto_ptr< std::istream > extractContentStream()=0
Extracts the content stream.
virtual void sync()=0
Synchronises the message object with the underlying storage.
virtual void fail(const std::string &reason, int reason_code)=0
Marks the message as failed within the store.
virtual size_t errorCount() const =0
Returns the number of accumulated submission errors.
virtual size_t remoteRecipientCount() const =0
Returns the number of non-local recipients.
virtual bool eightBit() const =0
Returns true if the message content (header+body) contains a character with the most significant bit ...
virtual std::string location() const =0
Returns another sort of unique identifier for the message.