~invalid_property_type()
Definition: exception.cpp:268
bool operator==(const contentDisposition &value) const
Definition: contentDisposition.cpp:82
Bad argument was passed to the function.
Definition: exception.hpp:296
exception * clone() const
Clone this object.
Definition: exception.cpp:212
virtual ~object()
Definition: object.cpp:48
void flush()
Flush this output stream and forces any buffered output bytes to be written out to the stream.
Definition: outputStreamSocketAdapter.cpp:50
const messageRange & getRangeAt(const size_t i) const
Returns the message range at the specified index.
Definition: messageSet.cpp:390
void setBlindCopyRecipients(const addressList &bcc)
Set the blind-copy recipients of the message (Bcc:).
Definition: messageBuilder.cpp:265
void setLanguage(const string &lang)
Set the language used in this word (optional).
Definition: word.cpp:837
void removeMailbox(shared_ptr< mailbox > mbox)
Remove the specified mailbox from the list.
Definition: mailboxGroup.cpp:297
An ordered list of certificates, from the subject certificate to the issuer certificate.
Definition: certificateChain.hpp:41
A filtered output stream which replaces CR or LF characters with CRLF sequences.
Definition: filteredStream.hpp:172
const char *const ORGANIZATION
Definition: constants.cpp:173
url & operator=(const url &u)
Definition: url.cpp:67
const shared_ptr< const attachment > getAttachmentAt(const size_t pos) const
Return the attachment at the specified position.
Definition: messageParser.cpp:288
void parseImpl(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: mailboxGroup.cpp:58
const char *const CONTENT_TRANSFER_ENCODING
Definition: constants.cpp:180
shared_ptr< tracerFactory > getTracerFactory()
Definition: service.cpp:145
stringContentHandler()
Definition: stringContentHandler.cpp:35
messageRange * clone() const
Clones this message range.
Definition: messageSet.cpp:141
const char *const USER_AGENT
Definition: constants.cpp:174
outputStreamStringAdapter(string &buffer)
Definition: outputStreamStringAdapter.cpp:33
virtual const byte_t * getDigest() const =0
Returns the hash, as computed by the algorithm.
shared_ptr< timeoutHandler > create()
Definition: defaultTimeoutHandler.cpp:68
@ MAY
Definition: dateTime.hpp:134
void flush()
Flush this output stream and forces any buffered output bytes to be written out to the stream.
Definition: outputStreamAdapter.cpp:45
Base class for exceptions thrown by SASL module.
Definition: exception.hpp:835
void removeAddress(shared_ptr< address > addr)
Remove the specified address from the list.
Definition: addressList.cpp:190
const char *const ISO8859_6
Definition: constants.cpp:102
void setEmail(const emailAddress &email)
Set the email of the mailbox.
Definition: mailbox.cpp:498
const char *const CONTENT_LOCATION
Definition: constants.cpp:184
const char *const CP_1257
Definition: constants.cpp:138
virtual void messagesAdded(shared_ptr< messageCountEvent > event)=0
void setName(const text &name)
Set the full name of the mailbox.
Definition: mailbox.cpp:486
static const vmime::encoding NO_ENCODING
Used to specify that enclosed data is not encoded.
Definition: contentHandler.hpp:46
virtual void traceSendBytes(const size_t count, const string &state="")
Trace raw bytes which have been sent.
Definition: tracer.cpp:54
const string getReportType() const
Return the value of the "report-type" parameter (RFC-1892).
Definition: contentTypeField.cpp:95
const string & getUsername() const
Return the username specified in the URL or empty if not specified.
Definition: url.cpp:334
const text toText() const
Returns the email address as multibyte text, by joining components.
Definition: emailAddress.cpp:674
object()
Definition: object.cpp:32
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:273
~bad_field_value_type()
Definition: exception.cpp:97
virtual ~stream()
Definition: stream.hpp:47
virtual void traceSend(const string &line)=0
Trace a command line which has been sent.
void removeAllMailboxes()
Remove all mailboxes from the list.
Definition: mailboxGroup.cpp:320
static int getDayOfWeek(const int year, const int month, const int day)
Return the day of the week from the specified date.
Definition: datetimeUtils.cpp:230
const vmime::encoding getEncoding() const
Return the encoding used for data in this embedded object.
Definition: htmlTextPart.cpp:456
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:404
bool hasSize() const
Check whether the value of the 'size' property is set.
Definition: fileAttachment.cpp:214
const char *const X_PRIORITY
Definition: constants.cpp:189
void parseImpl(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: mailboxList.cpp:180
Message not found (does not exist).
Definition: exception.hpp:519
size_t getEncodedSize(const size_t n) const
Return the encoded size for the specified input (decoded) size.
Definition: qpEncoder.cpp:538
const string getUsername() const
Return the authentication identity (usually, this is the username).
Definition: defaultAuthenticator.cpp:51
shared_ptr< component > clone() const
Clone this component.
Definition: disposition.cpp:47
const std::vector< shared_ptr< const messageId > > getMessageIdList() const
Return the message-id list.
Definition: messageIdSequence.cpp:230
const char *const SENDER
Definition: constants.cpp:166
path & operator=(const path &other)
Definition: path.cpp:102
Structure of a MIME part/message.
Definition: net/message.hpp:129
A class to create 'tracer' objects.
Definition: tracer.hpp:86
void copyFrom(const component &other)
Replace data in this component by data in other component.
Definition: dateTime.cpp:702
const char *const ISO8859_7
Definition: constants.cpp:103
bool operator==(const encoding &value) const
Definition: encoding.cpp:123
Definition: stringContentHandler.hpp:35
No mechanism is registered with the specified name.
Definition: exception.hpp:850
exception * clone() const
Clone this object.
Definition: exception.cpp:236
void setCreationDate(const datetime &creationDate)
Set the value of the "creation-date" parameter.
Definition: contentDispositionField.cpp:60
const string & getActionMode() const
Return the disposition action mode.
Definition: disposition.cpp:94
plainTextPart()
Definition: plainTextPart.cpp:37
exception * clone() const
Clone this object.
Definition: exception.cpp:284
static const encoding decide(shared_ptr< const contentHandler > data, const EncodingUsage usage=USAGE_BINARY_DATA)
Decide which encoding to use based on the specified data.
Definition: encoding.cpp:203
const std::vector< shared_ptr< const textPart > > getTextPartList() const
Return the text parts of the message.
Definition: messageParser.cpp:294
No recipient specified.
Definition: exception.hpp:251
void setCharset(const charset &ch)
Set the value of the "charset" parameter.
Definition: contentTypeField.cpp:83
static const string makeStringFromBytes(const byte_t *data, const size_t count)
Makes a string from bytes.
Definition: stringUtils.hpp:51
const char *const AUTOMATIC
User implicitely displayed or deleted the message (filter or any other automatic action).
Definition: constants.cpp:210
void setCreationDate(const datetime &date)
Set the value of the 'creation-date' property.
Definition: fileAttachment.cpp:204
A range of (continuous) messages, designated either by their sequence number, or by their UID.
Definition: messageSet.hpp:63
std::string string
Definition: types.hpp:92
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:452
const text & getName() const
Return the full name of the mailbox (empty if not specified).
Definition: mailbox.cpp:480
void removeMessageId(shared_ptr< messageId > mid)
Remove the specified message-id from the list.
Definition: messageIdSequence.cpp:180
const char *const MDN_GATEWAY
Definition: constants.cpp:202
Generic text part.
Definition: textPart.hpp:42
void addFolderListener(events::folderListener *l)
Definition: folder.cpp:95
static unsigned int getNext()
Return a new random number.
Definition: random.cpp:45
const string & command() const
Return the name of the command which have thrown the exception.
Definition: exception.cpp:557
static const char * EVENT_CLASS
Definition: events.hpp:138
void setBody(shared_ptr< body > body)
Replaces the body section of this part.
Definition: bodyPart.cpp:138
charsetConverter_idna(const charset &source, const charset &dest, const charsetConverterOptions &opts=charsetConverterOptions())
Construct and initialize an IDNA charset converter.
Definition: charsetConverter_idna.cpp:49
Authentication exception.
Definition: exception.hpp:802
const string NEW_LINE_SEQUENCE
Definition: base.cpp:88
@ OCT
Definition: dateTime.hpp:152
Holds information about a Message Disposition Notifications (MDN) that is to be sent.
Definition: sendableMDNInfos.hpp:41
bool hasModificationDate() const
Test whether the "modification-date" parameter is set.
Definition: contentDispositionField.cpp:66
bool isDirectParentOf(const path &p) const
Test whether this path is a direct parent of another one.
Definition: utility/path.cpp:191
static const char * EVENT_CLASS
Definition: events.hpp:68
static bool isAscii(const char_t c)
Definition: parserHelpers.hpp:76
Abstract representation of a folder in a message store.
Definition: folder.hpp:62
const string & getBuffer() const
Return the raw data for this encoded word.
Definition: word.cpp:843
vmime_uint8 byte_t
Definition: types.hpp:98
A content handler which obtains its data from a stream.
Definition: streamContentHandler.hpp:38
void parseImpl(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: contentDisposition.cpp:51
streamContentHandler()
Creates a new empty content handler.
Definition: streamContentHandler.cpp:36
void setName(const text &name)
Set the name of the group.
Definition: mailboxGroup.cpp:231
void setReadDate(const datetime &date)
Set the value of the 'read-date' property.
Definition: fileAttachment.cpp:212
shared_ptr< T > clone(shared_ptr< T > obj)
Clone helper (using a shared_ptr).
Definition: base.hpp:195
static const unsigned char sm_hexDecodeTable[256]
Definition: qpEncoder.hpp:59
outputStreamSocketAdapter(net::socket &sok)
Definition: outputStreamSocketAdapter.cpp:37
shared_ptr< utility::encoder::encoder > getEncoder() const
Use encoderFactory to obtain an encoder/decoder object for the current encoding type.
Definition: encoding.cpp:95
Stores information about a messaging service.
Definition: serviceInfos.hpp:48
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:540
void parseImpl(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: mailbox.cpp:70
const encoding getEncoding() const
Return the encoding used for this attachment.
Definition: defaultAttachment.cpp:128
~switcher()
Restores back saved context.
Definition: context.hpp:95
const char *const EIGHT_BIT
Definition: constants.cpp:78
@ IMPORTANCE_LOWEST
Definition: importanceHelper.hpp:53
static void resetImportance(shared_ptr< message > msg)
Reset the importance of the message to the default importance.
Definition: importanceHelper.cpp:34
exception * clone() const
Clone this object.
Definition: exception.cpp:511
generationContext & operator=(const generationContext &ctx)
Definition: generationContext.cpp:119
virtual size_t getDigestLength() const =0
Returns the length of the hash.
const shared_ptr< const contentHandler > getText() const
Return the text contained in the part.
Definition: htmlTextPart.cpp:357
const vmime::encoding & getEncoding() const
Returns the encoding used for data (or "binary" if not encoded).
Definition: stringContentHandler.cpp:212
static bool needQuoting(const string &str, const string &specialChars=" \t\"(),:;<>@[\\]")
Determines whether the specified string needs to be quoted.
Definition: stringUtils.cpp:214
Attachment of type 'file'.
Definition: fileAttachment.hpp:47
void generate(utility::outputStream &os, const vmime::encoding &enc, const size_t maxLineLength=lineLengthLimits::infinite) const
Output the contents into the specified stream.
Definition: stringContentHandler.cpp:116
const char *const FINAL_RECIPIENT
Definition: constants.cpp:200
const char *const CP_857
Definition: constants.cpp:119
@ IMPORTANCE_LOW
Definition: importanceHelper.hpp:52
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: emailAddress.cpp:546
Base class for exceptions thrown by the networking module.
Definition: exception.hpp:345
An adapter class for C++ standard output streams.
Definition: outputStreamAdapter.hpp:40
A list of mailboxes (basic type).
Definition: mailboxList.hpp:42
Identity certificate for a peer.
Definition: certificate.hpp:38
file_not_found(const utility::path &path, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:650
virtual void enumerateNumberMessageRange(const numberMessageRange &range)=0
UUEncode encoder.
Definition: uuEncoder.hpp:39
file()
Definition: file.hpp:206
size_t encode(utility::inputStream &in, utility::outputStream &out, utility::progressListener *progress=NULL)
Encode data.
Definition: noopEncoder.cpp:39
const string getPassword() const
Return the password of the authentication identity.
Definition: defaultAuthenticator.cpp:65
shared_ptr< component > clone() const
Clone this component.
Definition: encoding.cpp:256
bool isBuffered() const
Indicates whether the extract() method can be called multiple times.
Definition: emptyContentHandler.cpp:99
@ SPECIALUSE_NONE
User folder, no special use (or unknown).
Definition: folderAttributes.hpp:71
const mediaType getType() const
Return the type of text part (eg: "text/html").
Definition: htmlTextPart.cpp:53
relay & operator=(const relay &other)
Definition: relay.cpp:252
void flush()
Flush this output stream and forces any buffered output bytes to be written out to the stream.
Definition: filteredStream.cpp:206
void setReadDate(const datetime &readDate)
Set the value of the "read-date" parameter.
Definition: contentDispositionField.cpp:106
propertyProxy & operator=(const TYPE &value)
Definition: propertySet.hpp:180
shared_ptr< contentHandler > clone() const
Return a copy of this object.
Definition: streamContentHandler.cpp:61
port_t getPort() const
Return the port of the URL, or url::UNSPECIFIED_PORT if the default port if used.
Definition: url.cpp:370
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: relay.cpp:206
void writeImpl(const byte_t *const data, const size_t count)
Write data to the stream.
Definition: outputStreamAdapter.cpp:38
No algorithm has been found for the specified name.
Definition: exception.hpp:149
T const * cend(T const (&array)[N])
Definition: base.hpp:87
void appendAttachment(shared_ptr< attachment > attach)
Attach a new object to the message.
Definition: messageBuilder.cpp:176
void copyFrom(const component &other)
Replace data in this component by data in other component.
Definition: mailbox.cpp:439
bool operator>(const datetime &other) const
Definition: dateTime.cpp:866
size_t start() const
Definition: stringProxy.cpp:123
const char *const WINDOWS_1254
Definition: constants.cpp:151
bool isValidText(const string &text, string::size_type *firstInvalidByte) const
Checks whether the specified text is valid in this charset.
Definition: charset.cpp:113
shared_ptr< const contentHandler > getData() const
Return data stored in this embedded object.
Definition: htmlTextPart.cpp:450
const char *const DISPOSITION_NOTIFICATION_TO
Definition: constants.cpp:193
~fileInfo()
Definition: fileAttachment.cpp:188
const datetime getReadDate() const
Return the value of the "read-date" parameter.
Definition: contentDispositionField.cpp:95
const string & getFor() const
Definition: relay.cpp:313
~propertySet()
Definition: propertySet.cpp:51
bool hasProperty(shared_ptr< session > s, const property &p) const
Helper function to test if the specified property is set in the session object.
Definition: serviceInfos.cpp:91
const shared_ptr< const contentHandler > getText() const
Return the text contained in the part.
Definition: plainTextPart.cpp:100
int getFlags()
Return the flags of this folder.
Definition: folder.cpp:45
@ MAR
Definition: dateTime.hpp:146
void setData(shared_ptr< utility::file > file, const vmime::encoding &enc=NO_ENCODING)
Sets the data managed by this content handler.
Definition: fileContentHandler.cpp:77
const char *const ISO8859_13
Definition: constants.cpp:107
~open_file_error()
Definition: exception.cpp:196
~plainTextPart()
Definition: plainTextPart.cpp:43
word m_domainName
Definition: emailAddress.hpp:109
const char *const SENT_MANUALLY
User explicitly gave permission for this particular MDN to be sent.
Definition: constants.cpp:217
virtual ~messagePart()
Definition: net/message.hpp:60
void renameParent(const path &oldPath, const path &newPath)
Rename a parent component in the path.
Definition: utility/path.cpp:219
const char *const CP_869
Definition: constants.cpp:128
Verify that a certificate path issued by a server can be trusted.
Definition: certificateVerifier.hpp:45
const datetime & getCreationDate() const
Return the value of the 'creation-date' property.
Definition: fileAttachment.cpp:203
const string toString() const
Returns the email address as a string, by joining components.
Definition: emailAddress.cpp:660
charsetConverterOptions m_charsetConvOptions
Definition: context.hpp:115
size_t getDecodedSize(const size_t n) const
Return the encoded size for the specified input (encoded) size.
Definition: uuEncoder.cpp:335
Interface for connecting to servers.
Definition: socket.hpp:47
const char *const ISO8859_14
Definition: constants.cpp:108
void addModifier(const string &modifier)
Add a disposition modifier if it does not exist.
Definition: disposition.cpp:124
virtual void convert(const string &in, string &out, status *st=NULL)=0
Convert a string buffer from one charset to another charset (in-memory conversion)
std::vector< std::pair< mediaType, AllocFunc > > MapType
Definition: textPartFactory.hpp:44
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:213
void registerAlgorithm(const string &name)
Register a new digest algorithm by its name.
Definition: messageDigestFactory.hpp:83
const std::vector< shared_ptr< const bodyPart > > getPartList() const
Return the part list.
Definition: body.cpp:1026
static const string toLower(const string &str)
Transform all the characters in a string to lower-case.
Definition: stringUtils.cpp:91
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:708
eightBitEncoder()
Definition: eightBitEncoder.cpp:32
bool hasCharset() const
Test whether the "charset" parameter is set.
Definition: contentTypeField.cpp:66
size_t getEncodedSize(const size_t n) const
Return the encoded size for the specified input (decoded) size.
Definition: uuEncoder.cpp:326
void writeImpl(const byte_t *const data, const size_t count)
Write data to the stream.
Definition: outputStreamByteArrayAdapter.cpp:38
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: mailbox.cpp:504
encoding m_encoding
Encoding.
Definition: defaultAttachment.hpp:71
static bool needConfirmation(const shared_ptr< const message > msg)
Check whether we need user confirmation for sending a MDN even if he/she explicitely allowed automati...
Definition: MDNHelper.cpp:115
bool isNumberSet() const
Returns whether this set references messages by their sequence number.
Definition: messageSet.cpp:372
static messageSet byUID(const message::uid &uid)
Constructs a new message set and initializes it with a single message represented by its UID.
Definition: messageSet.cpp:253
sendableMDNInfos & operator=(const sendableMDNInfos &other)
Definition: sendableMDNInfos.cpp:44
bool operator!=(const charset &value) const
Definition: charset.cpp:168
authentication_error(const string &response, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:386
shared_ptr< transport > getTransport(shared_ptr< security::authenticator > auth=null)
Return a transport service instance for the protocol specified in the session properties.
Definition: session.cpp:81
const string & getHost() const
Return the host name of the URL (server name or IP address).
Definition: url.cpp:358
size_t encode(utility::inputStream &in, utility::outputStream &out, utility::progressListener *progress=NULL)
Encode data.
Definition: b64Encoder.cpp:78
mailboxList()
Definition: mailboxList.cpp:33
const std::vector< string > getHeaderFields() const
Returns a list of header fields to fetch.
Definition: fetchAttributes.cpp:85
@ PARAMETER_VALUE_RFC2231_AND_RFC2047
Generate both RFC-2047- and RFC-2231-encoded values.
Definition: generationContext.hpp:117
@ TYPE_ADDED
New messages have been added.
Definition: events.hpp:73
property(const string &name, const Types type, const string &defaultValue="", const int flags=FLAG_DEFAULT)
Construct a new property.
Definition: serviceInfos.cpp:101
void generate(utility::outputStream &os, const vmime::encoding &enc, const size_t maxLineLength=lineLengthLimits::infinite) const
Output the contents into the specified stream.
Definition: streamContentHandler.cpp:88
const shared_ptr< const message > getMessage() const
Return the message related to this MDN.
Definition: sendableMDNInfos.cpp:51
shared_ptr< component > clone() const
Clone this component.
Definition: relay.cpp:259
bool isEmpty() const
Tests whether the list of words is empty.
Definition: text.cpp:196
void copyFrom(const component &other)
Replace data in this component by data in other component.
Definition: parameter.cpp:71
Information about a registered service.
Definition: serviceFactory.hpp:73
@ FORCE_NO_ENCODING
Just fold lines, don't encode them.
Definition: text.hpp:196
const text & getSubject() const
Return the subject of the message.
Definition: messageParser.cpp:264
int getDay() const
Definition: dateTime.cpp:793
~messageParser()
Definition: messageParser.cpp:55
virtual ~socketFactory()
Definition: socket.hpp:203
void setValue(const TYPE &value)
Definition: propertySet.hpp:187
virtual void traceReceiveBytes(const size_t count, const string &state="")
Trace raw bytes which have been received.
Definition: tracer.cpp:40
const shared_ptr< const message > getMessage() const
Return the message related to this MDN.
Definition: receivedMDNInfos.cpp:54
virtual size_t getBlockSize()
Return the preferred maximum block size when reading from or writing to this stream.
Definition: stream.cpp:32
bool handleTimeOut()
Called when the time limit has been reached (when isTimeOut() returned true).
Definition: defaultTimeoutHandler.cpp:60
~no_such_property()
Definition: exception.cpp:256
const std::vector< string > getAvailableProperties() const
Return a list of property names that can be set for this encoder.
Definition: uuEncoder.cpp:41
bool isUIDSet() const
Returns whether this set references messages by their UID.
Definition: messageSet.cpp:378
const exception * other() const
Return the next exception in the chain, that is the exception that caused this exception.
Definition: exception.cpp:70
static const unsigned char sm_alphabet[]
Definition: b64Encoder.hpp:55
void setSize(const size_t size)
Set the value of the 'size' property.
Definition: fileAttachment.cpp:216
Creates instances of message digest algorithms.
Definition: messageDigestFactory.hpp:41
unsupported_option(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:400
~session()
Definition: session.cpp:62
size_t getGeneratedSize(const generationContext &ctx)
Get the number of bytes that will be used by this component when it is generated.
Definition: body.cpp:501
@ FLAG_REQUIRED
Definition: serviceInfos.hpp:131
outputStreamByteArrayAdapter(byteArray &array)
Definition: outputStreamByteArrayAdapter.cpp:31
unsigned long length_type
Definition: file.hpp:102
const word & getValue() const
Return the raw value of this parameter.
Definition: parameter.cpp:93
void setRecipients(const addressList &recipients)
Set the recipients of the message (To:).
Definition: messageBuilder.cpp:229
charsetConverterOptions()
Definition: charsetConverterOptions.cpp:31
static bool isAlpha(const char_t c)
Definition: parserHelpers.hpp:59
const char *const X_MAILER
Definition: constants.cpp:188
shared_ptr< const contentHandler > getPlainText() const
Definition: htmlTextPart.cpp:345
void appendAddress(shared_ptr< address > addr)
Add a address at the end of the list.
Definition: addressList.cpp:142
The type for an unique message identifier.
Definition: net/message.hpp:186
messageParser(const string &buffer)
Definition: messageParser.cpp:40
exception * clone() const
Clone this object.
Definition: exception.cpp:296
const string NULL_STRING
"Null" (empty) string.
Definition: base.cpp:57
const char *const CP_437
Definition: constants.cpp:112
const datetime & getReadDate() const
Return the value of the 'read-date' property.
Definition: fileAttachment.cpp:211
const string libapi()
Return the library API version (eg: "6:1:6").
Definition: base.cpp:84
messageIdSequence()
Definition: messageIdSequence.cpp:35
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: contentDisposition.cpp:127
void setPath(const string &path)
Set the part portion of the URL.
Definition: url.cpp:388
shared_ptr< bodyPart > getPartAt(const size_t pos)
Return the part at the specified position.
Definition: body.cpp:1014
~partial_fetch_not_supported()
Definition: exception.cpp:590
virtual size_t getBlockSize()
Return the preferred maximum block size when reading from or writing to this stream.
Definition: filteredStream.cpp:43
~defaultAuthenticator()
Definition: defaultAuthenticator.cpp:46
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: bodyPart.cpp:59
~no_such_mechanism()
Definition: exception.cpp:703
void insertPartAfter(shared_ptr< bodyPart > afterPart, shared_ptr< bodyPart > part)
Insert a new part after the specified part.
Definition: body.cpp:956
const shared_ptr< const registeredEncoder > getEncoderAt(const size_t pos) const
Return the registered encoder at the specified position.
Definition: encoderFactory.cpp:99
virtual ~file()
Definition: file.hpp:105
~operation_not_supported()
Definition: exception.cpp:459
Definition: exception.hpp:161
bool isEmpty() const
Returns 'true' if there is no data set.
Definition: emptyContentHandler.cpp:81
shared_ptr< const embeddedObject > findObject(const string &id) const
Return the embedded object with the specified identifier.
Definition: htmlTextPart.cpp:381
~htmlTextPart()
Definition: htmlTextPart.cpp:48
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:595
const text NULL_TEXT
"Null" (empty) text.
Definition: base.cpp:61
@ REFERENCED_BY_ID
Referenced by Content-Id.
Definition: htmlTextPart.hpp:69
Types getType() const
Return the event type.
Definition: events.cpp:72
An output stream that is connected to a socket.
Definition: outputStreamSocketAdapter.hpp:48
virtual void folderDeleted(shared_ptr< folderEvent > event)=0
static bool isPrint(const char_t c)
Definition: parserHelpers.hpp:85
const char *const CC
Definition: constants.cpp:169
static void attachMDNRequest(shared_ptr< message > msg, const mailboxList &mailboxes)
Attach a MDN request to the specified message.
Definition: MDNHelper.cpp:41
generationContext()
Definition: generationContext.cpp:31
defaultConnectionInfos(const string &host, const port_t port)
Definition: defaultConnectionInfos.cpp:37
void setCharset(const charset &ch)
Set the charset of this word.
Definition: word.cpp:825
bool isEmpty() const
Tests whether this word is empty.
Definition: word.cpp:855
void writeImpl(const byte_t *const data, const size_t count)
Write data to the stream.
Definition: filteredStream.cpp:234
size_t getSize() const
Return the value of the 'size' property.
Definition: fileAttachment.cpp:215
const string & getLocalPart() const
Return the local part of the address.
Definition: path.cpp:49
no_factory_available(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:209
~textPartFactory()
Definition: textPartFactory.cpp:44
static unsigned int getProcess()
Return the current process number (may be user to build "random" strings).
Definition: random.cpp:63
bad_field_value_type(const string &fieldName, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:98
Socket error.
Definition: exception.hpp:366
void enumerate(messageSetEnumerator &en) const
Enumerates this range with the specified enumerator.
Definition: messageSet.cpp:135
@ USAGE_TEXT
Use for body text.
Definition: encoding.hpp:51
Partial fetch is not supported by the underlying protocol.
Definition: exception.hpp:708
void setFor(const string &for_)
Definition: relay.cpp:319
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:177
charset & operator=(const charset &other)
Definition: charset.cpp:155
@ JUL
Definition: dateTime.hpp:149
void setCharset(const charset &ch)
Set the charset used to encode text in the text part.
Definition: htmlTextPart.cpp:339
const word & getFilename() const
Return the value of the 'filename' property.
Definition: fileAttachment.cpp:198
fetchAttributes()
Constructs an empty fetchAttributes object.
Definition: fetchAttributes.cpp:41
static shared_ptr< const attachment > getBodyPartAttachment(shared_ptr< const bodyPart > part, const unsigned int options=0)
Return attachment information in the specified body part.
Definition: attachmentHelper.cpp:126
PredefinedFetchAttributes
Predefined attributes that can be fetched.
Definition: fetchAttributes.hpp:51
mediaType m_type
Media type (eg.
Definition: defaultAttachment.hpp:68
Constructs 'file' objects.
Definition: file.hpp:217
void parseImpl(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: charset.cpp:61
shared_ptr< mailbox > getMailboxAt(const size_t pos)
Return the mailbox at the specified position.
Definition: mailboxList.cpp:104
void insertMailboxBefore(shared_ptr< mailbox > beforeMailbox, shared_ptr< mailbox > mbox)
Insert a new mailbox before the specified mailbox.
Definition: mailboxList.cpp:50
void parseImpl(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: path.cpp:116
Command error: operation failed (this is specific to the underlying protocol).
Definition: exception.hpp:640
unfetched_object(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:496
const char * getClass() const
Definition: events.cpp:118
#define R0(v, w, x, y, z, i)
Definition: sha1MessageDigest.cpp:54
void enumerate(messageSetEnumerator &en) const
Enumerates this set with the specified enumerator.
Definition: messageSet.cpp:359
const string getWholeBuffer() const
Return the unconverted (raw) data of all words.
Definition: text.cpp:497
void copyFrom(const component &other)
Replace data in this component by data in other component.
Definition: mailboxList.cpp:158
const string getHostname() const
Return the local host name of the machine.
Definition: defaultAuthenticator.cpp:93
void enumerate(messageSetEnumerator &en) const
Enumerates this range with the specified enumerator.
Definition: messageSet.cpp:91
@ AUG
Definition: dateTime.hpp:150
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:610
fileContentHandler()
Creates a new empty content handler.
Definition: fileContentHandler.cpp:37
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:165
void registerType(const mediaType &type)
Definition: textPartFactory.hpp:67
operation_not_supported(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:460
static int getWeekOfYear(const int year, const int month, const int day, const bool iso=false)
Return the week number in the year (ISO 8601).
Definition: datetimeUtils.cpp:259
Definition: propertySet.hpp:209
void insertMessageIdBefore(shared_ptr< messageId > beforeMid, shared_ptr< messageId > mid)
Insert a new message-id before the specified message-id.
Definition: messageIdSequence.cpp:144
word & operator=(const word &w)
Definition: word.cpp:745
const string & getName() const
Return the name of the property.
Definition: propertySet.cpp:272
const string & getType() const
Return the disposition type.
Definition: disposition.cpp:118
virtual ~component()
Definition: component.cpp:44
const char *const BINARY
Definition: constants.cpp:81
void parseImpl(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: word.cpp:260
bool m_wrapMessageId
Definition: generationContext.hpp:164
virtual outputStream & getNextOutputStream()=0
Return a reference to the stream being filtered.
void flush()
Flush this output stream and forces any buffered output bytes to be written out to the stream.
Definition: outputStreamStringAdapter.cpp:46
int getWeek() const
Definition: dateTime.cpp:799
This class is a proxy for the string class.
Definition: stringProxy.hpp:45
size_t getEncodedSize(const size_t n) const
Return the encoded size for the specified input (decoded) size.
Definition: b64Encoder.cpp:310
bool operator==(const class emailAddress &eml) const
Definition: emailAddress.cpp:589
const char *const UUENCODE
Definition: constants.cpp:82
void copyFrom(const component &other)
Replace data in this word by data in other word.
Definition: word.cpp:763
void setId(const string &id)
Definition: relay.cpp:307
Embedded object (eg: image for <IMG> tag).
Definition: htmlTextPart.hpp:62
const word getName() const
Return the (file) name of this attachment.
Definition: defaultAttachment.cpp:116
void setYear(const int year)
Definition: dateTime.cpp:801
void extractRaw(utility::outputStream &os, utility::progressListener *progress=NULL) const
Extract the contents into the specified stream, without decoding it.
Definition: stringContentHandler.cpp:187
const char *const BASE64
Definition: constants.cpp:79
shared_ptr< security::cert::certificateVerifier > getCertificateVerifier()
Get the object responsible for verifying certificates when using secured connections (TLS/SSL).
Definition: service.cpp:119
There is no property with that name in the set.
Definition: exception.hpp:266
shared_ptr< const session > getSession() const
Return the session object associated with this service instance.
Definition: service.cpp:81
int getYear() const
Definition: dateTime.cpp:791
bool isEmpty() const
Returns 'true' if there is no data set.
Definition: streamContentHandler.cpp:194
Encoding
Available encodings for RFC-2047.
Definition: wordEncoder.hpp:52
@ TYPE_STRING
Definition: serviceInfos.hpp:120
static const string getString(const size_t length, const string &randomChars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
Return a random character string with the specified length.
Definition: random.cpp:69
void removeAllParts()
Remove all parts from the list.
Definition: body.cpp:996
size_t findNextBoundaryPosition(shared_ptr< utility::parserInputStreamAdapter > parser, const string &boundary, const size_t position, const size_t end, size_t *boundaryStart, size_t *boundaryEnd)
Finds the next boundary position in the parsing buffer.
Definition: body.cpp:59
const char *const UTF_32
Definition: constants.cpp:145
void reset()
Resets the algorithm to its initial state, so that you can compute a new hash using the same object.
Definition: sha1MessageDigest.cpp:67
static const byte_t * bytesFromString(const string &str)
Casts a string to bytes.
Definition: stringUtils.hpp:61
void appendComponent(const component &c)
Append a component to the path.
Definition: utility/path.cpp:246
const charset & getCharset() const
Return the charset of this word.
Definition: word.cpp:819
static void transform(unsigned int state[5], const byte_t buffer[64])
Hash a single 512-bit block.
Definition: sha1MessageDigest.cpp:194
bool operator==(const charset &value) const
Definition: charset.cpp:162
size_t getAddressCount() const
Return the number of addresses in the list.
Definition: addressList.cpp:219
virtual shared_ptr< childProcess > create(const utility::file::path &path) const =0
Create a new child process.
static const string generateRandomBoundaryString()
Generate a new random boundary string.
Definition: body.cpp:579
~illegal_state()
Definition: exception.cpp:411
shared_ptr< const object > getPart() const
Return the part in which the attachment has been found.
Definition: defaultAttachment.cpp:134
void setDomainName(const word &domainName)
Set the domain name of the address.
Definition: emailAddress.cpp:642
size_t getWordCount() const
Return the number of words in the list.
Definition: text.cpp:190
void insertAddressAfter(shared_ptr< address > afterAddress, shared_ptr< address > addr)
Insert a new address after the specified address.
Definition: addressList.cpp:169
~unfetched_object()
Definition: exception.cpp:495
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:249
string m_domain
Definition: path.hpp:84
Importance
Different levels of importance.
Definition: importanceHelper.hpp:47
const std::vector< shared_ptr< const attachment > > getAttachmentList() const
Return the attachments of the message.
Definition: messageParser.cpp:276
shared_ptr< const registeredService > getServiceByProtocol(const string &protocol) const
Return information about a registered protocol.
Definition: serviceFactory.cpp:98
Error while giving credentials to the server (wrong username or password, or wrong authentication met...
Definition: exception.hpp:437
exception * clone() const
Clone this object.
Definition: exception.cpp:114
qpEncoder()
Definition: qpEncoder.cpp:33
string m_epilogText
Definition: generationContext.hpp:163
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: dateTime.cpp:594
shared_ptr< component > clone() const
Clone this component.
Definition: bodyPart.cpp:79
shared_ptr< mailboxList > toMailboxList() const
Return a list of mailboxes.
Definition: addressList.cpp:275
Information about the connection used by a service.
Definition: defaultConnectionInfos.hpp:43
bool operator>=(const datetime &other) const
Definition: dateTime.cpp:880
An adapter class for string output.
Definition: outputStreamStringAdapter.hpp:38
Base class for all types of attachment.
Definition: attachment.hpp:44
operation_cancelled(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:484
static bool isEncodingNeeded(const generationContext &ctx, const string &buffer, const charset &charset, const string &lang)
Test whether RFC-2047 encoding is needed.
Definition: wordEncoder.cpp:229
const std::vector< shared_ptr< const registeredEncoder > > getEncoderList() const
Return a list of all registered encoders.
Definition: encoderFactory.cpp:105
Encode/decode data in different encodings.
Definition: encoder.hpp:42
shared_ptr< const messagePart > getPartAt(const size_t pos) const
Return the sub-part at the specified position (zero is the first part).
Definition: net/message.cpp:39
const string & getVia() const
Definition: relay.cpp:277
shared_ptr< component > clone() const
Clone this component.
Definition: text.cpp:236
A list of addresses.
Definition: addressList.hpp:44
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: word.cpp:387
bool getInternationalizedEmailSupport() const
Returns whether support for Internationalized Email Headers (RFC-6532) is enabled.
Definition: context.cpp:49
messageId()
Definition: messageId.cpp:34
Abstract representation of a file or directory.
Definition: file.hpp:97
~autoLock()
Definition: autoLock.hpp:50
void setProperty(const string &name, const TYPE &value)
Change the value of the specified property or create a new property set to the specified a value.
Definition: propertySet.hpp:310
bodyPart & operator=(const bodyPart &other)
Definition: bodyPart.cpp:101
void setSpecialUse(const int use)
Set the special use of the folder.
Definition: folderAttributes.cpp:75
const datetime & getDate() const
Definition: relay.cpp:325
static const string unquote(const string &str)
Unquote the specified string and transform escaped characters.
Definition: stringUtils.cpp:178
~operation_timed_out()
Definition: exception.cpp:471
const T getValueAs() const
Return the value of this object in the specified type.
Definition: parameter.hpp:124
static const string PROTOCOL_FILE
Standard name for FILE protocol (local file-system).
Definition: url.hpp:49
void registerName(const string &name)
Register a new encoder by its encoding name.
Definition: encoderFactory.hpp:99
virtual ~serviceInfos()
Definition: serviceInfos.cpp:86
void setDate(const datetime &date)
Definition: relay.cpp:331
const char *const CP_1253
Definition: constants.cpp:134
const char *const CP_775
Definition: constants.cpp:114
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: mailboxList.cpp:173
htmlTextPart()
Definition: htmlTextPart.cpp:41
bool isEmpty() const
Returns 'true' if there is no data set.
Definition: stringContentHandler.cpp:200
virtual ~messageStructure()
Definition: net/message.hpp:138
FindOptions
Options for use with the following functions: findAttachmentsInMessage, getBodyPartAttachment,...
Definition: attachmentHelper.hpp:49
const string getServiceName() const
Return the registered service name of the application service (eg: "imap").
Definition: defaultAuthenticator.cpp:105
void parse(shared_ptr< const bodyPart > message, shared_ptr< const bodyPart > parent, shared_ptr< const bodyPart > textPart)
Parse the text part(s) from the specified message.
Definition: plainTextPart.cpp:73
static const property AUTH_PASSWORD
The common property 'auth.password' which is the password used to authenticate with the server.
Definition: serviceInfos.hpp:91
void setMonth(const int month)
Definition: dateTime.cpp:802
illegal_byte_sequence_for_charset(const string &what="", const exception &other=NO_EXCEPTION)
Definition: exception.cpp:124
bool hasObject(const string &id) const
Test the existence of an embedded object given its identifier.
Definition: htmlTextPart.cpp:394
Base64 encoder.
Definition: b64Encoder.hpp:39
Read from a file.
Definition: file.hpp:84
const std::vector< shared_ptr< const word > > getWordList() const
Return the word list.
Definition: text.cpp:214
@ PARAMETER_VALUE_RFC2047_ONLY
Only generate RFC-2047 values (do not use RFC-2231).
Definition: generationContext.hpp:111
A path: a local part + '@' + a domain.
Definition: path.hpp:38
void extractRaw(utility::outputStream &os, utility::progressListener *progress=NULL) const
Extract the contents into the specified stream, without decoding it.
Definition: streamContentHandler.cpp:173
bool hasFlag(const int flag)
Return whether the specified folder flag(s) is/are set.
Definition: folderAttributes.cpp:93
void stop(const size_t total)
Called at the end of the operation.
Definition: progressListener.cpp:59
service(shared_ptr< session > sess, const serviceInfos &infos, shared_ptr< security::authenticator > auth)
Definition: service.cpp:51
~addressList()
Definition: addressList.cpp:47
exception * clone() const
Clone this object.
Definition: exception.cpp:463
Types getType() const
Return the event type.
Definition: events.cpp:140
contentDisposition & operator=(const contentDisposition &other)
Definition: contentDisposition.cpp:108
void removeMailbox(shared_ptr< mailbox > mbox)
Remove the specified mailbox from the list.
Definition: mailboxList.cpp:74
size_t outputBytesWritten
Number of bytes written to output buffer.
Definition: charsetConverter.hpp:84
system_error(const string &what, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:293
const char *const CP_861
Definition: constants.cpp:122
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: emailAddress.cpp:648
const addressList & getBlindCopyRecipients() const
Return the blind-copy recipients of the message (Bcc:).
Definition: messageBuilder.cpp:253
virtual shared_ptr< const messageStructure > getStructure() const =0
Return the structure of this part.
@ JUN
Definition: dateTime.hpp:148
const string & getName() const
Return the content disposition type.
Definition: contentDisposition.cpp:115
operation_timed_out(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:472
const char *const SUBJECT
Definition: constants.cpp:172
bool isEmpty() const
Tests whether the list of parts is empty.
Definition: body.cpp:1008
mailbox & operator=(const mailbox &other)
Definition: mailbox.cpp:448
shared_ptr< timeoutHandlerFactory > getTimeoutHandlerFactory()
Return the factory used to create timeoutHandler objects for this service.
Definition: service.cpp:157
size_t getBlockSize()
Return the preferred maximum block size when reading from or writing to this stream.
Definition: filteredStream.cpp:213
void copyFrom(const component &other)
Replace data in this component by data in other component.
Definition: encoding.cpp:262
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:654
@ TYPE_STORE
The service is a message store.
Definition: service.hpp:72
~folder_already_open()
Definition: exception.cpp:435
exception * clone() const
Clone this object.
Definition: exception.cpp:127
disposition()
Definition: disposition.cpp:34
shared_ptr< const contentHandler > m_data
Attachment data (eg.
Definition: defaultAttachment.hpp:70
shared_ptr< X > dynamicCast(shared_ptr< Y > obj)
Downcast helper.
Definition: base.hpp:223
void insertMailboxAfter(shared_ptr< mailbox > afterMailbox, shared_ptr< mailbox > mbox)
Insert a new mailbox after the specified mailbox.
Definition: mailboxList.cpp:62
static bool is7bit(const string &str)
Returns whether the specified string is composed exclusively of 7-bit ASCII characters.
Definition: stringUtils.cpp:154
A store service.
Definition: store.hpp:46
@ NOV
Definition: dateTime.hpp:153
void removeAllProperties()
Remove all properties from the list.
Definition: propertySet.cpp:74
const std::vector< string > getUserFlags() const
Set the user-defined flags of the folder.
Definition: folderAttributes.cpp:99
const char *const CP_1256
Definition: constants.cpp:137
messageCountEvent(shared_ptr< folder > folder, const Types type, const std::vector< size_t > &nums)
Definition: events.cpp:63
void setPrologText(const string &prologText)
Sets the prolog text used when generating MIME body parts.
Definition: generationContext.cpp:79
shared_ptr< component > clone() const
Clone this component.
Definition: addressList.cpp:136
size_t getAttachmentCount() const
Return the number of attachments in the message.
Definition: messageParser.cpp:282
static const string encode(const string &s)
Encode extended characters in a URL string (ASCII characters are unmodified, other are encoded as '' ...
Definition: urlUtils.cpp:32
property & operator=(const property &p)
Definition: serviceInfos.cpp:130
const char *const CP_864
Definition: constants.cpp:125
const TYPE getProperty(const string &name, const TYPE defaultValue) const
Get the value of the specified property.
Definition: propertySet.hpp:296
std::vector< byte_t > byteArray
Definition: types.hpp:99
addressList & operator=(const addressList &other)
Definition: addressList.cpp:118
A list of message identifiers (basic type).
Definition: messageIdSequence.hpp:38
bool isRoot() const
Test whether this path is the root (alias for isEmpty()).
Definition: utility/path.cpp:155
static Importance getImportanceHeader(shared_ptr< const header > hdr)
Return the importance of a message, given its header.
Definition: importanceHelper.cpp:58
size_t getServiceCount() const
Return the number of registered services.
Definition: serviceFactory.cpp:113
size_t m_maxLineLength
Definition: generationContext.hpp:160
const string getContentMIC() const
Return the Message Integrity Check (MIC), that is the value of the "Received-content-MIC" field.
Definition: receivedMDNInfos.cpp:72
bool hasFilename() const
Test whether the "filename" parameter is set.
Definition: contentDispositionField.cpp:112
const charset getCharset() const
Return the value of the "charset" parameter.
Definition: contentTypeField.cpp:72
const addressList & getBlindCopyRecipients() const
Return the blind-copy recipients of the message (Bcc:).
Definition: messageParser.cpp:258
~no_encoder_available()
Definition: exception.cpp:136
Types
Definition: events.hpp:141
size_t getDecodedSize(const size_t n) const
Return the encoded size for the specified input (encoded) size.
Definition: noopEncoder.cpp:79
void copyFrom(const component &other)
Replace data in this component by data in other component.
Definition: text.cpp:97
virtual void traceReceive(const string &line)=0
Trace a response line which has been received.
bool hasReportType() const
Test whether the "report-type" parameter is set.
Definition: contentTypeField.cpp:89
static const unsigned char sm_hexDigits[17]
Definition: qpEncoder.hpp:58
void copyFrom(const generationContext &ctx)
Definition: generationContext.cpp:126
void parseImpl(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: messageIdSequence.cpp:88
const char *const CP_860
Definition: constants.cpp:121
word m_localName
Definition: emailAddress.hpp:108
static const unsigned char sm_decodeMap[256]
Definition: b64Encoder.hpp:56
virtual ~MDNInfos()
Definition: MDNInfos.cpp:32
tls_exception(const string &what, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:722
const char * getClass() const
Definition: events.cpp:154
A helper for building MIME messages.
Definition: messageBuilder.hpp:47
const string & getPrologText() const
Return the prolog text.
Definition: body.cpp:812
void setCharset(const charset &chset)
Set the charset of contents.
Definition: body.cpp:684
void extract(outputStream &os, const size_t start=0, const size_t end=std::numeric_limits< size_t >::max(), utility::progressListener *progress=NULL) const
Definition: stringProxy.cpp:94
folder(const folder &)
Definition: folder.hpp:66
size_t getBlockSize()
Return the preferred maximum block size when reading from or writing to this stream.
Definition: filteredStream.cpp:372
const string getConvertedText(const charset &dest, const charsetConverterOptions &opts=charsetConverterOptions()) const
Return the contained text converted to the specified charset.
Definition: word.cpp:791
void setCharset(const charset &ch)
Set the charset used to encode text in the text part.
Definition: plainTextPart.cpp:94
const std::vector< shared_ptr< const mailbox > > getMailboxList() const
Return the mailbox list.
Definition: mailboxGroup.cpp:344
b64Encoder()
Definition: b64Encoder.cpp:33
@ TYPE_BOOLEAN
Definition: serviceInfos.hpp:121
File list iterator (see file::getFiles).
Definition: file.hpp:47
static const property SERVER_ROOTPATH
The common property 'server.rootpath' which is the full path of the folder on the server (for maildir...
Definition: serviceInfos.hpp:83
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:237
void setFilename(const word &filename)
Set the value of the "filename" parameter.
Definition: contentDispositionField.cpp:129
const char *const US_ASCII
Definition: constants.cpp:140
serviceInfos()
Definition: serviceInfos.cpp:70
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:153
const char *const IDNA
Definition: constants.cpp:157
@ SEP
Definition: dateTime.hpp:151
const std::vector< shared_ptr< const registeredService > > getServiceList() const
Return a list of all registered services.
Definition: serviceFactory.cpp:125
virtual ~folderListener()
Definition: events.hpp:256
T const * cbegin(T const (&array)[N])
Definition: base.hpp:81
void copyFrom(const component &other)
Replace data in this component by data in other component.
Definition: charset.cpp:186
textPartFactory()
Definition: textPartFactory.cpp:36
@ max
Definition: base.hpp:163
const char *const CP_866
Definition: constants.cpp:127
@ IMPORTANCE_NORMAL
Definition: importanceHelper.hpp:51
const std::vector< string > getAvailableProperties() const
Return a list of property names that can be set for this encoder.
Definition: qpEncoder.cpp:38
Definition: exception.hpp:173
void update(const byte_t b)
Updates the digest using the specified byte.
Definition: sha1MessageDigest.cpp:86
byte_t m_buffer[64]
Definition: sha1MessageDigest.hpp:66
void insertMailboxAfter(shared_ptr< mailbox > afterMailbox, shared_ptr< mailbox > mbox)
Insert a new mailbox after the specified mailbox.
Definition: mailboxGroup.cpp:276
transport(shared_ptr< session > sess, const serviceInfos &infos, shared_ptr< security::authenticator > auth)
Definition: transport.cpp:46
MapType m_map
Definition: textPartFactory.hpp:46
Must call fetchMessage() or fetchHeader() before accessing the requested object.
Definition: exception.hpp:580
const string & getPassword() const
Return the password specified in the URL or empty if not specified.
Definition: url.cpp:346
void setZone(const int zone)
Definition: dateTime.cpp:807
virtual ~textPart()
Definition: textPart.hpp:50
~operation_cancelled()
Definition: exception.cpp:483
size_t getMessageIdCount() const
Return the number of message-ides in the list.
Definition: messageIdSequence.cpp:206
A MIME message.
Definition: message.hpp:39
Type
Possible service types.
Definition: service.hpp:70
authentication_exception(const string &what, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:665
virtual const string getPropertyPrefix() const =0
Return the property prefix used by this service.
void parseImpl(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: emailAddress.cpp:167
~message_not_found()
Definition: exception.cpp:447
void removeAllAddresses()
Remove all addresses from the list.
Definition: addressList.cpp:213
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: body.cpp:416
Holds information about a conversion.
Definition: charsetConverter.hpp:73
static const string toString(const TYPE &value)
Convert the specified value to a string value.
Definition: stringUtils.hpp:173
Listener for events about the message count in a folder.
Definition: events.hpp:118
Capabilities
Store capabilities.
Definition: store.hpp:84
void setParsedBounds(const size_t start, const size_t end)
Definition: component.cpp:224
bool operator==(const path &p) const
Definition: utility/path.cpp:126
void registerService(shared_ptr< registeredService > reg)
Register a new service by its protocol name.
Definition: serviceFactory.cpp:139
const char *const REPORTING_UA
Definition: constants.cpp:201
An interface to implement if you want to be notified of a state of progress by some objects.
Definition: progressListener.hpp:40
static bool isLeapYear(const int year)
Test whether the specified year is a leap year.
Definition: datetimeUtils.cpp:209
Miscellaneous functions related to URLs.
Definition: urlUtils.hpp:39
bool isEmpty() const
Returns whether this email address is empty.
Definition: emailAddress.cpp:654
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:201
void parseImpl(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: addressList.cpp:54
void removeAllWords()
Remove all words from the list.
Definition: text.cpp:184
static TYPE valueFromString(const string &value)
Definition: propertySet.hpp:363
bool isEmpty() const
Returns whether this set is empty (contains no range).
Definition: messageSet.cpp:366
bool operator<(const datetime &other) const
Definition: dateTime.cpp:838
virtual ~messageChangedListener()
Definition: events.hpp:191
Folder name is invalid.
Definition: exception.hpp:723
static shared_ptr< messageId > parseNext(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition)
Parse a message-id from an input buffer.
Definition: messageId.cpp:150
size_t count(T const (&)[N])
Definition: base.hpp:105
string::const_iterator it_end() const
Definition: stringProxy.hpp:73
shared_ptr< contentHandler > clone() const
Return a copy of this object.
Definition: emptyContentHandler.cpp:36
Base class for messaging services.
Definition: service.hpp:59
void parseImpl(const parsingContext &ctx, shared_ptr< utility::parserInputStreamAdapter > parser, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: body.cpp:131
stringProxy & operator=(const stringProxy &s)
Definition: stringProxy.cpp:74
The server returned an invalid response.
Definition: exception.hpp:674
utility::path path
Definition: file.hpp:101
A mailbox: full name + email (basic type).
Definition: mailbox.hpp:40
bool hasModifier(const string &modifier) const
Test whether a disposition modifier is set.
Definition: disposition.cpp:153
size_t encode(utility::inputStream &in, utility::outputStream &out, utility::progressListener *progress=NULL)
Encode data.
Definition: uuEncoder.cpp:67
const std::vector< string > getSupportedAlgorithms() const
Return a list of supported digest algorithms.
Definition: messageDigestFactory.cpp:67
const char *const RECEIVED
Definition: constants.cpp:164
static const std::vector< shared_ptr< const attachment > > findAttachmentsInMessage(shared_ptr< const message > msg, const unsigned int options=0)
Find all attachments contained in the specified message.
Definition: attachmentHelper.cpp:162
int char_t
Definition: types.hpp:96
size_t length() const
Definition: stringProxy.cpp:117
void insertMailboxBefore(shared_ptr< mailbox > beforeMailbox, shared_ptr< mailbox > mbox)
Insert a new mailbox before the specified mailbox.
Definition: mailboxGroup.cpp:255
const std::vector< string > getModifierList() const
Return the list of modifiers.
Definition: disposition.cpp:168
const addressList & getCopyRecipients() const
Return the copy recipients of the message (Cc:).
Definition: messageParser.cpp:252
void setSocketFactory(shared_ptr< socketFactory > sf)
Set the factory used to create socket objects for this service.
Definition: service.cpp:127
sevenBitEncoder()
Definition: sevenBitEncoder.cpp:32
bool isGroup() const
Test whether this is object is a mailboxGroup.
Definition: mailboxGroup.cpp:237
void extractRaw(utility::outputStream &os, utility::progressListener *progress=NULL) const
Extract the contents into the specified stream, without decoding it.
Definition: emptyContentHandler.cpp:62
mailboxList & operator=(const mailboxList &other)
Definition: mailboxList.cpp:166
void notifyFolder(shared_ptr< events::folderEvent > event)
Definition: folder.cpp:107
const char *const WINDOWS_1250
Definition: constants.cpp:147
Date and time (basic type).
Definition: dateTime.hpp:41
const TYPE getPropertyValue(shared_ptr< session > s, const property &p) const
Helper function to retrieve the value of a property.
Definition: serviceInfos.hpp:224
static unsigned int getTime()
Return the current time as a number (may be used to build "random" strings).
Definition: random.cpp:57
Definition: exception.hpp:95
port_t getPort() const
Return the port to which the service is connected.
Definition: defaultConnectionInfos.cpp:49
store(shared_ptr< session > sess, const serviceInfos &infos, shared_ptr< security::authenticator > auth)
Definition: store.hpp:50
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: contentDisposition.cpp:65
A class that encapsulates an encoded-word (RFC-2047): some text encoded into one specified charset.
Definition: word.hpp:41
virtual ~fileIterator()
Definition: file.hpp:51
const char *const DISPOSITION_NOTIFICATION_OPTIONS
Definition: constants.cpp:194
void parse(shared_ptr< const bodyPart > message, shared_ptr< const bodyPart > parent, shared_ptr< const bodyPart > textPart)
Parse the text part(s) from the specified message.
Definition: htmlTextPart.cpp:185
shared_ptr< messageDigest > create(const string &name)
Create a new algorithm instance from its name.
Definition: messageDigestFactory.cpp:55
exception * clone() const
Clone this object.
Definition: exception.cpp:363
int getSecond() const
Definition: dateTime.cpp:796
@ convenient
Definition: base.hpp:164
const mediaType getContentTypeHint() const
Returns a hint about the kind of data managed by this object.
Definition: stringContentHandler.cpp:230
Represents a set of messages, designated either by their sequence number, or by their UID (but not bo...
Definition: messageSet.hpp:215
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:440
size_t encode(utility::inputStream &in, utility::outputStream &out, utility::progressListener *progress=NULL)
Encode data.
Definition: qpEncoder.cpp:165
void copyFrom(const component &other)
Replace data in this component by data in other component.
Definition: addressList.cpp:104
charset_conv_error(const string &what="", const exception &other=NO_EXCEPTION)
Definition: exception.cpp:111
exception * clone() const
Clone this object.
Definition: exception.cpp:324
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:128
size_t getDecodedSize(const size_t n) const
Return the encoded size for the specified input (encoded) size.
Definition: qpEncoder.cpp:552
const char *const ISO8859_15
Definition: constants.cpp:109
charset()
Definition: charset.cpp:39
vmime::word component
Definition: utility/path.hpp:45
@ STATUS_WOULDBLOCK
The operation would block.
Definition: socket.hpp:53
shared_ptr< utility::charsetFilteredOutputStream > getFilteredOutputStream(utility::outputStream &os, const charsetConverterOptions &opts=charsetConverterOptions())
Returns a filtered output stream which applies a charset conversion to input bytes.
Definition: charsetConverter_idna.cpp:191
message()
Definition: net/message.hpp:171
const propertySet & getProperties() const
Return the properties of the encoder.
Definition: encoder.cpp:43
static void setImportance(shared_ptr< message > msg, const Importance i)
Set the importance of the specified message.
Definition: importanceHelper.cpp:116
Definition: contentTypeField.hpp:38
Options for charset conversion.
Definition: charsetConverterOptions.hpp:38
Folder not found (does not exist).
Definition: exception.hpp:489
void setEncoding(const encoding &enc)
Set the output encoding of contents.
Definition: body.cpp:728
contentTypeField()
Definition: contentTypeField.cpp:32
attachment()
Definition: attachment.hpp:52
static messageId generateId()
Generate a random message identifier.
Definition: messageId.cpp:218
void removeModifier(const string &modifier)
Remove the specified disposition modifier.
Definition: disposition.cpp:131
outputStreamAdapter(std::ostream &os)
Definition: outputStreamAdapter.cpp:31
const string getSize() const
Return the value of the "size" parameter.
Definition: contentDispositionField.cpp:141
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:583
void constructTextPart(const mediaType &type)
Change the type of the text part and construct a new part.
Definition: messageBuilder.cpp:182
bool hasFilename() const
Check whether the 'filename' property is present.
Definition: fileAttachment.cpp:197
const string libversion()
Return the library version (eg: "0.5.2").
Definition: base.cpp:78
This abstract class is the base class for all the components of a message.
Definition: component.hpp:45
addressList()
Definition: addressList.cpp:35
bool isEmpty() const
Check whether this address is empty (no mailboxes specified if this is a mailboxGroup -or- no email s...
Definition: mailbox.cpp:461
mailboxGroup()
Definition: mailboxGroup.cpp:33
bool isEmpty() const
Tests whether the list of addresses is empty.
Definition: addressList.cpp:225
A content handler which obtains its data from a file.
Definition: fileContentHandler.hpp:45
~stringContentHandler()
Definition: stringContentHandler.cpp:66
size_t getCount() const
Return the number of certificates in the chain.
Definition: certificateChain.cpp:38
shared_ptr< message > construct() const
Construct a new message based on the information specified in this object.
Definition: messageBuilder.cpp:46
~not_a_directory()
Definition: exception.cpp:637
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:642
const word & getLocalName() const
Return the local name of the address.
Definition: emailAddress.cpp:624
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:696
messageBuilder()
Definition: messageBuilder.cpp:34
bool hasModificationDate() const
Check whether the 'modification-date' property is present.
Definition: fileAttachment.cpp:206
@ APR
Definition: dateTime.hpp:147
exception * clone() const
Clone this object.
Definition: exception.cpp:101
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:512
virtual size_t getBlockSize() const =0
Return the preferred maximum block size when reading from or writing to this stream.
A MIME part.
Definition: bodyPart.hpp:42
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:189
void chainException(const exception &other)
Chain the specified exception with this exception.
Definition: exception.cpp:61
Definition: sha1MessageDigest.hpp:37
exception * clone() const
Clone this object.
Definition: exception.cpp:695
EncodedParameterValueModes getEncodedParameterValueMode() const
Returns the mode used for generating parameter values in a parameterized header field (see parameteri...
Definition: generationContext.cpp:113
@ QUOTE_IF_POSSIBLE
Use quoting instead of encoding when possible (even if FORCE_ENCODING is specified).
Definition: text.hpp:199
bool hasUserFlag(const string &flag)
Return whether the specified user-defined flag is set.
Definition: folderAttributes.cpp:111
size_t decode(utility::inputStream &in, utility::outputStream &out, utility::progressListener *progress=NULL)
Decode data.
Definition: b64Encoder.cpp:194
File not found.
Definition: exception.hpp:784
const message::uid getLast() const
Returns the UID of the last message in the range, or '*' to designate the last message in the folder.
Definition: messageSet.cpp:129
const component getLastComponent() const
Return the last component of this path (const version).
Definition: utility/path.cpp:161
size_t getMailboxCount() const
Return the number of mailboxes in the list.
Definition: mailboxList.cpp:92
virtual void enumerateUIDMessageRange(const UIDMessageRange &range)=0
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:351
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: word.cpp:867
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:669
~authentication_error()
Definition: exception.cpp:385
Information about the connection used by a service.
Definition: connectionInfos.hpp:43
const string getNextChunk(const size_t maxLength)
Return the next chunk in the word.
Definition: wordEncoder.cpp:115
Switches between contexts temporarily.
Definition: context.hpp:77
void notifyMessageCount(shared_ptr< events::messageCountEvent > event)
Definition: folder.cpp:85
Server did not initiated the connection correctly.
Definition: exception.hpp:415
~no_such_part()
Definition: exception.cpp:172
messagePart(const messagePart &)
Definition: net/message.hpp:58
exception * clone() const
Clone this object.
Definition: exception.cpp:188
const char *const DISPOSITION
Definition: constants.cpp:195
const shared_ptr< const contentHandler > getData() const
Return the data contained in this attachment.
Definition: defaultAttachment.cpp:122
Definition: textPartFactory.hpp:36
word m_name
Name/filename (eg.
Definition: defaultAttachment.hpp:72
#define R3(v, w, x, y, z, i)
Definition: sha1MessageDigest.cpp:57
void appendMailbox(shared_ptr< mailbox > mbox)
Add a mailbox at the end of the list.
Definition: mailboxList.cpp:44
@ FEB
Definition: dateTime.hpp:145
void copyFrom(const context &ctx)
Definition: context.cpp:80
const string getHost() const
Return the host to which the service is connected.
Definition: defaultConnectionInfos.cpp:43
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:562
void extract(utility::outputStream &os, utility::progressListener *progress=NULL) const
Extract the contents into the specified stream.
Definition: stringContentHandler.cpp:166
virtual ~noncopyable()
Definition: base.hpp:244
virtual messageRange * clone() const =0
Clones this message range.
const string getLanguage() const
Return the language used in this word (optional).
Definition: word.cpp:831
size_t getDecodedSize(const size_t n) const
Return the encoded size for the specified input (encoded) size.
Definition: b64Encoder.cpp:324
const shared_ptr< const textPart > getTextPartAt(const size_t pos) const
Return the text part at the specified position.
Definition: messageParser.cpp:316
folder_already_open(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:436
Provides required information for user authentication.
Definition: authenticator.hpp:63
static bool isSpace(const char_t c)
Definition: parserHelpers.hpp:43
exception * clone() const
Clone this object.
Definition: exception.cpp:451
void removeMessageChangedListener(events::messageChangedListener *l)
Definition: folder.cpp:57
no_such_property(const string &name, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:257
const char *const ISO8859_10
Definition: constants.cpp:106
const string & getProtocol() const
Return the protocol of the URL (eg: "http").
Definition: url.cpp:322
Spawn a process and redirect its standard input and/or standard output.
Definition: childProcess.hpp:42
~socket_exception()
Definition: exception.cpp:332
defaultAttachment & operator=(const defaultAttachment &attach)
Definition: defaultAttachment.cpp:68
const disposition getDisposition() const
Return information about the disposition.
Definition: receivedMDNInfos.cpp:66
Deals with setting and retrieving message importance (also known as priority).
Definition: importanceHelper.hpp:42
const vmime::encoding & getEncoding() const
Returns the encoding used for data (or "binary" if not encoded).
Definition: streamContentHandler.cpp:206
void removeAllMailboxes()
Remove all mailboxes from the list.
Definition: mailboxList.cpp:86
const char *const WINDOWS_1258
Definition: constants.cpp:155
void setCertificateVerifier(shared_ptr< security::cert::certificateVerifier > cv)
Set the object responsible for verifying certificates when using secured connections (TLS/SSL).
Definition: service.cpp:113
PrivateConstants
Definition: folder.hpp:70
Text part of type 'text/html'.
Definition: htmlTextPart.hpp:42
void setInternationalizedEmailSupport(const bool support)
Enables or disables support for Internationalized Email Headers (RFC-6532).
Definition: context.cpp:55
const addressList & getRecipients() const
Return the recipients of the message (To:).
Definition: messageParser.cpp:246
void setSubject(const text &subject)
Set the subject of the message.
Definition: messageBuilder.cpp:277
virtual void flush()=0
Flush this output stream and forces any buffered output bytes to be written out to the stream.
void setLocalPart(const string &localPart)
Set the local part of the address.
Definition: path.cpp:55
invalid_folder_name(const string &error="", const exception &other=NO_EXCEPTION)
Definition: exception.cpp:603
const propertySet & getProperties() const
Properties for the session and for the services.
Definition: session.cpp:145
void setFrom(const string &from)
Definition: relay.cpp:271
bool operator==(const path &p) const
Definition: path.cpp:73
object & operator=(const object &)
Definition: object.cpp:42
shared_ptr< certificate > getAt(const size_t index)
Return the certificate at the specified position.
Definition: certificateChain.cpp:44
messageStructure()
Definition: net/message.hpp:133
void flush()
Flush this output stream and forces any buffered output bytes to be written out to the stream.
Definition: filteredStream.cpp:366
Content encoding (basic type).
Definition: encoding.hpp:44
@ FLAG_MODE_SET
Set (replace) the flags.
Definition: net/message.hpp:273
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:416
static const TYPE fromString(const string &value)
Convert the specified string value to a value of the specified type.
Definition: stringUtils.hpp:190
static shared_ptr< address > parseNext(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition, bool *isLastAddressOfGroup)
Parse an address from an input buffer.
Definition: address.cpp:70
no_such_message_id(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:185
size_t getParsedOffset() const
Return the start position of this component in the parsed message contents.
Definition: component.cpp:212
Critical section wrapper class.
Definition: autoLock.hpp:40
Miscellaneous functions related to date/time.
Definition: datetimeUtils.hpp:38
const string & getId() const
Definition: relay.cpp:301
const shared_ptr< const registeredEncoder > getEncoderByName(const string &name) const
Return information about a registered encoder.
Definition: encoderFactory.cpp:78
Types
Definition: events.hpp:209
bool operator<=(const datetime &other) const
Definition: dateTime.cpp:852
static const property SERVER_ADDRESS
The common property 'server.address' which is the host name or the IP address of the server.
Definition: serviceInfos.hpp:74
virtual ~timeoutHandler()
Definition: timeoutHandler.hpp:50
~invalid_folder_name()
Definition: exception.cpp:602
Attachment of type message/rfc822.
Definition: messageAttachment.hpp:39
const string & getEpilogText() const
Return the epilog text.
Definition: body.cpp:824
void setContentTypeHint(const mediaType &type)
Gives a hint about the kind of data managed by this object.
Definition: emptyContentHandler.cpp:105
virtual ~socket()
Definition: socket.hpp:59
void generateIn(shared_ptr< bodyPart > message, shared_ptr< bodyPart > parent) const
Generate the text part(s) into the specified message.
Definition: plainTextPart.cpp:60
virtual const std::vector< string > getAvailableProperties() const
Return a list of property names that can be set for this encoder.
Definition: encoder.cpp:67
emailAddress & operator=(const emailAddress &other)
Definition: emailAddress.cpp:611
const string getAnonymousToken() const
Return the anonymous token (usually, this is the user's email address).
Definition: defaultAuthenticator.cpp:99
static bool isStringEqualNoCase(const string &s1, const char *s2, const size_t n)
Test two strings for equality (case insensitive).
Definition: stringUtils.cpp:33
void start(const size_t predictedTotal)
Called at the beginning of the operation.
Definition: progressListener.cpp:40
A MIME part in a message.
Definition: net/message.hpp:53
~folder_not_found()
Definition: exception.cpp:423
static shared_ptr< session > create()
Construct a new session.
Definition: session.cpp:68
bool hasReadDate() const
Test whether the "read-date" parameter is set.
Definition: contentDispositionField.cpp:89
const char *const SEVEN_BIT
Definition: constants.cpp:77
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: charset.cpp:192
T * begin(T(&array)[N])
Definition: base.hpp:93
property(const string &name, const string &value)
Definition: propertySet.cpp:254
virtual ~registeredService()
Definition: serviceFactory.hpp:79
void finalize()
Completes the hash computation by performing final operations such as padding.
Definition: sha1MessageDigest.cpp:135
Describes presentation information, as per RFC-2183.
Definition: contentDispositionField.hpp:42
Definition: propertySet.hpp:170
static const std::vector< sendableMDNInfos > getPossibleMDNs(const shared_ptr< const message > msg)
Return a list of possible MDNs that can be generated for the specified message.
Definition: MDNHelper.cpp:58
void setBy(const string &by)
Definition: relay.cpp:295
@ MODE_READ_ONLY
Read-only mode (no modification to folder or messages is possible).
Definition: folder.hpp:91
Manage a list of (name,value) pairs.
Definition: propertySet.hpp:46
Critical section class.
Definition: criticalSection.hpp:39
EncodedParameterValueModes
Modes available for generating values in parameterized header fields.
Definition: generationContext.hpp:106
static bool isDigit(const char_t c)
Definition: parserHelpers.hpp:53
void copyFrom(const component &other)
Replace data in this component by data in other component.
Definition: mailboxGroup.cpp:196
string::const_iterator it_begin() const
Definition: stringProxy.hpp:72
void parseWithState(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition, parserState *state)
Definition: word.cpp:268
address()
Definition: address.cpp:36
bool isBuffered() const
Indicates whether the extract() method can be called multiple times.
Definition: stringContentHandler.cpp:218
bool isEncoded() const
Returns 'true' if data managed by this object is encoded.
Definition: emptyContentHandler.cpp:87
7-bit encoder.
Definition: sevenBitEncoder.hpp:39
@ REFERENCED_BY_LOCATION
Referenced by Content-Location.
Definition: htmlTextPart.hpp:70
void copyFrom(const component &other)
Replace data in this component by data in other component.
Definition: contentDisposition.cpp:100
void removePart(shared_ptr< bodyPart > part)
Remove the specified part from the list.
Definition: body.cpp:978
void setEncodedParameterValueMode(const EncodedParameterValueModes mode)
Sets the mode used for generating parameter values in a parameterized header field (see parameterized...
Definition: generationContext.cpp:106
EncodingUsage getUsage() const
Return the type of contents this encoding is used for.
Definition: encoding.cpp:282
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: messageIdSequence.cpp:77
const char *const CP_863
Definition: constants.cpp:124
void setPassword(const string &password)
Set the password of the URL.
Definition: url.cpp:352
void setEpilogText(const string &epilogText)
Sets the epilog text used when generating MIME body parts.
Definition: generationContext.cpp:91
const emailAddress & getEmail() const
Return the email of the mailbox.
Definition: mailbox.cpp:492
EncodeAndFoldFlags
Flags used by "encodeAndFold" function.
Definition: text.hpp:191
void writeImpl(const byte_t *const data, const size_t count)
Write data to the stream.
Definition: filteredStream.cpp:152
void removeMessageCountListener(events::messageCountListener *l)
Definition: folder.cpp:79
void detach()
Definition: stringProxy.cpp:67
const size_t npos
Constant value with the greatest possible value for an element of type size_t.
Definition: base.cpp:117
const string & getDomain() const
Return the domain of the address.
Definition: path.cpp:61
shared_ptr< component > clone() const
Clone this component.
Definition: dateTime.cpp:779
const string libname()
Return the library name (eg: "libvmime").
Definition: base.cpp:72
bool operator==(const word &w) const
Definition: word.cpp:773
void attach(shared_ptr< attachment > attach)
Attach a new object to the message.
Definition: messageBuilder.cpp:170
virtual void folderRenamed(shared_ptr< folderEvent > event)=0
~messageSet()
Definition: messageSet.cpp:165
const std::vector< shared_ptr< const address > > getAddressList() const
Return the address list.
Definition: addressList.cpp:243
const mediaType getType() const
Return the type of text part (eg: "text/html").
Definition: plainTextPart.cpp:48
uuEncoder()
Definition: uuEncoder.cpp:33
Types
Value types.
Definition: serviceInfos.hpp:117
int getType() const
Return the type of the folder.
Definition: folderAttributes.cpp:57
const addressList & getCopyRecipients() const
Return the copy recipients of the message (Cc:).
Definition: messageBuilder.cpp:235
shared_ptr< textPart > create(const mediaType &type)
Definition: textPartFactory.cpp:56
switcher(CTX_CLASS &newCtx)
Switches to the specified context.
Definition: context.hpp:87
bool has(const int attribs) const
Returns true if the set contains the specified attribute(s).
Definition: fetchAttributes.cpp:73
const text & getSubject() const
Return the subject of the message.
Definition: messageBuilder.cpp:271
void parseImpl(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: encoding.cpp:65
void setData(shared_ptr< utility::inputStream > is, const size_t length, const vmime::encoding &enc=NO_ENCODING)
Sets the data managed by this content handler.
Definition: streamContentHandler.cpp:79
exception * clone() const
Clone this object.
Definition: exception.cpp:272
Operation not supported by the underlying protocol.
Definition: exception.hpp:534
virtual ~exception()
Definition: exception.cpp:55
shared_ptr< component > clone() const
Clone this component.
Definition: emailAddress.cpp:618
void addMessageCountListener(events::messageCountListener *l)
Definition: folder.cpp:73
void setVia(const string &via)
Definition: relay.cpp:283
Holds configuration parameters used for generating messages.
Definition: generationContext.hpp:38
const shared_ptr< const header > getHeader() const
Return the header section of this part.
Definition: bodyPart.cpp:108
Text part of type 'text/plain'.
Definition: plainTextPart.hpp:38
bool operator!=(const path &p) const
Definition: utility/path.cpp:143
~messageBuilder()
Definition: messageBuilder.cpp:41
void setDomain(const string &domain)
Set the domain of the address.
Definition: path.cpp:67
const char *const CP_853
Definition: constants.cpp:117
bool operator!=(const class emailAddress &eml) const
Definition: emailAddress.cpp:596
~no_digest_algorithm_available()
Definition: exception.cpp:148
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:476
void write(const byte_t *const data, const size_t count)
Write data to the stream.
Definition: outputStream.cpp:31
event()
Definition: events.cpp:45
Definition: exception.hpp:197
const char *const CP_1125
Definition: constants.cpp:130
void setTime(const int hour=0, const int minute=0, const int second=0, const int zone=GMT)
Definition: dateTime.cpp:755
An email address: local name and domain name (basic type).
Definition: emailAddress.hpp:39
Miscellaneous functions related to strings.
Definition: stringUtils.hpp:41
void setType(const string &type)
Set the disposition type.
Definition: disposition.cpp:112
const char *const ISO8859_9
Definition: constants.cpp:105
const string & getName() const
Return the ISO name of the charset.
Definition: charset.cpp:180
static bool isMDN(const shared_ptr< const message > msg)
Test whether the specified message is a MDN.
Definition: MDNHelper.cpp:77
defaultAttachment()
Definition: defaultAttachment.cpp:35
const VMIME_EXPORT char *const DENIED
Message has been denied.
size_t getTextPartCount() const
Return the number of text parts in the message.
Definition: messageParser.cpp:310
@ ENCODING_B64
Definition: wordEncoder.hpp:56
Message identifier (basic type).
Definition: messageId.hpp:39
Event occurring on folders or messages.
Definition: events.hpp:50
const char *const ORIGINAL_RECIPIENT
Definition: constants.cpp:199
shared_ptr< component > clone() const
Clone this word.
Definition: word.cpp:813
static void convert(const string &in, string &out, const charset &source, const charset &dest, const charsetConverterOptions &opts=charsetConverterOptions())
Convert a string buffer from one charset to another charset (in-memory conversion)
Definition: charset.cpp:98
shared_ptr< store > getStore(shared_ptr< security::authenticator > auth=null)
Return a transport service instance for the protocol specified in the session properties.
Definition: session.cpp:113
size_t getMaxLineLength() const
Returns the current maximum line length used when generating messages.
Definition: generationContext.cpp:60
void setPlainText(shared_ptr< contentHandler > plainText)
Definition: htmlTextPart.cpp:351
const shared_ptr< const attachment > getAttachmentAt(const size_t pos) const
Return the attachment at the specified position.
Definition: messageBuilder.cpp:289
Flags
Possible flags for a message.
Definition: net/message.hpp:258
Base class for exceptions thrown by TLS module.
Definition: exception.hpp:871
Information about a registered encoder.
Definition: encoderFactory.hpp:52
T * end(T(&array)[N])
Definition: base.hpp:99
messageIdSequence & operator=(const messageIdSequence &other)
Definition: messageIdSequence.cpp:70
folder()
Definition: folder.hpp:67
virtual const string generate(const size_t maxLineLength=lineLengthLimits::infinite, const size_t curLinePos=0) const
Generate RFC-2822/MIME data for this component.
Definition: component.cpp:182
~streamContentHandler()
Definition: streamContentHandler.cpp:49
const char *const CP_1255
Definition: constants.cpp:136
A progress listener used when total size is known by the receiver, but not by the notifier.
Definition: progressListener.hpp:75
void setUserFlags(const std::vector< string > &flags)
Set the user-defined flags of the folder.
Definition: folderAttributes.cpp:105
void setLocalName(const word &localName)
Set the local name of the address.
Definition: emailAddress.cpp:630
A class to create 'timeoutHandler' objects.
Definition: timeoutHandler.hpp:75
~connection_greeting_error()
Definition: exception.cpp:371
const size_t infinite
Definition: base.cpp:113
void appendMailbox(shared_ptr< mailbox > mbox)
Add a mailbox at the end of the list.
Definition: mailboxGroup.cpp:249
wordEncoder(const string &buffer, const charset &charset, const Encoding encoding=ENCODING_AUTO)
Definition: wordEncoder.cpp:44
virtual ~registeredEncoder()
Definition: encoderFactory.hpp:56
void setFilename(const string &name)
Set the value of the 'filename' property.
Definition: fileAttachment.cpp:199
8-bit encoder.
Definition: eightBitEncoder.hpp:39
Event occuring on a folder.
Definition: events.hpp:202
const char *const REPLY_TO
Definition: constants.cpp:167
static const string decode(const string &s)
Decode an hex-encoded URL (see encode()).
Definition: urlUtils.cpp:69
connection_greeting_error(const string &response, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:372
socket_exception(const string &what="", const exception &other=NO_EXCEPTION)
Definition: exception.cpp:333
The operation timed out (time-out delay is elapsed).
Definition: exception.hpp:549
shared_ptr< folder > getFolder() const
Return the folder on which the event occurred.
Definition: events.cpp:139
size_t getLength() const
Returns the actual length of data.
Definition: streamContentHandler.cpp:188
encoding & operator=(const encoding &other)
Definition: encoding.cpp:108
const string getConvertedText(const charset &dest, const charsetConverterOptions &opts=charsetConverterOptions()) const
Return the text converted into the specified charset.
Definition: text.cpp:147
stringProxy()
Definition: stringProxy.cpp:36
exception * clone() const
Clone this object.
Definition: exception.cpp:499
virtual ~messageRange()
Definition: messageSet.cpp:48
void setType(const int type)
Set the type of the folder.
Definition: folderAttributes.cpp:63
void parseImpl(const parsingContext &ctx, shared_ptr< utility::parserInputStreamAdapter > parser, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: bodyPart.cpp:41
static messageSet empty()
Constructs an empty set.
Definition: messageSet.cpp:173
Definition: parserHelpers.hpp:39
void notifyEvent(shared_ptr< events::event > event)
Definition: folder.cpp:117
const char *const MANUAL
User explicitely displayed or deleted the message (manual action).
Definition: constants.cpp:209
Underlying operating system error.
Definition: exception.hpp:311
const char *const QUOTED_PRINTABLE
Definition: constants.cpp:80
shared_ptr< service > create(shared_ptr< session > sess, const string &protocol, shared_ptr< security::authenticator > auth=null)
Create a new service instance from a protocol name.
Definition: serviceFactory.cpp:60
size_t getLength() const
Returns the actual length of data.
Definition: stringContentHandler.cpp:194
int getZone() const
Definition: dateTime.cpp:797
static shared_ptr< encoderFactory > getInstance()
Definition: encoderFactory.cpp:65
virtual const folderAttributes getAttributes()=0
Return the attributes of the folder.
size_t decode(utility::inputStream &in, utility::outputStream &out, utility::progressListener *progress=NULL)
Decode data.
Definition: uuEncoder.cpp:145
exception * clone() const
Clone this object.
Definition: exception.cpp:668
size_t getObjectCount() const
Return the number of embedded objects.
Definition: htmlTextPart.cpp:369
void setText(shared_ptr< contentHandler > text)
Set the text contained in the part.
Definition: htmlTextPart.cpp:363
const string SUPPORTED_MIME_VERSION
The current MIME version supported by VMime.
Definition: base.cpp:98
TYPE getValue() const
Get the value of the property as a generic type.
Definition: propertySet.hpp:106
context()
Definition: context.cpp:31
void setModificationDate(const datetime &modificationDate)
Set the value of the "modification-date" parameter.
Definition: contentDispositionField.cpp:83
const TYPE getValue() const
Definition: propertySet.hpp:193
Listener for events occuring on a folder.
Definition: events.hpp:252
messageChangedEvent(shared_ptr< folder > folder, const Types type, const std::vector< size_t > &nums)
Definition: events.cpp:99
Base class for VMime exceptions.
Definition: exception.hpp:42
const string getId() const
Returns the identifier of this embedded object (either a unique ID or a location).
Definition: htmlTextPart.cpp:462
const char *const CONTENT_DISPOSITION
Definition: constants.cpp:182
void setValue(const string &value)
Set the value of the property as a string.
Definition: propertySet.cpp:287
message_not_found(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:448
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:488
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: bodyPart.cpp:178
static shared_ptr< message > buildMDN(const sendableMDNInfos &mdnInfos, const string &text, const charset &ch, const mailbox &expeditor, const disposition &dispo, const string &reportingUA=NULL_STRING, const std::vector< string > &reportingUAProducts=std::vector< string >(), const std::map< string, string > &fields=(std::map< string, string >()))
Build a new MDN for the message.
Definition: MDNHelper.cpp:146
SpecialUses
Folder special uses.
Definition: folderAttributes.hpp:69
receivedMDNInfos(const shared_ptr< const message > msg)
Definition: receivedMDNInfos.cpp:33
void resetTimeOut()
Called to reset the timeout counter.
Definition: defaultTimeoutHandler.cpp:54
shared_ptr< const registeredService > getServiceAt(const size_t pos) const
Return the registered service at the specified position.
Definition: serviceFactory.cpp:119
exception * clone() const
Clone this object.
Definition: exception.cpp:539
const char * getClass() const
Definition: events.cpp:85
~no_expeditor()
Definition: exception.cpp:232
void setHeader(shared_ptr< header > header)
Replaces the header section of this part.
Definition: bodyPart.cpp:120
static textPartFactory * getInstance()
Definition: textPartFactory.cpp:49
const char *const CONTENT_TYPE
Definition: constants.cpp:179
virtual const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:76
void copyFrom(const component &other)
Replace data in this component by data in other component.
Definition: relay.cpp:235
const datetime & getDate() const
Return the date of the message.
Definition: messageParser.cpp:270
Charset description (basic type).
Definition: charset.hpp:45
const TYPE getProperty(const string &name) const
Get the value of the specified property.
Definition: propertySet.hpp:277
no_expeditor(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:233
@ TYPE_TRANSPORT
The service sends messages.
Definition: service.hpp:73
@ ENCODING_AUTO
Definition: wordEncoder.hpp:54
void setText(shared_ptr< contentHandler > text)
Set the text contained in the part.
Definition: plainTextPart.cpp:106
streamContentHandler & operator=(const streamContentHandler &cts)
Definition: streamContentHandler.cpp:67
Flags
Folder flags.
Definition: folderAttributes.hpp:59
static string valueToString(const TYPE &value)
Definition: propertySet.hpp:376
const char *const WINDOWS_1251
Definition: constants.cpp:148
bool operator==(const uid &other) const
Definition: net/message.cpp:132
const char *const MESSAGE_ID
Definition: constants.cpp:178
const charset & getCharset() const
Return the charset used to encode text in the text part.
Definition: plainTextPart.cpp:88
size_t getGeneratedSize(const generationContext &ctx)
Get the number of bytes that will be used by this component when it is generated.
Definition: bodyPart.cpp:73
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:261
Definition: exception.hpp:119
string invalidSequence
Replace invalid sequences with this string.
Definition: charsetConverterOptions.hpp:54
TimeZones
Definition: dateTime.hpp:57
~messageIdSequence()
Definition: messageIdSequence.cpp:40
exception * clone() const
Clone this object.
Definition: exception.cpp:653
not_a_directory(const utility::path &path, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:638
disposition & operator=(const disposition &other)
Definition: disposition.cpp:75
void addRange(const messageRange &range)
Adds the specified range to this set.
Definition: messageSet.cpp:350
exception * clone() const
Clone this object.
Definition: exception.cpp:350
Holds the status of a mail store folder.
Definition: folderStatus.hpp:44
void removeAllModifiers()
Remove all disposition modifiers.
Definition: disposition.cpp:147
#define R2(v, w, x, y, z, i)
Definition: sha1MessageDigest.cpp:56
void init()
Definition: sha1MessageDigest.cpp:73
The service is not currently connected.
Definition: exception.hpp:595
static const string toUpper(const string &str)
Transform all the characters in a string to upper-case.
Definition: stringUtils.cpp:106
#define R4(v, w, x, y, z, i)
Definition: sha1MessageDigest.cpp:58
const mediaType getContentTypeHint() const
Returns a hint about the kind of data managed by this object.
Definition: streamContentHandler.cpp:228
void setSecond(const int second)
Definition: dateTime.cpp:806
~defaultTimeoutHandler()
Definition: defaultTimeoutHandler.cpp:43
bool operator==(const class mailbox &mailbox) const
Definition: mailbox.cpp:427
bool getWrapMessageId() const
Returns a boolean variable that indicates whether the message id can be wrapped or not,...
Definition: generationContext.cpp:96
@ JAN
Definition: dateTime.hpp:144
static size_t countASCIIchars(const string::const_iterator begin, const string::const_iterator end)
Return the number of 7-bit US-ASCII characters in a string.
Definition: stringUtils.cpp:137
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: encoding.cpp:85
void writeImpl(const byte_t *const data, const size_t count)
Write data to the stream.
Definition: outputStreamSocketAdapter.cpp:44
exception * clone() const
Clone this object.
Definition: exception.cpp:176
void setDate(const int year, const int month, const int day)
Definition: dateTime.cpp:765
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: text.cpp:90
@ IMPORTANCE_HIGH
Definition: importanceHelper.hpp:50
static Importance getImportance(shared_ptr< const message > msg)
Return the importance of the specified message.
Definition: importanceHelper.cpp:52
net_exception messaging_exception
Alias for 'net_exception' (compatibility with version <= 0.7.1); this is deprecated.
Definition: exception.hpp:360
shared_ptr< headerField > processHeaderField(shared_ptr< headerField > field)
Called by processHeader().
Definition: transport.cpp:52
sha1MessageDigest()
Definition: sha1MessageDigest.cpp:61
static parsingContext & getDefaultContext()
Returns the default context used for parsing messages.
Definition: parsingContext.cpp:42
size_t bufferedStreamCopy(inputStream &is, outputStream &os)
Copy data from one stream into another stream using a buffered method.
Definition: streamUtils.cpp:49
Default implementation for attachments.
Definition: defaultAttachment.hpp:39
virtual void folderCreated(shared_ptr< folderEvent > event)=0
void flush()
Flush this output stream and forces any buffered output bytes to be written out to the stream.
Definition: outputStreamByteArrayAdapter.cpp:44
virtual ~fileWriter()
Definition: file.hpp:75
virtual void generatePart(shared_ptr< bodyPart > part) const
Definition: defaultAttachment.cpp:90
shared_ptr< X > constCast(const shared_ptr< Y > &obj)
Const cast helper.
Definition: base.hpp:231
const string & getName() const
Return the name of this parameter.
Definition: parameter.cpp:87
void flush()
Flush this output stream and forces any buffered output bytes to be written out to the stream.
Definition: filteredStream.cpp:287
@ ENCODING_QP
Definition: wordEncoder.hpp:55
size_t inputBytesRead
Number of bytes read from input buffer and successfully converted.
Definition: charsetConverter.hpp:80
Definition: parameter.hpp:37
void generate(utility::outputStream &os, const vmime::encoding &enc, const size_t maxLineLength=lineLengthLimits::infinite) const
Output the contents into the specified stream.
Definition: emptyContentHandler.cpp:42
noopEncoder()
Definition: noopEncoder.cpp:34
const datetime & getModificationDate() const
Return the value of the 'modification-date' property.
Definition: fileAttachment.cpp:207
List of encoded-words, as defined in RFC-2047 (basic type).
Definition: text.hpp:40
void setMaxLineLength(const size_t maxLineLength)
Sets the maximum line length used when generating messages.
Definition: generationContext.cpp:66
const char *const CP_852
Definition: constants.cpp:116
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:500
bool getRecommendedEncoding(encoding &enc) const
Gets the recommended encoding for this charset.
Definition: charset.cpp:229
const string CRLF
The CR-LF sequence.
Definition: base.cpp:93
Type getType() const
Return the type of service.
Definition: transport.cpp:225
static const property CONNECTION_TLS_REQUIRED
The common property 'connection.tls.required' should be set to 'true' to make the connection process ...
Definition: serviceInfos.hpp:110
text m_desc
Description (eg.
Definition: defaultAttachment.hpp:69
const datetime getModificationDate() const
Return the value of the "modification-date" parameter.
Definition: contentDispositionField.cpp:72
static shared_ptr< text > decodeAndUnfold(const string &in)
Decode and unfold text (RFC-2047), using the default parsing context.
Definition: text.cpp:371
Abstract class representing a mailbox or a group of mailboxes.
Definition: address.hpp:42
const char *const INLINE
Definition: constants.cpp:89
@ TYPE_DELETED
A folder was deleted.
Definition: events.hpp:212
const char *const ISO8859_2
Definition: constants.cpp:98
void dispatch(class messageCountListener *listener)
Dispatch the event to the specified listener.
Definition: events.cpp:76
static shared_ptr< serviceFactory > getInstance()
Definition: serviceFactory.cpp:52
const string & getName() const
Return the name of the property.
Definition: serviceInfos.cpp:141
void parseImpl(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: messageId.cpp:65
exception * clone() const
Clone this object.
Definition: exception.cpp:377
const std::vector< size_t > & getNumbers() const
Return the numbers of the messages that have changed.
Definition: events.cpp:109
void set(const string &s, const size_t start=0, const size_t end=std::numeric_limits< size_t >::max())
Definition: stringProxy.cpp:55
void removeFolderListener(events::folderListener *l)
Definition: folder.cpp:101
const char *const ISO8859_5
Definition: constants.cpp:101
FlagsModes
Methods for setting the flags.
Definition: net/message.hpp:271
Content disposition (basic type).
Definition: contentDisposition.hpp:39
Event occuring on a message.
Definition: events.hpp:134
shared_ptr< const embeddedObject > getObjectAt(const size_t pos) const
Return the embedded object at the specified position.
Definition: htmlTextPart.cpp:375
mailboxGroup & operator=(const component &other)
Definition: mailboxGroup.cpp:218
constPropertyProxy(const string &name, const propertySet *set)
Definition: propertySet.hpp:213
fileContentHandler & operator=(const fileContentHandler &cts)
Definition: fileContentHandler.cpp:62
bool operator!=(const datetime &other) const
Definition: dateTime.cpp:824
void insertWordAfter(const size_t pos, shared_ptr< word > w)
Insert a new word after the specified position.
Definition: text.cpp:170
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: addressList.cpp:265
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: encoding.cpp:294
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: path.cpp:109
static const property CONNECTION_TLS
The common property 'connection.tls': this is used to start a secured connection if it is supported b...
Definition: serviceInfos.hpp:103
@ FORCE_ENCODING
Encode lines even if they are plain ASCII text.
Definition: text.hpp:197
~charset_conv_error()
Definition: exception.cpp:110
static const datetime now()
Definition: dateTime.cpp:773
@ TYPE_RENAMED
A folder was renamed.
Definition: events.hpp:213
bool isEncoded() const
Returns 'true' if data managed by this object is encoded.
Definition: stringContentHandler.cpp:206
command_error(const string &command, const string &response, const string &desc="", const exception &other=NO_EXCEPTION)
Definition: exception.cpp:548
const mailbox & getRecipient() const
Return the recipient of the MDN (the mailbox that will receive the notification message).
Definition: sendableMDNInfos.cpp:57
void parseImpl(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: disposition.cpp:175
const char *const ERROR
Definition: constants.cpp:197
illegal_state(const string &state, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:412
const char *const WINDOWS_1253
Definition: constants.cpp:150
shared_ptr< component > clone() const
Clone this component.
Definition: charset.cpp:174
static const string PROTOCOL_FTP
Standard name for FTP protocol.
Definition: url.hpp:55
const string & getBy() const
Definition: relay.cpp:289
void insertWordBefore(const size_t pos, shared_ptr< word > w)
Insert a new word before the specified position.
Definition: text.cpp:164
~defaultAttachment()
Definition: defaultAttachment.cpp:63
outputStream & getNextOutputStream()
Return a reference to the stream being filtered.
Definition: filteredStream.cpp:227
Types
Folder types.
Definition: folderAttributes.hpp:51
body()
Definition: body.cpp:46
static messageDigestFactory * getInstance()
Definition: messageDigestFactory.cpp:48
const string getPrologText() const
Returns the current prolog text used when generating MIME body parts.
Definition: generationContext.cpp:73
propertyProxy operator[](const string &name)
Return a proxy object to access the specified property suitable for reading or writing.
Definition: propertySet.cpp:210
const size_t NEW_LINE_SEQUENCE_LENGTH
Definition: base.cpp:89
binaryEncoder()
Definition: binaryEncoder.cpp:32
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: path.cpp:170
~illegal_operation()
Definition: exception.cpp:531
virtual void send(shared_ptr< vmime::message > msg, utility::progressListener *progress=NULL)
Send a message over this transport service.
Definition: transport.cpp:125
void setService(shared_ptr< net::service > serv)
Called by the messaging service to allow this authenticator to know which service is currently using ...
Definition: defaultAuthenticator.cpp:112
uid & operator=(const uid &other)
Definition: net/message.cpp:94
filesystem_exception(const string &what, const utility::path &path, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:624
Status
Definition: socket.hpp:51
bool isEmpty() const
Tests whether the list of mailboxes is empty.
Definition: mailboxGroup.cpp:243
const char *const REFERENCES
Definition: constants.cpp:186
defaultTimeoutHandler()
Definition: defaultTimeoutHandler.cpp:37
@ PARAMETER_VALUE_NO_ENCODING
Only generate 7-bit (ASCII-only) values, even if the value contains non-ASCII chars or if folding is ...
Definition: generationContext.hpp:108
bool m_internationalizedEmail
Definition: context.hpp:114
const string getAccessToken() const
Return the optional access token for authentication.
Definition: defaultAuthenticator.cpp:79
exception * clone() const
Clone this object.
Definition: exception.cpp:609
const char *const FAILURE
Definition: constants.cpp:196
~no_such_field()
Definition: exception.cpp:160
const char *const UTF_8
Definition: constants.cpp:143
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: disposition.cpp:82
socket()
Definition: socket.hpp:188
@ GMT
Definition: dateTime.hpp:71
static const charset getLocalCharset()
Returns the default charset used on the system.
Definition: charset.cpp:149
size_t getPartCount() const
Return the actual body parts this text part is composed of.
Definition: plainTextPart.cpp:54
size_t getPartCount() const
Return the number of sub-parts in this part.
Definition: net/message.cpp:51
bool hasReadDate() const
Check whether the 'read-date' property is set.
Definition: fileAttachment.cpp:210
@ SPECIALUSE_JUNK
Folder is used to hold junk mail.
Definition: folderAttributes.hpp:78
Option not supported.
Definition: exception.hpp:458
exception * clone() const
Clone this object.
Definition: exception.cpp:427
static Encoding guessBestEncoding(const string &buffer, const charset &charset)
Guess the best RFC-2047 encoding to use for the specified buffer.
Definition: wordEncoder.cpp:264
const char *const CP_1252
Definition: constants.cpp:133
size_t decode(utility::inputStream &in, utility::outputStream &out, utility::progressListener *progress=NULL)
Decode data.
Definition: noopEncoder.cpp:56
~socket_not_connected_exception()
Definition: exception.cpp:345
void setPort(const port_t port)
Set the port of the URL.
Definition: url.cpp:376
const fileInfo & getFileInfo() const
Definition: fileAttachment.cpp:165
const char *const SENT_AUTOMATICALLY
The MDN was sent because the MUA had previously been configured to do so automatically.
Definition: constants.cpp:218
Definition: exception.hpp:185
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:325
virtual const std::vector< shared_ptr< component > > getChildComponents()=0
Return the list of children of this component.
const char *const WINDOWS_1252
Definition: constants.cpp:149
const shared_ptr< messageId > getMessageIdAt(const size_t pos)
Return the message-id at the specified position.
Definition: messageIdSequence.cpp:218
bodyPart * getParentPart()
Return the parent part of this part.
Definition: bodyPart.cpp:151
@ FLAG_REDIRECT_STDIN
Definition: childProcess.hpp:51
virtual ~childProcessFactory()
Definition: childProcess.hpp:92
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: dateTime.cpp:785
A factory to create 'encoder' objects for the specified encoding.
Definition: encoderFactory.hpp:40
void convert(const string &in, string &out, status *st=NULL)
Convert a string buffer from one charset to another charset (in-memory conversion)
Definition: charsetConverter_idna.cpp:78
A transport service.
Definition: transport.hpp:55
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:726
void setContents(shared_ptr< const contentHandler > contents)
Set the body contents.
Definition: body.cpp:842
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:297
const char *const ISO8859_8
Definition: constants.cpp:104
const addressList & getRecipients() const
Return the recipients of the message (To:).
Definition: messageBuilder.cpp:217
Socket not connected: you are trying to write to/read from a socket which is not connected to a peer.
Definition: exception.hpp:383
~authentication_exception()
Definition: exception.cpp:664
path()
Definition: utility/path.cpp:33
int getMonth() const
Definition: dateTime.cpp:792
const text & getName() const
Return the name of the group.
Definition: mailboxGroup.cpp:225
void setTimeoutHandlerFactory(shared_ptr< timeoutHandlerFactory > thf)
Set the factory used to create timeoutHandler objects for this service.
Definition: service.cpp:151
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: messageIdSequence.cpp:111
No expeditor specified.
Definition: exception.hpp:236
const char *const ISO8859_16
Definition: constants.cpp:110
sasl_exception(const string &what, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:692
static const datetime toLocalTime(const datetime &date, const int zone)
Convert the specified date/time to the specified time zone.
Definition: datetimeUtils.cpp:187
const shared_ptr< const contentHandler > getContents() const
Return a read-only reference to body contents.
Definition: body.cpp:836
No encoder has been found for the specified encoding name.
Definition: exception.hpp:134
shared_ptr< const header > getHeader() const
Return the header of the attachment part.
Definition: defaultAttachment.cpp:140
void setMinute(const int minute)
Definition: dateTime.cpp:805
int getSpecialUse() const
Return the special use of the folder.
Definition: folderAttributes.cpp:69
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: mailboxList.cpp:216
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: disposition.cpp:281
const encoding getEncoding() const
Return the encoding used to encode the body contents.
Definition: body.cpp:734
A range of (continuous) messages represented by their UID.
Definition: messageSet.hpp:141
void parseImpl(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: dateTime.cpp:72
exception * clone() const
Clone this object.
Definition: exception.cpp:523
shared_ptr< address > getAddressAt(const size_t pos)
Return the address at the specified position.
Definition: addressList.cpp:231
encoding()
Definition: encoding.cpp:37
shared_ptr< const embeddedObject > addObject(const string &data, const mediaType &type)
Embed an object and returns a string which identifies it.
Definition: htmlTextPart.cpp:429
exception * clone() const
Clone this object.
Definition: exception.cpp:725
virtual const string generate(const size_t maxLineLength=lineLengthLimits::infinite, const size_t curLinePos=0) const
Generate RFC-2822/MIME data for this component.
Definition: component.cpp:182
numberMessageRange(const size_t number)
Constructs a message range containing a single message.
Definition: messageSet.cpp:55
const char *const RETURN_PATH
Definition: constants.cpp:176
shared_ptr< bodyPart > createChildPart()
Creates and returns a new part and set this part as its parent.
Definition: bodyPart.cpp:163
void insertPartBefore(shared_ptr< bodyPart > beforePart, shared_ptr< bodyPart > part)
Insert a new part before the specified part.
Definition: body.cpp:934
void removeWord(const size_t pos)
Remove the word at the specified position.
Definition: text.cpp:176
string m_localPart
Definition: path.hpp:83
shared_ptr< const security::authenticator > getAuthenticator() const
Return the authenticator object used with this service instance.
Definition: service.cpp:93
defaultAuthenticator()
Definition: defaultAuthenticator.cpp:41
parameter & operator=(const parameter &other)
Definition: parameter.cpp:80
void setName(const string &name)
Set the content disposition type.
Definition: contentDisposition.cpp:121
unsigned int m_state[5]
Definition: sha1MessageDigest.hpp:64
void addMessageChangedListener(events::messageChangedListener *l)
Definition: folder.cpp:51
const char *const CP_1250
Definition: constants.cpp:131
Helper for creating or extracting Message Disposition Notifications (MDN), as defined in RFC-3798.
Definition: MDNHelper.hpp:42
const std::vector< shared_ptr< const property > > getPropertyList() const
Return the property list.
Definition: propertySet.cpp:228
void setFlags(const int flags)
Set the standard (non-user) flags of the folder.
Definition: folderAttributes.cpp:87
Create 'childProcess' objects.
Definition: childProcess.hpp:88
virtual void messageChanged(shared_ptr< messageChangedEvent > event)=0
void setSendingMode(const string &mode)
Set the disposition sending mode.
Definition: disposition.cpp:100
virtual ~message()
Definition: net/message.hpp:182
~no_recipient()
Definition: exception.cpp:244
folderEvent(shared_ptr< folder > folder, const Types type, const utility::path &oldPath, const utility::path &newPath)
Definition: events.cpp:132
bool hasProperty(const string &name) const
Test whether the specified property is set.
Definition: propertySet.cpp:222
bool isEmpty() const
Tests whether the list of mailboxes is empty.
Definition: mailboxList.cpp:98
Definition: exception.hpp:209
static bool isBodyPartAnAttachment(shared_ptr< const bodyPart > part, const unsigned int options=0)
Test whether a body part is an attachment.
Definition: attachmentHelper.cpp:42
void setUsername(const string &username)
Set the username of the URL.
Definition: url.cpp:340
const byte_t * getDigest() const
Returns the hash, as computed by the algorithm.
Definition: sha1MessageDigest.cpp:259
static const port_t UNSPECIFIED_PORT
Means "port not specified" (use default port).
Definition: url.hpp:46
void add(const int attribs)
Adds the specified predefined attribute to the set of attributes to fetch.
Definition: fetchAttributes.cpp:61
UIDMessageRange(const message::uid &uid)
Constructs a message range containing a single message.
Definition: messageSet.cpp:105
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: mailboxGroup.cpp:117
size_t bufferedStreamCopyRange(inputStream &is, outputStream &os, const size_t start, const size_t length)
Copy data from one stream into another stream using a buffered method and copying only a specified ra...
Definition: streamUtils.cpp:55
The service is already connected (must disconnect before).
Definition: exception.hpp:610
static void resetImportanceHeader(shared_ptr< header > hdr)
Reset the importance of a message to the default importance.
Definition: importanceHelper.cpp:40
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: parameter.cpp:279
shared_ptr< component > clone() const
Clone this component.
Definition: contentDisposition.cpp:94
const propertySet & getResults() const
Return the results returned by this encoder.
Definition: encoder.cpp:55
~invalid_argument()
Definition: exception.cpp:280
~fileContentHandler()
Definition: fileContentHandler.cpp:50
LFToCRLFFilteredOutputStream(outputStream &os)
Construct a new filter for the specified output stream.
Definition: filteredStream.cpp:303
messagePart()
Definition: net/message.hpp:57
@ USAGE_UNKNOWN
Definition: encoding.hpp:50
virtual ~tracerFactory()
Definition: tracer.hpp:90
already_connected(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:520
Definition: emptyContentHandler.hpp:35
A helper for parsing MIME messages.
Definition: messageParser.hpp:47
const TYPE getValue() const
Definition: propertySet.hpp:219
const mediaType getContentTypeHint() const
Returns a hint about the kind of data managed by this object.
Definition: emptyContentHandler.cpp:111
static shared_ptr< text > newFromString(const string &in, const charset &ch)
This function can be used to make several encoded words from a text.
Definition: text.cpp:242
const std::vector< size_t > & getNumbers() const
Return the numbers of the messages that have been added/removed.
Definition: events.cpp:73
progressListenerSizeAdapter(progressListener *list, const size_t total)
Construct a new progressListenerSizeAdapter object.
Definition: progressListener.cpp:34
size_t end() const
Definition: stringProxy.cpp:129
virtual ~progressListener()
Definition: progressListener.hpp:44
A group of mailboxes (basic type).
Definition: mailboxGroup.hpp:40
shared_ptr< component > clone() const
Clone this component.
Definition: mailbox.cpp:455
size_t getSize() const
Return the number of components in this path.
Definition: utility/path.cpp:173
void removeAttachment(const size_t pos)
Remove the attachment at the specified position.
Definition: messageBuilder.cpp:283
Types
Definition: events.hpp:71
Definition: contentHandler.hpp:41
bool isEmpty() const
Test whether this path is empty (root).
Definition: utility/path.cpp:149
static shared_ptr< charsetConverter > create(const charset &source, const charset &dest, const charsetConverterOptions &opts=charsetConverterOptions())
Construct and initialize an iconv charset converter.
Definition: charsetConverter.cpp:35
const charsetConverterOptions & getCharsetConversionOptions() const
Returns options used currently for charset conversions by the parser and/or the generator.
Definition: context.cpp:61
EncodedParameterValueModes m_paramValueMode
Definition: generationContext.hpp:166
bodyPart()
Definition: bodyPart.cpp:31
Definition: exception.hpp:107
shared_ptr< mailbox > getMailboxAt(const size_t pos)
Return the mailbox at the specified position.
Definition: mailboxGroup.cpp:332
void progress(const size_t current, const size_t currentTotal)
Called during the operation (can be called several times).
Definition: progressListener.cpp:47
static shared_ptr< bodyPart > findBodyPart(shared_ptr< bodyPart > part, const mediaType &type)
Definition: attachmentHelper.cpp:282
Base class for input/output stream.
Definition: stream.hpp:43
const messageId getOriginalMessageId() const
Return the identifier of the message for which this MDN has been generated.
Definition: receivedMDNInfos.cpp:60
static string & appendBytesToString(string &str, const byte_t *data, const size_t count)
Appends bytes to a string.
Definition: stringUtils.hpp:83
const vmime::encoding & getEncoding() const
Returns the encoding used for data (or "binary" if not encoded).
Definition: emptyContentHandler.cpp:93
relay()
Definition: relay.cpp:36
const string toString(const string &sep, const charset &cset) const
Returns a string representation of this path.
Definition: utility/path.cpp:295
std::size_t size_t
Definition: types.hpp:101
void getDate(int &year, int &month, int &day) const
Definition: dateTime.cpp:747
text()
Definition: text.cpp:34
messageStructure(const messageStructure &)
Definition: net/message.hpp:134
vmime::utility::path path
Type used for fully qualified path name of a folder.
Definition: folder.hpp:84
size_t getGeneratedSize(const generationContext &ctx)
Get the number of bytes that will be used by this component when it is generated.
Definition: parameter.cpp:607
void setHour(const int hour)
Definition: dateTime.cpp:804
bool isEmpty() const
Tests whether the list of message-ides is empty.
Definition: messageIdSequence.cpp:212
bool isGroup() const
Test whether this is object is a mailboxGroup.
Definition: mailbox.cpp:474
void setTLSProperties(shared_ptr< tls::TLSProperties > tlsProps)
Set properties for SSL/TLS secured connections in this session.
Definition: session.cpp:159
virtual ~timeoutHandlerFactory()
Definition: timeoutHandler.hpp:79
@ FLAG_MODE_ADD
Add the flags.
Definition: net/message.hpp:274
size_t getAttachmentCount() const
Return the number of attachments in the message.
Definition: messageBuilder.cpp:301
void dispatch(class messageChangedListener *listener)
Dispatch the event to the specified listener.
Definition: events.cpp:112
Holds configuration parameters used for parsing messages.
Definition: parsingContext.hpp:38
word()
Construct an empty word.
Definition: word.cpp:44
Simple output stream.
Definition: outputStream.hpp:43
size_t getEncoderCount() const
Return the number of registered encoders.
Definition: encoderFactory.cpp:93
static generationContext & getDefaultContext()
Returns the default context used for generating messages.
Definition: generationContext.cpp:53
void notifyMessageChanged(shared_ptr< events::messageChangedEvent > event)
Definition: folder.cpp:63
shared_ptr< component > clone() const
Clone this component.
Definition: mailboxList.cpp:152
VMIME_DEPRECATED bool operator&(const int attribs) const
Returns true if the set contains the specified attribute(s).
Definition: fetchAttributes.hpp:117
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:428
void setFromString(const string &props)
Parse a string and extract one or more properties.
Definition: propertySet.cpp:68
void setAuthenticator(shared_ptr< security::authenticator > auth)
Set the authenticator object used with this service instance.
Definition: service.cpp:105
const datetime getCreationDate() const
Return the value of the "creation-date" parameter.
Definition: contentDispositionField.cpp:49
bool isTimeOut()
Called to test if the time limit has been reached.
Definition: defaultTimeoutHandler.cpp:48
void importChildPart(shared_ptr< bodyPart > part)
Detach the specified part from its current parent part (if any) and attach it to this part by setting...
Definition: bodyPart.cpp:172
int getHour() const
Definition: dateTime.cpp:794
shared_ptr< folder > getFolder() const
Return the folder in which messages have changed.
Definition: events.cpp:107
static size_t findFirstNonASCIIchar(const string::const_iterator begin, const string::const_iterator end)
Returns the position of the first non 7-bit US-ASCII character in a string.
Definition: stringUtils.cpp:161
exception * clone() const
Clone this object.
Definition: exception.cpp:487
bool hasCreationDate() const
Check whether the 'creation-date' property is present.
Definition: fileAttachment.cpp:202
bool isParentOf(const path &p) const
Test whether this path is a parent of another one.
Definition: utility/path.cpp:205
Binary encoder.
Definition: binaryEncoder.hpp:39
static const string PROTOCOL_HTTP
Standard name for HTTP protocol.
Definition: url.hpp:52
static int RFC2047_getEncodedLength(const unsigned char c)
Definition: qpEncoder.cpp:129
void writeImpl(const byte_t *const data, const size_t count)
Write data to the stream.
Definition: outputStreamStringAdapter.cpp:40
stringContentHandler & operator=(const stringContentHandler &cts)
Definition: stringContentHandler.cpp:77
CharsetEncodingEntry g_charsetEncodingMap[]
Definition: charset.cpp:211
emailAddress m_email
Definition: mailbox.hpp:97
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:338
~body()
Definition: body.cpp:52
const string & command() const
Return the name of the command which have thrown the exception.
Definition: exception.cpp:578
string m_prologText
Definition: generationContext.hpp:162
virtual ~folder()
Definition: folder.hpp:80
An object that contains all the information needed for connection to a service.
Definition: session.hpp:57
void copy_vector(const T1 &v1, T2 &v2)
Definition: base.hpp:114
void setProperty(const string &name, const TYPE &value)
Set a property for this service (service prefix is added automatically).
Definition: service.hpp:201
propertySet & operator=(const propertySet &set)
Definition: propertySet.cpp:57
const shared_ptr< const body > getBody() const
Return the body section of this part.
Definition: bodyPart.cpp:126
const char *const ISO8859_1
Definition: constants.cpp:97
const char *const CP_737
Definition: constants.cpp:113
A filtered output stream which replaces "\n." sequences with "\n.." sequences.
Definition: filteredStream.hpp:109
size_t getPartCount() const
Return the number of parts in the list.
Definition: body.cpp:1002
@ IMPORTANCE_HIGHEST
Definition: importanceHelper.hpp:49
A filtered output stream which applies a charset conversion to input bytes.
Definition: charsetConverter.hpp:56
Holds information about Message Disposition Notifications (MDN).
Definition: MDNInfos.hpp:39
exception * clone() const
Clone this object.
Definition: exception.cpp:164
const char *const CP_862
Definition: constants.cpp:123
size_t getBlockSize()
Return the preferred maximum block size when reading from or writing to this stream.
Definition: filteredStream.cpp:295
bool silentlyReplaceInvalidSequences
If true, invalid sequences will be silently replaced with a string when possible (see 'invalidSequenc...
Definition: charsetConverterOptions.hpp:49
void copyFrom(const component &other)
Replace data in this component by data in other component.
Definition: bodyPart.cpp:92
const char *const UTF_16
Definition: constants.cpp:144
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: text.cpp:487
const mediaType getContentType() const
Return the media type of the data contained in the body contents.
Definition: body.cpp:667
static path fromString(const string &str, const string &sep, const charset &cset)
Construct a new path from a string.
Definition: utility/path.cpp:265
status()
Definition: charsetConverter.cpp:45
A class to create 'socket' objects.
Definition: socket.hpp:199
Computes message digests using standard algorithms, such as MD5 or SHA.
Definition: messageDigest.hpp:41
const std::vector< shared_ptr< const attachment > > getAttachmentList() const
Return the list of attachments.
Definition: messageBuilder.cpp:307
void setHost(const string &host)
Set the host name of the URL.
Definition: url.cpp:364
const char *const DATE
Definition: constants.cpp:171
virtual ~criticalSection()
Definition: criticalSection.cpp:37
void setSize(const string &size)
Set the value of the "size" parameter.
Definition: contentDispositionField.cpp:152
Listener for events occuring on a message.
Definition: events.hpp:187
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:464
shared_ptr< folder > getFolder() const
Return the folder in which messages have been added/removed.
Definition: events.cpp:71
const string getId() const
Return the message identifier constructed by using the right part and the left part,...
Definition: messageId.cpp:181
size_t getPartCount() const
Return the actual body parts this text part is composed of.
Definition: htmlTextPart.cpp:59
void setUsage(const EncodingUsage usage)
Set the type of contents this encoding is used for.
Definition: encoding.cpp:288
const word & getDomainName() const
Return the domain name of the address.
Definition: emailAddress.cpp:636
weak_ptr< net::service > getService() const
Definition: defaultAuthenticator.cpp:118
shared_ptr< encoder > create(const string &name)
Create a new encoder instance from an encoding name.
Definition: encoderFactory.cpp:72
no_such_field(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:161
@ QUOTE_IF_NEEDED
Use quoting instead of encoding if needed (eg.
Definition: text.hpp:200
Pseudo-random number generator.
Definition: random.hpp:38
net_exception(const string &what, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:321
bool operator==(const text &t) const
Definition: text.cpp:122
void copyFrom(const component &other)
Replace data in this component by data in other component.
Definition: messageIdSequence.cpp:59
~net_exception()
Definition: exception.cpp:320
size_t getLast() const
Returns the number of the last message in the range, or -1 to designate the last message in the folde...
Definition: messageSet.cpp:85
embeddedObject(shared_ptr< contentHandler > data, const encoding &enc, const string &id, const mediaType &type, const ReferenceType refType)
Constructs an embedded object.
Definition: htmlTextPart.cpp:442
bool hasBoundary() const
Test whether the "boundary" parameter is set.
Definition: contentTypeField.cpp:43
Flags
Property flags.
Definition: serviceInfos.hpp:128
void setValue(const component &value)
Set the value of this parameter.
Definition: parameter.cpp:99
const utility::path & path() const
Return the full path of the file have thrown the exception.
Definition: exception.cpp:627
Definition: address.cpp:32
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:630
exception * clone() const
Clone this object.
Definition: exception.cpp:641
static const property SERVER_PORT
The common property 'server.port' which is the port used to connect to the server.
Definition: serviceInfos.hpp:78
const string generate(const size_t maxLineLength=generationContext::getDefaultContext().getMaxLineLength(), const size_t curLinePos=0) const
Generate RFC-2822/MIME data for this component.
Definition: message.cpp:41
parsingContext()
Definition: parsingContext.cpp:31
const char *const CP_858
Definition: constants.cpp:120
virtual ~event()
Definition: events.cpp:50
socket_not_connected_exception(const string &what="", const exception &other=NO_EXCEPTION)
Definition: exception.cpp:346
const char *const CP_855
Definition: constants.cpp:118
A factory to create 'service' objects for a specified protocol.
Definition: serviceFactory.hpp:61
static char_t toLower(const char_t c)
Definition: parserHelpers.hpp:65
A service property.
Definition: serviceInfos.hpp:68
mailbox()
Definition: mailbox.cpp:33
~datetime()
Definition: dateTime.cpp:697
@ NO_NEW_LINE_SEQUENCE
Use CRLF instead of new-line sequence (CRLF + TAB).
Definition: text.hpp:198
Stores information about a file attachment.
Definition: fileAttachment.hpp:61
void copyFrom(const component &other)
Replace data in this component by data in other component.
Definition: emailAddress.cpp:602
~tls_exception()
Definition: exception.cpp:721
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: relay.cpp:349
~filesystem_exception()
Definition: exception.cpp:623
static const property AUTH_USERNAME
The common property 'auth.username' which is the username used to authenticate with the server.
Definition: serviceInfos.hpp:87
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: mailbox.cpp:335
const string & getFrom() const
Definition: relay.cpp:265
void createFromString(const string &in, const charset &ch)
This function can be used to make several encoded words from a text.
Definition: text.cpp:252
exception * clone() const
Clone this object.
Definition: exception.cpp:475
Abstract representation of a path (filesystem, mailbox, etc).
Definition: utility/path.hpp:41
bool matchesId(const string &id) const
Returns whether this object matches the specified identifier.
Definition: htmlTextPart.cpp:489
void setPrologText(const string &prologText)
Set the prolog text.
Definition: body.cpp:818
Quoted-printable encoder.
Definition: qpEncoder.hpp:39
Event about the message count in a folder.
Definition: events.hpp:64
void setBoundary(const string &boundary)
Set the value of the "boundary" parameter.
Definition: contentTypeField.cpp:60
~file_not_found()
Definition: exception.cpp:649
outputStream & getNextOutputStream()
Return a reference to the stream being filtered.
Definition: filteredStream.cpp:309
Encodes words following RFC-2047.
Definition: wordEncoder.hpp:47
exception * clone() const
Clone this object.
Definition: exception.cpp:439
const string & response() const
Definition: exception.cpp:389
~illegal_byte_sequence_for_charset()
Definition: exception.cpp:123
shared_ptr< component > clone() const
Clone this component.
Definition: messageIdSequence.cpp:53
Holds a set of attributes for a folder.
Definition: folderAttributes.hpp:45
std::ostream & operator<<(std::ostream &os, const message::uid &uid)
Definition: net/message.cpp:138
bool isBuffered() const
Indicates whether the extract() method can be called multiple times.
Definition: streamContentHandler.cpp:212
int getType()
Return the type of this folder.
Definition: folder.cpp:39
no_digest_algorithm_available(const string &name, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:149
shared_ptr< addressList > toAddressList() const
Return a list of addresses.
Definition: mailboxList.cpp:223
int getFlags() const
Return the standard (non-user) flags of the folder.
Definition: folderAttributes.cpp:81
virtual ~fileSystemFactory()
Definition: file.hpp:221
void setDay(const int day)
Definition: dateTime.cpp:803
no_such_part(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:173
path getParent() const
Definition: utility/path.cpp:94
virtual ~childProcess()
Definition: childProcess.hpp:46
static bool findEOL(const string &buffer, const size_t currentPos, const size_t end, size_t *eol)
Finds the next EOL sequence in the specified buffer.
Definition: parserHelpers.hpp:102
no_encoder_available(const string &name, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:137
void setContentTypeHint(const mediaType &type)
Gives a hint about the kind of data managed by this object.
Definition: stringContentHandler.cpp:224
const char *const FROM
Definition: constants.cpp:165
~no_such_message_id()
Definition: exception.cpp:184
const char *const UTF_7
Definition: constants.cpp:142
const string getBoundary() const
Return the value of the "boundary" parameter.
Definition: contentTypeField.cpp:49
const char *const CONTENT_ID
Definition: constants.cpp:183
propertySet()
Definition: propertySet.cpp:32
virtual ~contentHandler()
Definition: contentHandler.cpp:35
static const string trim(const string &str)
Strip the space characters (SPC, TAB, CR, LF) at the beginning and at the end of the specified string...
Definition: stringUtils.cpp:121
This class represents a Uniform Resource Locator (a pointer to a "resource" on the World Wide Web).
Definition: url.hpp:41
shared_ptr< component > clone() const
Clone this component.
Definition: path.cpp:96
virtual void writeImpl(const byte_t *const data, const size_t count)=0
Write data to the stream.
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:524
void setModificationDate(const datetime &date)
Set the value of the 'modification-date' property.
Definition: fileAttachment.cpp:208
const string & response() const
Return the invalid response line.
Definition: exception.cpp:580
criticalSection()
Definition: criticalSection.cpp:32
unsigned int m_count[2]
Definition: sha1MessageDigest.hpp:65
void copyFrom(const component &other)
Replace data in this component by data in other component.
Definition: disposition.cpp:62
const string & getDefaultValue() const
Return the default value of the property or an empty string if there is no default value.
Definition: serviceInfos.cpp:147
A property holds a (name,value) pair.
Definition: propertySet.hpp:52
Base class for exceptions thrown by the filesystem features.
Definition: exception.hpp:744
An adapter class for byte array output.
Definition: outputStreamByteArrayAdapter.hpp:38
~already_connected()
Definition: exception.cpp:519
const char *const CP_850
Definition: constants.cpp:115
const std::vector< string > & getWithList() const
Definition: relay.cpp:337
@ DEC
Definition: dateTime.hpp:154
size_t decode(utility::inputStream &in, utility::outputStream &out, utility::progressListener *progress=NULL)
Decode data.
Definition: qpEncoder.cpp:377
const std::vector< shared_ptr< const mailbox > > getMailboxList() const
Return the mailbox list.
Definition: mailboxList.cpp:116
int getMinute() const
Definition: dateTime.cpp:795
exception * clone() const
Clone this object.
Definition: exception.cpp:260
url(const string &s)
Construct an URL from a string (parse the URL components).
Definition: url.cpp:47
const mediaType getType() const
Return the content type of data stored in this embedded object.
Definition: htmlTextPart.cpp:477
const char *const ISO8859_4
Definition: constants.cpp:100
const char *const CP_874
Definition: constants.cpp:129
@ SPECIALUSE_ALL
Virtual folder containing all messages.
Definition: folderAttributes.hpp:72
void appendMessageId(shared_ptr< messageId > mid)
Add a message-id at the end of the list.
Definition: messageIdSequence.cpp:138
const char *const BCC
Definition: constants.cpp:170
virtual void parseImpl(const parsingContext &ctx, shared_ptr< utility::parserInputStreamAdapter > parser, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: component.cpp:147
shared_ptr< component > clone() const
Clone this component.
Definition: body.cpp:773
const word NULL_WORD("", vmime::charset(vmime::charsets::US_ASCII))
"Null" (empty) word.
Definition: base.hpp:51
void removeAllMessageIds()
Remove all message-ids from the list.
Definition: messageIdSequence.cpp:200
void setContentType(const mediaType &type, const charset &chset)
Set the MIME type and charset of contents.
Definition: body.cpp:651
const component & getComponentAt(const size_t pos) const
Return the component at the specified position.
Definition: utility/path.cpp:252
const char *const DELETED
Message has been deleted without being displayed.
Definition: constants.cpp:226
virtual ~attachment()
Definition: attachment.hpp:56
~command_error()
Definition: exception.cpp:547
Months
Definition: dateTime.hpp:127
bool operator!=(const encoding &value) const
Definition: encoding.cpp:129
void parseImpl(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: text.cpp:71
const std::vector< string > getAvailableProperties() const
Return a list of property names that can be set for this encoder.
Definition: b64Encoder.cpp:38
virtual ~messageCountListener()
Definition: events.hpp:122
void dispatch(class folderListener *listener)
Dispatch the event to the specified listener.
Definition: events.cpp:143
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:102
Flags
Flags used with start().
Definition: childProcess.hpp:49
exception * clone() const
Clone this object.
Definition: exception.cpp:415
Illegal operation: cannot run this operation on the object.
Definition: exception.hpp:625
invalid_argument(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:281
CRLFToLFFilteredOutputStream(outputStream &os)
Construct a new filter for the specified output stream.
Definition: filteredStream.cpp:221
const charset & getCharset() const
Return the charset used to encode text in the text part.
Definition: htmlTextPart.cpp:333
exception * clone() const
Clone this object.
Definition: exception.cpp:248
path & operator/=(const path &p)
Definition: utility/path.cpp:76
@ TYPE_INTEGER
Definition: serviceInfos.hpp:119
path()
Definition: path.cpp:32
static void addAttachment(shared_ptr< message > msg, shared_ptr< attachment > att)
Add an attachment to the specified message.
Definition: attachmentHelper.cpp:199
connection_error(const string &what="", const exception &other=NO_EXCEPTION)
Definition: exception.cpp:359
partial_fetch_not_supported(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:591
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:392
~invalid_response()
Definition: exception.cpp:569
int getFlags() const
Return the attributes of the property (see serviceInfos::property::Types constants).
Definition: serviceInfos.cpp:159
Holds configuration parameters used either for parsing or generating messages.
Definition: context.hpp:39
const char *const ORIGINAL_MESSAGE_ID
Definition: constants.cpp:192
size_t getDigestLength() const
Returns the length of the hash.
Definition: sha1MessageDigest.cpp:253
Encoding getEncoding() const
Return the encoding used.
Definition: wordEncoder.cpp:221
void copyFrom(const component &other)
Replace data in this component by data in other component.
Definition: path.cpp:87
component()
Definition: component.cpp:38
const string & response() const
Return the invalid response line.
Definition: exception.cpp:559
const char *const DELIVERED_TO
Definition: constants.cpp:175
fileAttachment(const string &filepath, const mediaType &type)
Definition: fileAttachment.cpp:49
void insertAddressBefore(shared_ptr< address > beforeAddress, shared_ptr< address > addr)
Insert a new address before the specified address.
Definition: addressList.cpp:148
datetime & operator=(const datetime &other)
Definition: dateTime.cpp:716
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: mailboxGroup.cpp:366
const string getReferenceId() const
Return the identifier used to reference this embedded object in a text document (for example,...
Definition: htmlTextPart.cpp:468
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:115
const string & getSendingMode() const
Return the disposition sending mode.
Definition: disposition.cpp:106
invalid_property_type(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:269
autoLock(shared_ptr< M > mutex)
Definition: autoLock.hpp:44
virtual void start(const size_t predictedTotal)=0
Called at the beginning of the operation.
const char *const IN_REPLY_TO
Definition: constants.cpp:185
bool isEquivalent(const word &other) const
Returns whether two words actually represent the same text, regardless of their charset.
Definition: word.cpp:785
EncodingUsage
Definition: encoding.hpp:48
virtual ~fileReader()
Definition: file.hpp:88
void extract(utility::outputStream &os, utility::progressListener *progress=NULL) const
Extract the contents into the specified stream.
Definition: emptyContentHandler.cpp:49
virtual context & operator=(const context &ctx)
Definition: context.cpp:73
const char *const ISO8859_3
Definition: constants.cpp:99
void setReportType(const string &reportType)
Set the value of the "report-type" parameter (RFC-1892).
Definition: contentTypeField.cpp:106
void removeProperty(const string &name)
Remove the specified property.
Definition: propertySet.cpp:80
const string & getName() const
Return the name of the encoding.
Definition: encoding.cpp:270
const word getFilename() const
Return the value of the "filename" parameter.
Definition: contentDispositionField.cpp:118
~system_error()
Definition: exception.cpp:292
bool empty() const
Definition: net/message.cpp:126
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:285
unsigned short port_t
Definition: types.hpp:94
bool operator!=(const text &t) const
Definition: text.cpp:141
static void fixBrokenWords(std::vector< shared_ptr< word > > &words)
Definition: text.cpp:413
The current state of the object does not permit to execute the operation (for example,...
Definition: exception.hpp:474
invalid_response(const string &command, const string &response, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:570
static messageSet byNumber(const size_t number)
Constructs a new message set and initializes it with a single message represented by its sequence num...
Definition: messageSet.cpp:180
~sasl_exception()
Definition: exception.cpp:691
not_connected(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:508
VMIME_EXPORT outputStream & operator<<(outputStream &os, const string &str)
Definition: streamUtils.cpp:42
size_t getRangeCount() const
Returns the number of ranges contained in this set.
Definition: messageSet.cpp:384
void generateIn(shared_ptr< bodyPart > message, shared_ptr< bodyPart > parent) const
Generate the text part(s) into the specified message.
Definition: htmlTextPart.cpp:65
bool operator!=(const path &p) const
Definition: path.cpp:80
void setEpilogText(const string &epilogText)
Set the epilog text.
Definition: body.cpp:830
DaysOfWeek
Definition: dateTime.hpp:158
PrivateConstants
Definition: net/message.hpp:174
const text getDescription() const
Return the description of this attachment.
Definition: defaultAttachment.cpp:110
contentDisposition()
Definition: contentDisposition.cpp:32
exception * clone() const
Clone this object.
Definition: exception.cpp:200
dotFilteredOutputStream(outputStream &os)
Construct a new filter for the specified output stream.
Definition: filteredStream.cpp:139
emptyContentHandler()
Definition: emptyContentHandler.cpp:31
size_t getParsedLength() const
Return the length of this component in the parsed message contents.
Definition: component.cpp:218
exception * clone() const
Clone this object.
Definition: exception.cpp:337
void appendWord(shared_ptr< word > w)
Add a word at the end of the list.
Definition: text.cpp:158
certificateChain(const std::vector< shared_ptr< certificate > > &certs)
Construct a new certificateChain object given an ordered list of certificates.
Definition: certificateChain.cpp:32
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:378
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:364
datetime()
Definition: dateTime.cpp:626
Base class for an object used to trace network communication between the client and the server.
Definition: tracer.hpp:48
size_t getMailboxCount() const
Return the number of mailboxes in the list.
Definition: mailboxGroup.cpp:326
Folder is already open in the same session.
Definition: exception.hpp:504
void write(const char(&data)[N])
Write data to the stream.
Definition: outputStream.hpp:68
Holds information about a Message Disposition Notification (MDN) that has been received.
Definition: receivedMDNInfos.hpp:43
void copyFrom(const component &other)
Replace data in this component by data in other component.
Definition: body.cpp:783
void setCopyRecipients(const addressList &cc)
Set the copy recipients of the message (Cc:).
Definition: messageBuilder.cpp:247
const charset getCharset() const
Return the charset of the data contained in the body contents.
Definition: body.cpp:703
bool operator!=(const class mailbox &mailbox) const
Definition: mailbox.cpp:433
virtual ~context()
Definition: context.cpp:44
emailAddress()
Definition: emailAddress.cpp:130
~unsupported_option()
Definition: exception.cpp:399
Base object for all objects in the library.
Definition: object.hpp:38
exception * clone() const
Clone this object.
Definition: exception.cpp:561
A default timeout handler for messaging services.
Definition: defaultTimeoutHandler.hpp:48
size_t getFirst() const
Returns the number of the first message in the range.
Definition: messageSet.cpp:79
path & operator=(const path &p)
Definition: utility/path.cpp:108
A stream whose output is filtered.
Definition: filteredStream.hpp:58
shared_ptr< component > clone() const
Clone this component.
Definition: mailboxGroup.cpp:212
const mediaType getType() const
Return the media type of this attachment.
Definition: defaultAttachment.cpp:104
~no_factory_available()
Definition: exception.cpp:208
void setWrapMessageId(const bool &wrapMessageId)
Sets the boolean variable that indicates whether the Message-Id can be wrapped or not.
Definition: generationContext.cpp:101
exception * clone() const
Clone this object.
Definition: exception.cpp:152
folder_not_found(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:424
void getTime(int &hour, int &minute, int &second, int &zone) const
Definition: dateTime.cpp:730
no_recipient(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:245
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: charset.cpp:79
virtual shared_ptr< timeoutHandler > create()=0
uid()
Definition: net/message.cpp:61
body & operator=(const body &other)
Definition: body.cpp:805
void extract(utility::outputStream &os, utility::progressListener *progress=NULL) const
Extract the contents into the specified stream.
Definition: streamContentHandler.cpp:143
void parse(const string &buffer)
Parse RFC-822/MIME data for this component, using the default parsing context.
Definition: component.cpp:95
static int getDaysInMonth(const int year, const int month)
Return the number of days in the specified month.
Definition: datetimeUtils.cpp:216
const char *const MIME_VERSION
Definition: constants.cpp:177
shared_ptr< textPart > getTextPart()
Return the text part of the message.
Definition: messageBuilder.cpp:199
static bool RFC2047_isEncodingNeededForChar(const unsigned char c)
Definition: qpEncoder.cpp:122
~charsetConverter_idna()
Definition: charsetConverter_idna.cpp:55
void setExpeditor(const mailbox &expeditor)
Set the expeditor of the message (From:).
Definition: messageBuilder.cpp:211
const string & getValue() const
Return the value of the property as a string.
Definition: propertySet.cpp:281
void insertMessageIdAfter(shared_ptr< messageId > afterMid, shared_ptr< messageId > mid)
Insert a new message-id after the specified message-id.
Definition: messageIdSequence.cpp:162
void setTracerFactory(shared_ptr< tracerFactory > tf)
Definition: service.cpp:139
const char *const WINDOWS_1255
Definition: constants.cpp:152
folderAttributes()
Construct a new folderAttributes object with the default set of attributes.
Definition: folderAttributes.cpp:39
void setValue(const TYPE &value)
Set the value of the property as a generic type.
Definition: propertySet.hpp:89
const char *const WARNING
Definition: constants.cpp:198
virtual shared_ptr< socket > create()=0
Creates a socket without timeout handler.
const component & operator[](const size_t x) const
Return the specified component of the path (const version).
Definition: utility/path.cpp:179
An authenticator that can provide some basic information by reading in the messaging session properti...
Definition: defaultAuthenticator.hpp:44
A range of (continuous) messages designated by their sequence number.
Definition: messageSet.hpp:90
bool operator!=(const contentDisposition &value) const
Definition: contentDisposition.cpp:88
Enumerator used to retrieve the message number/UID ranges contained in a messageSet object.
Definition: messageSet.hpp:50
Holds a set of attributes to fetch for a message.
Definition: fetchAttributes.hpp:45
const string & getPath() const
Return the path portion of the URL, or empty if not specified.
Definition: url.cpp:382
shared_ptr< tls::TLSProperties > getTLSProperties() const
Get properties for SSL/TLS secured connections in this session.
Definition: session.cpp:165
const mailbox & getExpeditor() const
Return the expeditor of the message (From:).
Definition: messageParser.cpp:240
messageRange * clone() const
Clones this message range.
Definition: messageSet.cpp:97
void parseImpl(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: parameter.cpp:117
const mailbox & getExpeditor() const
Return the expeditor of the message (From:).
Definition: messageBuilder.cpp:205
const char *const CP_1251
Definition: constants.cpp:132
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: body.cpp:1048
const shared_ptr< word > getWordAt(const size_t pos)
Return the word at the specified position.
Definition: text.cpp:202
const char *const ERROR
Definition: constants.cpp:233
size_t getLength() const
Returns the actual length of data.
Definition: emptyContentHandler.cpp:75
exception * clone() const
Clone this object.
Definition: exception.cpp:140
byte_t m_digest[20]
Definition: sha1MessageDigest.hpp:68
Default, no-op encoder (simple copy, no encoding/decoding is performed).
Definition: noopEncoder.hpp:39
@ SPECIALUSE_ARCHIVE
Folder is used to archives messages (server-dependent).
Definition: folderAttributes.hpp:73
static bool isValidBoundary(const string &boundary)
Test a boundary string for validity (as defined in RFC #1521, page 19).
Definition: body.cpp:622
void appendPart(shared_ptr< bodyPart > part)
Add a part at the end of the list.
Definition: body.cpp:926
static const byte_t * bytesFromString(const char *str)
Casts a NULL-terminated string to bytes.
Definition: stringUtils.hpp:71
exception * clone() const
Clone this object.
Definition: exception.cpp:403
messageRange()
Definition: messageSet.cpp:43
Error while connecting to the server: this may be a DNS resolution error or a connection error (for e...
Definition: exception.hpp:400
const char *const TO
Definition: constants.cpp:168
Disposition - from RFC-3798 (basic type).
Definition: disposition.hpp:41
const char *const WINDOWS_1257
Definition: constants.cpp:154
const char *const WINDOWS_1256
Definition: constants.cpp:153
outputStream & getNextOutputStream()
Return a reference to the stream being filtered.
Definition: filteredStream.cpp:145
const char *const CP_865
Definition: constants.cpp:126
const char *const DISPLAYED
Message has been displayed to the user.
Definition: constants.cpp:225
contentDispositionField()
Definition: contentDispositionField.cpp:32
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:141
static const std::vector< shared_ptr< const attachment > > findAttachmentsInBodyPart(shared_ptr< const bodyPart > part, const unsigned int options=0)
Find all attachments contained in the specified part and all its children parts.
Definition: attachmentHelper.cpp:171
static receivedMDNInfos getReceivedMDN(const shared_ptr< const message > msg)
If the specified message is a MDN, return information about it.
Definition: MDNHelper.cpp:106
bool operator==(const datetime &other) const
Definition: dateTime.cpp:810
void setProtocol(const string &protocol)
Set the protocol of the URL.
Definition: url.cpp:328
virtual ~service()
Definition: service.cpp:76
void setBuffer(const string &buffer)
Set the raw data for this encoded word.
Definition: word.cpp:861
void setName(const string &name)
Set the name of the encoding.
Definition: encoding.cpp:276
receivedMDNInfos & operator=(const receivedMDNInfos &other)
Definition: receivedMDNInfos.cpp:47
bool hasCreationDate() const
Test whether the "creation-date" parameter is set.
Definition: contentDispositionField.cpp:43
Convert between charsets.
Definition: charsetConverter.hpp:67
~text()
Definition: text.cpp:64
void clear()
Definition: mailbox.cpp:467
A class that creates default timeout handlers.
Definition: defaultTimeoutHandler.hpp:68
virtual ~tracer()
Definition: tracer.hpp:52
no_such_mechanism(const string &name, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:704
noncopyable()
Definition: base.hpp:243
virtual const string getHexDigest() const
Returns the hash as an hexadecimal string.
Definition: messageDigest.cpp:34
File is not a directory.
Definition: exception.hpp:769
const message::uid getFirst() const
Returns the UID of the first message in the range.
Definition: messageSet.cpp:123
void setData(const utility::stringProxy &str, const vmime::encoding &enc=NO_ENCODING)
Definition: stringContentHandler.cpp:87
size_t getBlockSize()
Return the preferred maximum block size when reading from or writing to this stream.
Definition: outputStreamSocketAdapter.cpp:56
void encodeAndFold(const generationContext &ctx, utility::outputStream &os, const size_t firstLineOffset, size_t *lastLineLength, const int flags) const
Encode and fold text in respect to RFC-2047.
Definition: text.cpp:354
exception * clone() const
Clone this object.
Definition: exception.cpp:594
static const char * EVENT_CLASS
Definition: events.hpp:206
illegal_operation(const string &msg="", const exception &other=NO_EXCEPTION)
Definition: exception.cpp:532
Bad type specified when reading property.
Definition: exception.hpp:281
const char *const CONTENT_DESCRIPTION
Definition: constants.cpp:181
shared_ptr< contentHandler > clone() const
Return a copy of this object.
Definition: stringContentHandler.cpp:71
void writeImpl(const byte_t *const data, const size_t count)
Write data to the stream.
Definition: filteredStream.cpp:316
void setActionMode(const string &mode)
Set the disposition action mode.
Definition: disposition.cpp:88
A filtered output stream which replaces CRLF sequences with single LF characters.
Definition: filteredStream.hpp:141
Abstract representation of a message in a store/transport service.
Definition: net/message.hpp:167
virtual size_t getGeneratedSize(const generationContext &ctx)
Get the number of bytes that will be used by this component when it is generated.
Definition: component.cpp:231
size_t getEncodedSize(const size_t n) const
Return the encoded size for the specified input (decoded) size.
Definition: noopEncoder.cpp:73
exception * clone() const
Clone this object.
Definition: exception.cpp:707
ReferenceType getReferenceType() const
Returns the way this object is referenced.
Definition: htmlTextPart.cpp:483
virtual void progress(const size_t current, const size_t currentTotal)=0
Called during the operation (can be called several times).
text m_name
Definition: mailbox.hpp:96
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: parameter.cpp:641
~mailboxGroup()
Definition: mailboxGroup.cpp:51
const char *const CP_1254
Definition: constants.cpp:135
exception * clone() const
Clone this object.
Definition: exception.cpp:391
virtual exception * clone() const
Clone this object.
Definition: exception.cpp:82
A charset converter which can convert to and from Punycode (for IDNA).
Definition: charsetConverter_idna.hpp:38
static const property AUTH_ACCESS_TOKEN
The common property 'auth.accesstoken' which is the access token used to authenticate with the server...
Definition: serviceInfos.hpp:95
bool isEncoded() const
Returns 'true' if data managed by this object is encoded.
Definition: streamContentHandler.cpp:200
static const datetime toUniversalTime(const datetime &date)
Convert the specified date/time to UT (GMT).
Definition: datetimeUtils.cpp:166
message(const message &)
Definition: net/message.hpp:172
Write to a file.
Definition: file.hpp:71
void processHeader(shared_ptr< header > header)
Prepares the header before transmitting the message.
Definition: transport.cpp:80
virtual void messagesRemoved(shared_ptr< messageCountEvent > event)=0
int getWeekDay() const
Definition: dateTime.cpp:798
shared_ptr< contentHandler > clone() const
Return a copy of this object.
Definition: fileContentHandler.cpp:70
fileInfo()
Definition: fileAttachment.cpp:182
Retrieve attachment information from message parts.
Definition: attachmentHelper.hpp:40
const std::map< string, string > & getParams() const
Return the parameters of the URL (read-only).
Definition: url.cpp:394
std::vector< shared_ptr< certificate > > m_certs
Definition: certificateChain.hpp:69
shared_ptr< component > clone() const
Clone this component.
Definition: parameter.cpp:62
@ TYPE_CREATED
A folder was created.
Definition: events.hpp:211
The operation has been cancelled.
Definition: exception.hpp:564
const string & response() const
Definition: exception.cpp:375
void parseImpl(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: relay.cpp:62
Body section of a MIME part.
Definition: body.hpp:50
Trace information about a relay (basic type).
Definition: relay.hpp:41
Types getType() const
Return the event type.
Definition: events.cpp:108
static void setImportanceHeader(shared_ptr< header > hdr, const Importance i)
Set the importance of a message, given its header.
Definition: importanceHelper.cpp:122
Information about the secured connection used by a service.
Definition: securedConnectionInfos.hpp:43
sendableMDNInfos(const shared_ptr< const message > msg, const mailbox &mbox)
Definition: sendableMDNInfos.cpp:31
Type getType() const
Return the type of service.
Definition: store.hpp:104
void setContentTypeHint(const mediaType &type)
Gives a hint about the kind of data managed by this object.
Definition: streamContentHandler.cpp:222
text & operator=(const component &other)
Definition: text.cpp:108
const string getEpilogText() const
Returns the current epilog text used when generating MIME body parts.
Definition: generationContext.cpp:85
exception * clone() const
Clone this object.
Definition: exception.cpp:582
void setCharsetConversionOptions(const charsetConverterOptions &opts)
Sets the options used currently for charset conversions by the parser and/or the generator.
Definition: context.cpp:67
Types getType() const
Return the value type of the property.
Definition: serviceInfos.cpp:153
static const unsigned char sm_RFC2047EncodeTable[128]
Definition: qpEncoder.hpp:60
exception * clone() const
Clone this object.
Definition: exception.cpp:629
#define R1(v, w, x, y, z, i)
Definition: sha1MessageDigest.cpp:55
static bool isSpaceOrTab(const char_t c)
Definition: parserHelpers.hpp:48
bool operator!=(const word &w) const
Definition: word.cpp:779
path operator/(const path &p) const
Definition: utility/path.cpp:58
Inherit from this class to indicate the subclass is not copyable, ie.
Definition: base.hpp:239
virtual void stop(const size_t total)=0
Called at the end of the operation.
shared_ptr< socketFactory > getSocketFactory()
Return the factory used to create socket objects for this service.
Definition: service.cpp:133
const char *const ATTACHMENT
Definition: constants.cpp:90
open_file_error(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:197
propertyProxy(const string &name, propertySet *set)
Definition: propertySet.hpp:174
~not_connected()
Definition: exception.cpp:507
~connection_error()
Definition: exception.cpp:358
Modes
Open mode.
Definition: folder.hpp:89
ReferenceType
The ways embedded objects can be referenced.
Definition: htmlTextPart.hpp:67
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: addressList.cpp:77
message()
Definition: message.cpp:35
bool hasSize() const
Test whether the "size" parameter is set.
Definition: contentDispositionField.cpp:135
static string quote(const string &str, const string &escapeSpecialChars, const string &escapeChar)
Quotes the specified string.
Definition: stringUtils.cpp:221
A class to manage timeouts in messaging services.
Definition: timeoutHandler.hpp:46
std::vector< component > list
Definition: utility/path.hpp:46