21 #ifndef G_SMTP_STORED_MESSAGE_H
22 #define G_SMTP_STORED_MESSAGE_H
41 virtual std::string
name()
const = 0 ;
44 virtual std::string
location()
const = 0 ;
47 virtual const std::string &
from()
const = 0 ;
60 virtual void fail(
const std::string & reason ,
int reason_code ) = 0 ;
63 virtual void unfail() = 0 ;
88 virtual void sync(
bool check ) = 0 ;
virtual std::string authentication() const =0
Returns the original session authentication id.
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.
virtual const G::StringArray & to() const =0
Returns the envelope 'to' fields.
virtual unique_ptr< std::istream > extractContentStream()=0
Extracts the content stream.
std::vector< std::string > StringArray
A std::vector of std::strings.
An abstract interface for messages which have come from the store.
virtual ~StoredMessage()
Destructor.
virtual void destroy()=0
Deletes the message within the store.
virtual std::string fromAuthIn() const =0
Returns the incoming "mail from" auth parameter, either empty, xtext-encoded or "<>".
virtual std::string fromAuthOut() const =0
Returns the outgoing "mail from" auth parameter, either empty, xtext-encoded or "<>".
virtual void sync(bool check)=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.