|
virtual void | send (shared_ptr< vmime::message > msg, utility::progressListener *progress=NULL) |
|
virtual void | send (const mailbox &expeditor, const mailboxList &recipients, utility::inputStream &is, const size_t size, utility::progressListener *progress=NULL, const mailbox &sender=mailbox())=0 |
|
virtual void | send (shared_ptr< vmime::message > msg, const mailbox &expeditor, const mailboxList &recipients, utility::progressListener *progress=NULL, const mailbox &sender=mailbox()) |
|
Type | getType () const |
|
virtual | ~service () |
|
virtual const string | getProtocolName () const =0 |
|
shared_ptr< const session > | getSession () const |
|
shared_ptr< session > | getSession () |
|
virtual const serviceInfos & | getInfos () const =0 |
|
virtual void | connect ()=0 |
|
virtual void | disconnect ()=0 |
|
virtual bool | isConnected () const =0 |
|
virtual void | noop ()=0 |
|
shared_ptr< const security::authenticator > | getAuthenticator () const |
|
shared_ptr< security::authenticator > | getAuthenticator () |
|
void | setAuthenticator (shared_ptr< security::authenticator > auth) |
|
void | setCertificateVerifier (shared_ptr< security::cert::certificateVerifier > cv) |
|
shared_ptr< security::cert::certificateVerifier > | getCertificateVerifier () |
|
void | setSocketFactory (shared_ptr< socketFactory > sf) |
|
shared_ptr< socketFactory > | getSocketFactory () |
|
void | setTimeoutHandlerFactory (shared_ptr< timeoutHandlerFactory > thf) |
|
shared_ptr< timeoutHandlerFactory > | getTimeoutHandlerFactory () |
|
void | setTracerFactory (shared_ptr< tracerFactory > tf) |
|
shared_ptr< tracerFactory > | getTracerFactory () |
|
template<typename TYPE > |
void | setProperty (const string &name, const TYPE &value) |
|
virtual bool | isSecuredConnection () const =0 |
|
virtual shared_ptr< connectionInfos > | getConnectionInfos () const =0 |
|
A transport service.
Encapsulate protocols that can send messages.
void processHeader |
( |
shared_ptr< header > |
header | ) |
|
|
protected |
Prepares the header before transmitting the message.
Removes headers that should not be present (eg. "Bcc", "Return-Path"), or adds missing headers that are required/recommended by the RFCs. The header is modified inline.
- Parameters
-
References header::Date(), vmime::fields::DATE, messageId::generateId(), header::getFieldAt(), header::getFieldCount(), header::hasField(), vmime::fields::MESSAGE_ID, header::MessageId(), vmime::fields::MIME_VERSION, header::MimeVersion(), datetime::now(), transport::processHeaderField(), header::removeField(), header::replaceField(), and vmime::SUPPORTED_MIME_VERSION.
Referenced by transport::send().