VMime
vmime Namespace Reference

Namespaces

namespace  lineLengthLimits
namespace  utility
namespace  mediaTypes
namespace  encodingTypes
namespace  contentDispositionTypes
namespace  charsets
namespace  fields
namespace  dispositionActionModes
namespace  dispositionSendingModes
namespace  dispositionTypes
namespace  dispositionModifiers
namespace  exceptions
namespace  mdn
namespace  misc
namespace  net
namespace  security

Classes

class  address
class  addressList
class  attachment
class  attachmentHelper
class  noncopyable
class  body
class  bodyPart
class  charset
class  charsetConverter
class  charsetConverter_idna
class  charsetConverterOptions
class  component
class  contentDisposition
class  contentDispositionField
class  contentHandler
class  contentTypeField
class  context
class  datetime
class  defaultAttachment
class  disposition
class  emailAddress
class  emptyContentHandler
class  encoding
class  exception
class  fileAttachment
class  fileContentHandler
class  generationContext
class  header
class  headerField
class  headerFieldFactory
class  headerFieldValue
class  htmlTextPart
class  mailbox
class  mailboxGroup
class  mailboxList
class  mediaType
class  message
class  messageAttachment
class  messageBuilder
class  messageId
class  messageIdSequence
class  messageParser
class  object
class  parameter
class  parameterizedHeaderField
class  parserHelpers
class  parsingContext
class  path
class  plainTextPart
class  platform
class  propertySet
class  relay
class  streamContentHandler
class  stringContentHandler
class  text
class  textPart
class  textPartFactory
class  word
class  wordEncoder

Typedefs

typedef std::string string
typedef unsigned short port_t
typedef int char_t
typedef vmime_uint8 byte_t
typedef std::vector< byte_tbyteArray
typedef std::size_t size_t

Functions

const string libname ()
const string libversion ()
const string libapi ()
template<typename T, size_t N>
T const * cbegin (T const (&array)[N])
template<typename T, size_t N>
T const * cend (T const (&array)[N])
template<typename T, size_t N>
T * begin (T(&array)[N])
template<typename T, size_t N>
T * end (T(&array)[N])
template<typename T, size_t N>
size_t count (T const (&)[N])
template<class T1, class T2>
void copy_vector (const T1 &v1, T2 &v2)
template<class T>
shared_ptr< T > clone (shared_ptr< T > obj)
template<class T>
shared_ptr< T > clone (shared_ptr< const T > obj)
template<class T>
shared_ptr< T > clone (const T &obj)
template<class X, class Y>
shared_ptr< X > dynamicCast (shared_ptr< Y > obj)
template<class X, class Y>
shared_ptr< X > constCast (const shared_ptr< Y > &obj)

Variables

const string NULL_STRING
const text NULL_TEXT
const word NULL_WORD ("", vmime::charset(vmime::charsets::US_ASCII))
const string NEW_LINE_SEQUENCE = "\r\n "
const size_t NEW_LINE_SEQUENCE_LENGTH = 1
const string CRLF = "\r\n"
const string SUPPORTED_MIME_VERSION = "1.0"
const size_t npos = std::numeric_limits <size_t>::max()
CharsetEncodingEntry g_charsetEncodingMap []

Typedef Documentation

◆ byte_t

typedef vmime_uint8 byte_t

◆ byteArray

typedef std::vector<byte_t> byteArray

◆ char_t

typedef int char_t

◆ port_t

typedef unsigned short port_t

◆ size_t

typedef std::size_t size_t

◆ string

typedef std::string string

Function Documentation

◆ begin()

◆ cbegin()

template<typename T, size_t N>
T const * cbegin ( T const (&) array[N])

◆ cend()

template<typename T, size_t N>
T const * cend ( T const (&) array[N])

◆ clone() [1/3]

template<class T>
shared_ptr< T > clone ( const T & obj)

Clone helper (using a const reference).

This is an alias for dynamic_pointer_cast <T>(obj.clone()).

◆ clone() [2/3]

template<class T>
shared_ptr< T > clone ( shared_ptr< const T > obj)

Clone helper (using a const shared_ptr).

This is an alias for dynamic_pointer_cast <T>(obj->clone()).

◆ clone() [3/3]

◆ constCast()

◆ copy_vector()

◆ count()

template<typename T, size_t N>
size_t count ( T const(&)[N])

Referenced by stringUtils::appendBytesToString(), copy_vector(), stringUtils::countASCIIchars(), text::createFromString(), b64Encoder::decode(), uuEncoder::decode(), b64Encoder::encode(), kmailMaildirFormat::folderPathToFileSystemPath(), relay::generateImpl(), platform::handler::generateRandomBytes(), POP3Folder::getStatus(), IMAPFolder::IMAPMessage, stringUtils::makeStringFromBytes(), POP3Folder::POP3Message, dotFilteredInputStream::read(), inputStream::read(), inputStreamAdapter::read(), inputStreamByteBufferAdapter::read(), inputStreamSocketAdapter::read(), inputStreamStringAdapter::read(), inputStreamStringProxyAdapter::read(), parserInputStreamAdapter::read(), seekableInputStreamRegionAdapter::read(), stopSequenceFilteredInputStream< COUNT >::read(), socket::receiveRaw(), SASLSocket::receiveRaw(), socket::sendRaw(), SASLSocket::sendRaw(), socket::sendRawNonBlocking(), SASLSocket::sendRawNonBlocking(), maildirFolderStatus::setMessageCount(), POP3FolderStatus::setMessageCount(), inputStream::skip(), inputStreamAdapter::skip(), inputStreamByteBufferAdapter::skip(), inputStreamStringAdapter::skip(), inputStreamStringProxyAdapter::skip(), parserInputStreamAdapter::skip(), seekableInputStreamRegionAdapter::skip(), folder::status(), IMAPFolder::status(), maildirFolder::status(), POP3Folder::status(), tracer::traceReceiveBytes(), tracer::traceSendBytes(), IMAPFolderStatus::updateFromResponse(), outputStream::write(), outputStream::write(), SMTPChunkingOutputStreamAdapter::writeImpl(), CRLFToLFFilteredOutputStream::writeImpl(), dotFilteredOutputStream::writeImpl(), LFToCRLFFilteredOutputStream::writeImpl(), outputStream::writeImpl(), outputStreamAdapter::writeImpl(), outputStreamByteArrayAdapter::writeImpl(), outputStreamSocketAdapter::writeImpl(), and outputStreamStringAdapter::writeImpl().

◆ dynamicCast()

◆ end()

template<typename T, size_t N>
T * end ( T(&) array[N])

Referenced by bodyPart::body, body::bodyPart, address::clone(), charsetConverter_idna::convert(), stringUtils::countASCIIchars(), text::createFromString(), parserInputStreamAdapter::extract(), parserHelpers::findEOL(), stringUtils::findFirstNonASCIIchar(), parserInputStreamAdapter::findNext(), body::findNextBoundaryPosition(), parameterizedHeaderField::findParameter(), path::fromString(), emailAddress::generate(), component::getChildComponents(), header::getField(), parameterizedHeaderField::getParameter(), parameterizedHeaderField::hasParameter(), parameterizedHeaderField::headerFieldFactory, inputStreamStringAdapter::inputStreamStringAdapter(), stringUtils::isStringEqualNoCase(), stringUtils::isStringEqualNoCase(), body::isValidBoundary(), messageId::messageIdSequence, component::parse(), component::parse(), component::parse(), emailAddress::parse(), emailAddress::parse(), emailAddress::parse(), addressList::parseImpl(), body::parseImpl(), bodyPart::parseImpl(), charset::parseImpl(), component::parseImpl(), component::parseImpl(), contentDisposition::parseImpl(), datetime::parseImpl(), disposition::parseImpl(), emailAddress::parseImpl(), encoding::parseImpl(), header::parseImpl(), headerField::parseImpl(), mailbox::parseImpl(), mailboxGroup::parseImpl(), mailboxList::parseImpl(), mediaType::parseImpl(), messageId::parseImpl(), messageIdSequence::parseImpl(), parameter::parseImpl(), parameterizedHeaderField::parseImpl(), path::parseImpl(), relay::parseImpl(), text::parseImpl(), word::parseImpl(), address::parseNext(), headerField::parseNext(), messageId::parseNext(), word::parseWithState(), dotFilteredInputStream::read(), stopSequenceFilteredInputStream< COUNT >::read(), stringContentHandler::setData(), component::setParsedBounds(), stringContentHandler::stringContentHandler(), stringUtils::unquote(), CRLFToLFFilteredOutputStream::writeImpl(), dotFilteredOutputStream::writeImpl(), and LFToCRLFFilteredOutputStream::writeImpl().

◆ libapi()

const string VMIME_EXPORT libapi ( )

Return the library API version (eg: "6:1:6").

Returns
library API version

◆ libname()

const string VMIME_EXPORT libname ( )

Return the library name (eg: "libvmime").

Returns
library name

◆ libversion()

const string VMIME_EXPORT libversion ( )

Return the library version (eg: "0.5.2").

Returns
library version

Variable Documentation

◆ CRLF

VMIME_EXPORT const string CRLF = "\r\n"

The CR-LF sequence.

Referenced by body::generateImpl(), bodyPart::generateImpl(), and header::generateImpl().

◆ g_charsetEncodingMap

CharsetEncodingEntry g_charsetEncodingMap[]
Initial value:
=
{
CharsetEncodingEntry("iso-8859", encodingTypes::QUOTED_PRINTABLE),
CharsetEncodingEntry("iso8859", encodingTypes::QUOTED_PRINTABLE),
CharsetEncodingEntry("iso-2022", encodingTypes::BASE64),
CharsetEncodingEntry("iso2022", encodingTypes::BASE64),
CharsetEncodingEntry("", "")
}
const char *const QUOTED_PRINTABLE
Definition constants.cpp:80
const char *const BASE64
Definition constants.cpp:79

Referenced by charset::getRecommendedEncoding().

◆ NEW_LINE_SEQUENCE

◆ NEW_LINE_SEQUENCE_LENGTH

◆ npos

VMIME_EXPORT const size_t npos = std::numeric_limits <size_t>::max()

Constant value with the greatest possible value for an element of type size_t.

The meaning is "infinite" or "until the end".

Referenced by parserInputStreamAdapter::findNext(), body::findNextBoundaryPosition(), and body::parseImpl().

◆ NULL_STRING

VMIME_EXPORT const string NULL_STRING

"Null" (empty) string.

Referenced by headerFieldFactory::create().

◆ NULL_TEXT

VMIME_EXPORT const text NULL_TEXT

"Null" (empty) text.

◆ NULL_WORD

VMIME_EXPORT const word NULL_WORD ( "" ,
vmime::charset(vmime::charsets::US_ASCII)  )

"Null" (empty) word.

◆ SUPPORTED_MIME_VERSION

VMIME_EXPORT const string SUPPORTED_MIME_VERSION = "1.0"

The current MIME version supported by VMime.

Referenced by MDNHelper::buildMDN(), messageBuilder::construct(), and transport::processHeader().