21#ifndef G_SMTP_PROTOCOL_MESSAGE_STORE_H
22#define G_SMTP_PROTOCOL_MESSAGE_STORE_H
35 class ProtocolMessageStore ;
47 std::unique_ptr<Filter> ) ;
55 void reset()
override ;
56 void clear()
override ;
58 bool addTo(
const ToInfo & )
override ;
59 void addReceived(
const std::string & )
override ;
60 GStore::NewMessage::Status addContent(
const char * , std::size_t )
override ;
61 std::size_t contentSize()
const override ;
62 std::string from()
const override ;
64 std::string bodyType()
const override ;
65 void process(
const std::string & auth_id ,
const std::string & peer_socket_address ,
66 const std::string & peer_certificate )
override ;
75 void filterDone(
int ) ;
79 std::unique_ptr<Filter> m_filter ;
80 std::unique_ptr<GStore::NewMessage> m_new_msg ;
A concrete implementation of the ProtocolMessage interface that stores incoming messages in the messa...
ProtocolMessageStore(GStore::MessageStore &store, std::unique_ptr< Filter >)
Constructor.
~ProtocolMessageStore() override
Destructor.
An interface used by the ServerProtocol class to assemble and process an incoming message.
A somewhat opaque identifer for a GStore::MessageStore message id.
A class which allows SMTP messages to be stored and retrieved.
Extra information from the SMTP MAIL-FROM command passed to GSmtp::ProtocolMessage::setFrom().
Extra information passed to GSmtp::ProtocolMessage::addTo().