static shared_ptr< IMAPCommand > LIST(const string &refName, const string &mailboxName)
Definition: IMAPCommand.cpp:88
~invalid_property_type()
Definition: exception.cpp:268
static shared_ptr< IMAPCommand > NOOP()
Definition: IMAPCommand.cpp:349
bool operator==(const contentDisposition &value) const
Definition: contentDisposition.cpp:82
Bad argument was passed to the function.
Definition: exception.hpp:296
messageSet addMessage(shared_ptr< vmime::message > msg, const int flags=-1, vmime::datetime *date=NULL, utility::progressListener *progress=NULL)
Add a message to this folder.
Definition: IMAPFolder.cpp:1047
void send(const mailbox &expeditor, const mailboxList &recipients, utility::inputStream &is, const size_t size, utility::progressListener *progress=NULL, const mailbox &sender=mailbox())
Send a message over this transport service.
Definition: SMTPTransport.cpp:299
exception * clone() const
Clone this object.
Definition: exception.cpp:212
virtual ~object()
Definition: object.cpp:48
shared_ptr< contentHandler > clone() const
Return a copy of this object.
Definition: IMAPMessagePartContentHandler.cpp:52
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
int getMode() const
Return the mode in which the folder has been open.
Definition: IMAPFolder.cpp:92
shared_ptr< SASLMechanism > getMechanism()
Return the mechanism used for this session.
Definition: SASLSession.cpp:98
void setLanguage(const string &lang)
Set the language used in this word (optional).
Definition: word.cpp:837
serviceInfos::property PROPERTY_OPTIONS_SASL_FALLBACK
Definition: POP3ServiceInfos.hpp:58
Top-level content type.
Definition: fetchAttributes.hpp:55
void removeMailbox(shared_ptr< mailbox > mbox)
Remove the specified mailbox from the list.
Definition: mailboxGroup.cpp:297
Definition: SMTPServiceInfos.hpp:51
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
Virtual folder containing all messages which are marked in some way as "important" or "flagged".
Definition: folderAttributes.hpp:76
const string getHost() const
Return the host to which the service is connected.
Definition: TLSSecuredConnectionInfos.cpp:48
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
const string getText() const
Returns the full text of the command, including command name and parameters (if any).
Definition: SMTPCommandSet.cpp:112
friend class IMAPFolder
Definition: IMAPMessage.hpp:55
shared_ptr< tracerFactory > getTracerFactory()
Definition: service.cpp:145
stringContentHandler()
Definition: stringContentHandler.cpp:35
messageRange * clone() const
Clones this message range.
Definition: messageSet.cpp:141
serviceInfos::property PROPERTY_OPTIONS_SASL
Definition: POP3ServiceInfos.hpp:57
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
Definition: dateTime.hpp:134
size_t getBodyParsedOffset() const
Definition: maildirMessagePart.cpp:138
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
shared_ptr< const messagePart > getPartAt(const size_t x) const
Return the part at the specified position (first part is at position 0).
Definition: maildirMessageStructure.cpp:68
std::ostream & operator<<(std::ostream &os, const SMTPResponse::enhancedStatusCode &code)
Definition: SMTPResponse.cpp:330
sendmailTransport(shared_ptr< session > sess, shared_ptr< security::authenticator > auth)
Definition: sendmailTransport.cpp:61
GenericCipherSuite
Predefined generic cipher suites (work with all TLS libraries).
Definition: TLSProperties.hpp:53
void extract(utility::outputStream &os, utility::progressListener *progress=NULL) const
Extract the contents into the specified stream.
Definition: IMAPMessagePartContentHandler.cpp:129
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
const serviceInfos & getInfos() const
Return information about this service.
Definition: IMAPSStore.cpp:67
void setEmail(const emailAddress &email)
Set the email of the mailbox.
Definition: mailbox.cpp:498
const char *const CONTENT_LOCATION
Definition: constants.cpp:184
POP3 folder implementation.
Definition: POP3Folder.hpp:54
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
shared_ptr< folder > getParent()
Return a new folder object referencing the parent folder of this folder.
Definition: POP3Folder.cpp:521
virtual void traceSendBytes(const size_t count, const string &state="")
Trace raw bytes which have been sent.
Definition: tracer.cpp:54
const mediaType & getType() const
Return the media-type of the content in this part.
Definition: maildirMessagePart.cpp:90
context(shared_ptr< maildirStore > store)
Definition: maildirFormat.cpp:53
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
~unsupportedCertificateTypeException()
Definition: unsupportedCertificateTypeException.cpp:45
virtual ~stream()
Definition: stream.hpp:47
void setSASLMechanism(shared_ptr< SASLMechanism > mech)
Set the SASL mechanism which has been selected for the SASL authentication process.
Definition: defaultSASLAuthenticator.cpp:141
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
static const serviceInfos & getInfosInstance()
Definition: POP3Store.cpp:214
const vmime::encoding getEncoding() const
Return the encoding used for data in this embedded object.
Definition: htmlTextPart.cpp:456
const string getPeerAddress() const
Return the address of peer this socket is connected to.
Definition: SASLSocket.cpp:93
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:404
size_t getNumber() const
Return the sequence number of this message.
Definition: POP3Message.cpp:76
virtual shared_ptr< security::authenticator > getAuthenticator()
Definition: SMTPConnection.cpp:637
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
std::vector< shared_ptr< folder > > getFolders(const bool recursive=false)
Get the list of all sub-folders in this folder.
Definition: POP3Folder.cpp:295
serviceInfos::property PROPERTY_AUTH_PASSWORD
Definition: SMTPServiceInfos.hpp:65
Thrown when a certificate is of unsupported format.
Definition: unsupportedCertificateTypeException.hpp:45
void parseImpl(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: mailboxList.cpp:180
shared_ptr< SASLSession > getSASLSession() const
Definition: defaultSASLAuthenticator.cpp:135
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
exception * clone() const
Clone this object.
Definition: certificateIssuerVerificationException.cpp:44
shared_ptr< component > clone() const
Clone this component.
Definition: disposition.cpp:47
const char *const SENDER
Definition: constants.cpp:166
int getFlags() const
Return the flags of this message.
Definition: POP3Message.cpp:103
path & operator=(const path &other)
Definition: path.cpp:102
Structure of a MIME part/message.
Definition: net/message.hpp:129
POP3FolderStatus()
Definition: POP3FolderStatus.cpp:38
A class to create 'tracer' objects.
Definition: tracer.hpp:86
static shared_ptr< IMAPCommand > AUTHENTICATE(const string &mechName)
Definition: IMAPCommand.cpp:66
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
ResponseCode getCode() const
Return the POP3 response code.
Definition: POP3Response.cpp:151
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
const serviceInfos & getInfos() const
Return information about this service.
Definition: SMTPTransport.cpp:396
exception * clone() const
Clone this object.
Definition: exception.cpp:284
const string getText() const
Return the POP3 response text (first line).
Definition: POP3Response.cpp:157
exception * clone() const
Clone this object.
Definition: certificateException.cpp:55
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
IMAPCommand(const string &text, const string &traceText)
Definition: IMAPCommand.cpp:43
size_t getLength() const
Returns the actual length of data.
Definition: IMAPMessagePartContentHandler.cpp:168
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
exception * clone() const
Clone this object.
Definition: SMTPExceptions.cpp:107
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
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
MIME structure (body parts).
Definition: fetchAttributes.hpp:54
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
Information about IMAP service.
Definition: IMAPServiceInfos.hpp:45
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
DigestAlgorithm
Supported digest algorithms (used for fingerprint).
Definition: X509Certificate.hpp:64
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
Holds the status of a POP3 folder.
Definition: POP3FolderStatus.hpp:45
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
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
friend class maildirFolder
Definition: maildirStore.hpp:59
const char *const FINAL_RECIPIENT
Definition: constants.cpp:200
serviceInfos::property PROPERTY_CONNECTION_TLS_REQUIRED
Definition: IMAPServiceInfos.hpp:65
const char *const CP_857
Definition: constants.cpp:119
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
maildirMessagePart(shared_ptr< maildirMessagePart > parent, const size_t number, const bodyPart &part)
Definition: maildirMessagePart.cpp:39
Identity certificate for a peer.
Definition: certificate.hpp:38
SMTPConnection(shared_ptr< SMTPTransport > transport, shared_ptr< security::authenticator > auth)
Definition: SMTPConnection.cpp:67
static shared_ptr< IMAPCommand > SELECT(const bool readOnly, const string &mailboxName, const std::vector< string > ¶ms)
Definition: IMAPCommand.cpp:101
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
~SASLContext()
Definition: SASLContext.cpp:59
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
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
virtual const string getText() const
Returns the full text of the command, including command name and parameters (if any).
Definition: IMAPCommand.cpp:387
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
const bool m_isIMAPS
Definition: IMAPStore.hpp:106
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
const string getPassword() const
Return the password of the authentication identity.
Definition: defaultSASLAuthenticator.cpp:86
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
virtual const string getText() const
Returns the full text of the command, including command name and parameters (if any).
Definition: POP3Command.cpp:236
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
~builtinSASLMechanism()
Definition: builtinSASLMechanism.cpp:54
Definition: dateTime.hpp:146
void setX509RootCAs(const std::vector< shared_ptr< X509Certificate > > &caCerts)
Sets the X.509 root CAs used for certificate verification.
Definition: defaultCertificateVerifier.cpp:160
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
serviceInfos::property PROPERTY_CONNECTION_TLS
Definition: SMTPServiceInfos.hpp:68
const char *const ISO8859_13
Definition: constants.cpp:107
~maildirMessagePart()
Definition: maildirMessagePart.cpp:54
~open_file_error()
Definition: exception.cpp:196
serviceInfos::property PROPERTY_SERVER_ADDRESS
Definition: SMTPServiceInfos.hpp:72
~plainTextPart()
Definition: plainTextPart.cpp:43
Can create folders.
Definition: store.hpp:86
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
SMTP Command error: a SMTP command failed.
Definition: SMTPExceptions.hpp:48
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
shared_ptr< vmime::message > getParsedMessage()
Get the RFC-822 message for this abstract message.
Definition: maildirMessage.cpp:356
size_t getDecodedSize(const size_t n) const
Return the encoded size for the specified input (encoded) size.
Definition: uuEncoder.cpp:335
serviceInfos::property PROPERTY_SERVER_PORT
Definition: SMTPServiceInfos.hpp:73
static shared_ptr< IMAPCommand > STORE(const messageSet &msgs, const int mode, const std::vector< string > &flags)
Definition: IMAPCommand.cpp:236
weak_ptr< net::service > getService() const
Definition: defaultSASLAuthenticator.cpp:123
An IMAP command that will be sent to the server.
Definition: IMAPCommand.hpp:51
serviceInfos::property PROPERTY_BINPATH
Definition: sendmailServiceInfos.hpp:53
static shared_ptr< SMTPCommand > MAIL(const mailbox &mbox, const bool utf8)
Definition: SMTPCommand.cpp:102
Interface for connecting to servers.
Definition: socket.hpp:47
const char *const ISO8859_14
Definition: constants.cpp:108
Can set flags on messages.
Definition: store.hpp:92
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)
shared_ptr< const store > getStore() const
Return a reference to the store to which this folder belongs.
Definition: IMAPFolder.cpp:954
virtual shared_ptr< tracer > getTracer()
Definition: SMTPConnection.cpp:625
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
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
shared_ptr< certificate > getCertificate()
Returns the certificate on which the problem occured.
Definition: certificateException.cpp:67
Information about maildir service.
Definition: maildirServiceInfos.hpp:45
serviceInfos::property PROPERTY_SERVER_ROOTPATH
Definition: maildirServiceInfos.hpp:53
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
void extract(utility::outputStream &os, utility::progressListener *progress=NULL, const size_t start=0, const size_t length=-1, const bool peek=false) const
Extract the whole message data (header + contents).
Definition: POP3Message.cpp:136
Holds the status of an IMAP folder.
Definition: IMAPFolderStatus.hpp:47
bool isNumberSet() const
Returns whether this set references messages by their sequence number.
Definition: messageSet.cpp:372
bool isComplete() const
Check whether authentication has completed.
Definition: builtinSASLMechanism.cpp:117
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
size_t getSize() const
Return the size of the message (must fetch before).
Definition: IMAPMessage.cpp:156
bool operator!=(const charset &value) const
Definition: charset.cpp:168
Definition: IMAPMessageStructure.hpp:47
void destroy()
Delete this folder.
Definition: IMAPFolder.cpp:403
SASL XOAUTH2 mechanism, used by GMail.
Definition: XOAuth2SASLMechanism.hpp:47
header & getOrCreateHeader()
Definition: IMAPMessagePart.cpp:146
authentication_error(const string &response, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:386
Describe a TLS connection between a client and a server.
Definition: TLSSession.hpp:49
Thrown when the current date and time is after the validity period specified in the certificate.
Definition: certificateExpiredException.hpp:46
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
static shared_ptr< IMAPMessageStructure > emptyStructure()
Definition: IMAPMessageStructure.cpp:81
IMAP message implementation.
Definition: IMAPMessage.hpp:51
size_t encode(utility::inputStream &in, utility::outputStream &out, utility::progressListener *progress=NULL)
Encode data.
Definition: b64Encoder.cpp:78
mailboxList()
Definition: mailboxList.cpp:33
POP3Command(const string &text, const string &traceText)
Definition: POP3Command.cpp:45
const std::vector< string > getHeaderFields() const
Returns a list of header fields to fetch.
Definition: fetchAttributes.cpp:85
Generate both RFC-2047- and RFC-2231-encoded values.
Definition: generationContext.hpp:117
shared_ptr< const header > getHeader() const
Return a reference to the header fields of the message (must fetch before).
Definition: maildirMessage.cpp:126
bool isSecuredConnection() const
Definition: POP3Connection.cpp:664
void noop()
Do nothing but ensure the server do not disconnect (for example, this can reset the auto-logout timer...
Definition: sendmailTransport.cpp:132
size_t getBlockSize() const
Return the preferred maximum block size when reading from or writing to this stream.
Definition: SASLSocket.cpp:81
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
bool isValidFolderName(const folder::path::component &name) const
Test whether the specified folder name is a syntactically a valid name.
Definition: IMAPStore.cpp:109
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
serviceInfos::property PROPERTY_OPTIONS_CHUNKING
Definition: SMTPServiceInfos.hpp:61
Information about a registered service.
Definition: serviceFactory.hpp:73
Just fold lines, don't encode them.
Definition: text.hpp:196
void sendRaw(const byte_t *buffer, const size_t count)
Send raw data to the socket.
Definition: SASLSocket.cpp:206
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
A SMTP command, as sent to server.
Definition: SMTPCommand.hpp:57
virtual void traceReceiveBytes(const size_t count, const string &state="")
Trace raw bytes which have been received.
Definition: tracer.cpp:40
void deleteMessages(const messageSet &msgs)
Remove one or more messages from this folder.
Definition: IMAPFolder.cpp:988
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
static shared_ptr< POP3Command > CAPA()
Definition: POP3Command.cpp:52
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
bool isConnected() const
Test whether this service is connected.
Definition: sendmailTransport.cpp:99
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
defaultSASLAuthenticator()
Definition: defaultSASLAuthenticator.cpp:44
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
static shared_ptr< IMAPCommand > createCommand(const string &text, const string &traceText="")
Creates a new IMAP command with the specified text.
Definition: IMAPCommand.cpp:378
Definition: maildirServiceInfos.hpp:51
Definition: serviceInfos.hpp:131
outputStreamByteArrayAdapter(byteArray &array)
Definition: outputStreamByteArrayAdapter.cpp:31
const serviceInfos & getInfos() const
Return information about this service.
Definition: IMAPStore.cpp:252
unsigned long length_type
Definition: file.hpp:102
Message flags.
Definition: fetchAttributes.hpp:56
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
const serviceInfos & getInfos() const
Return information about this service.
Definition: sendmailTransport.cpp:218
static shared_ptr< IMAPCommand > LOGIN(const string &username, const string &password)
Definition: IMAPCommand.cpp:50
shared_ptr< const contentHandler > getPlainText() const
Definition: htmlTextPart.cpp:345
bool evaluateChallenge(const byte_t *challenge, const size_t challengeLen, byte_t **response, size_t *responseLen)
Perform one step of SASL authentication.
Definition: SASLSession.cpp:111
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
const propertySet & getResults() const
Return the results returned by this encoder.
Definition: encoder.cpp:55
serviceInfos::property PROPERTY_SERVER_PORT
Definition: POP3ServiceInfos.hpp:71
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
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
serviceInfos::property PROPERTY_AUTH_USERNAME
Definition: POP3ServiceInfos.hpp:62
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
int getCapabilities() const
Return the features supported by this service.
Definition: maildirStore.cpp:235
shared_ptr< bodyPart > getPartAt(const size_t pos)
Return the part at the specified position.
Definition: body.cpp:1014
static shared_ptr< IMAPCommand > STARTTLS()
Definition: IMAPCommand.cpp:335
~partial_fetch_not_supported()
Definition: exception.cpp:590
virtual void send(shared_ptr< IMAPConnection > conn)
Sends this command over the specified connection.
Definition: IMAPCommand.cpp:399
virtual size_t getBlockSize()
Return the preferred maximum block size when reading from or writing to this stream.
Definition: filteredStream.cpp:43
IMAPS store service.
Definition: IMAPSStore.hpp:45
responseLine(const int code, const string &text, const enhancedStatusCode &enhCode)
Definition: SMTPResponse.cpp:272
size_t getRecentCount() const
Returns the the number of messages with the Recent flag set.
Definition: IMAPFolderStatus.cpp:73
~defaultAuthenticator()
Definition: defaultAuthenticator.cpp:46
void decode(shared_ptr< SASLSession > sess, const byte_t *input, const size_t inputLen, byte_t **output, size_t *outputLen)
Decode data according to negotiated SASL mechanism.
Definition: builtinSASLMechanism.cpp:164
const string getAnonymousToken() const
Return the anonymous token (usually, this is the user's email address).
Definition: defaultSASLAuthenticator.cpp:104
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: bodyPart.cpp:59
void fetchPartHeader(shared_ptr< messagePart > p)
Fetch the MIME header for the specified part.
Definition: IMAPMessage.cpp:240
~POP3Folder()
Definition: POP3Folder.cpp:57
~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 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 shared_ptr< X509Certificate > import(utility::inputStream &is)
Imports a DER or PEM encoded X.509 certificate.
const responseLine getLastLine() const
Return the last line in the response.
Definition: SMTPResponse.cpp:254
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
bool isMechanismSupported(const string &name) const
Test whether an authentication mechanism is supported.
Definition: SASLMechanismFactory.cpp:127
void setUnseenCount(const size_t unseen)
Definition: POP3FolderStatus.cpp:71
void setContentTypeHint(const mediaType &type)
Gives a hint about the kind of data managed by this object.
Definition: IMAPMessagePartContentHandler.cpp:198
static unsigned int getProcess()
Return the current process number (may be user to build "random" strings).
Definition: random.cpp:63
const string getPropertyPrefix() const
Return the property prefix used by this service.
Definition: SMTPServiceInfos.cpp:44
bad_field_value_type(const string &fieldName, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:98
Socket error.
Definition: exception.hpp:366
An SASL client session.
Definition: SASLSession.hpp:52
bool isIMAPS() const
Definition: IMAPStore.cpp:133
shared_ptr< const security::cert::certificateChain > getPeerCertificates() const
Return the peer's certificate (chain) as sent by the peer.
Definition: TLSSecuredConnectionInfos.cpp:60
void enumerate(messageSetEnumerator &en) const
Enumerates this range with the specified enumerator.
Definition: messageSet.cpp:135
Use for body text.
Definition: encoding.hpp:51
POP3 store service.
Definition: POP3Store.hpp:55
Partial fetch is not supported by the underlying protocol.
Definition: exception.hpp:708
void close(const bool expunge)
Close this folder.
Definition: IMAPFolder.cpp:277
serviceInfos::property PROPERTY_AUTH_USERNAME
Definition: IMAPServiceInfos.hpp:60
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
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
~IMAPMessage()
Definition: IMAPMessage.cpp:116
PredefinedFetchAttributes
Predefined attributes that can be fetched.
Definition: fetchAttributes.hpp:51
mediaType m_type
Media type (eg.
Definition: defaultAttachment.hpp:68
Information about SMTP service.
Definition: SMTPServiceInfos.hpp:45
shared_ptr< connectionInfos > getConnectionInfos() const
Definition: SMTPConnection.cpp:601
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
serviceInfos::property PROPERTY_AUTH_USERNAME
Definition: SMTPServiceInfos.hpp:64
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 folder::path getFullPath() const
Return the fully qualified path name of this folder.
Definition: POP3Folder.cpp:114
friend class IMAPFolder
Definition: IMAPStore.hpp:57
const char * getClass() const
Definition: events.cpp:118
#define R0(v, w, x, y, z, i)
Definition: sha1MessageDigest.cpp:54
Can extract a specific part of the message.
Definition: store.hpp:93
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
weak_ptr< const maildirMessagePart > getParent() const
Definition: maildirMessagePart.hpp:56
void enumerate(messageSetEnumerator &en) const
Enumerates this range with the specified enumerator.
Definition: messageSet.cpp:91
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
static shared_ptr< POP3Command > USER(const string &username)
Definition: POP3Command.cpp:106
operation_not_supported(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:460
POP3Connection(shared_ptr< POP3Store > store, shared_ptr< security::authenticator > auth)
Definition: POP3Connection.cpp:66
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
exception * clone() const
Clone this object.
Definition: SMTPExceptions.cpp:80
void insertMessageIdBefore(shared_ptr< messageId > beforeMid, shared_ptr< messageId > mid)
Insert a new message-id before the specified message-id.
Definition: messageIdSequence.cpp:144
const addressList & getCopyRecipients() const
Return the copy recipients of the message (Cc:).
Definition: messageBuilder.cpp:235
shared_ptr< SASLMechanism > suggestMechanism(const std::vector< shared_ptr< SASLMechanism > > &mechs)
Suggests an SASL mechanism among a set of mechanisms supported by the server.
Definition: SASLContext.cpp:89
word & operator=(const word &w)
Definition: word.cpp:745
const string & getName() const
Return the name of the property.
Definition: propertySet.cpp:272
~SASLSocket()
Definition: SASLSocket.cpp:56
~SMTPCommandError()
Definition: SMTPExceptions.cpp:63
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
const string & getBuffer() const
Return the raw data for this encoded word.
Definition: word.cpp:843
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
static shared_ptr< POP3Response > readMultilineResponse(shared_ptr< POP3Connection > conn)
Receive and parse a multiline POP3 response from the specified connection.
Definition: POP3Response.cpp:76
An authenticator that is capable of providing information for XOAuth2 authentication mechanisms (user...
Definition: XOAuth2SASLAuthenticator.hpp:46
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
size_t getSize() const
Return the size of the message (must fetch before).
Definition: maildirMessage.cpp:93
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
virtual ~POP3Connection()
Definition: POP3Connection.cpp:77
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
void close(const bool expunge)
Close this folder.
Definition: POP3Folder.cpp:162
There is no property with that name in the set.
Definition: exception.hpp:266
int getYear() const
Definition: dateTime.cpp:791
bool isEmpty() const
Returns 'true' if there is no data set.
Definition: streamContentHandler.cpp:194
ResponseCode
Possible response codes.
Definition: POP3Response.hpp:64
Encoding
Available encodings for RFC-2047.
Definition: wordEncoder.hpp:52
Definition: serviceInfos.hpp:120
exception * clone() const
Clone this object.
Definition: unsupportedCertificateTypeException.cpp:50
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
shared_ptr< const messageStructure > getStructure() const
Return the MIME structure of the message (must fetch before).
Definition: maildirMessage.cpp:108
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
shared_ptr< folderStatus > clone() const
Clones this object.
Definition: IMAPFolderStatus.cpp:97
const string getPropertyPrefix() const
Return the property prefix used by this service.
Definition: sendmailServiceInfos.cpp:43
size_t getSize() const
Return the size of the message (must fetch before).
Definition: POP3Message.cpp:88
shared_ptr< folder > getDefaultFolder()
Return the default folder.
Definition: maildirStore.cpp:92
size_t getUnseenCount() const
Returns the number of unseen messages in the folder.
Definition: IMAPFolderStatus.cpp:67
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 messageStructure > getStructure() const
Return the structure of this part.
Definition: maildirMessagePart.cpp:72
static shared_ptr< SMTPCommand > QUIT()
Definition: SMTPCommand.cpp:196
shared_ptr< net::socket > getSecuredSocket(shared_ptr< net::socket > sok)
Return a socket in which transmitted data is integrity and/or privacy protected, depending on the QOP...
Definition: SASLSession.cpp:119
shared_ptr< const object > getPart() const
Return the part in which the attachment has been found.
Definition: defaultAttachment.cpp:134
Low encryption cipher suites (>= 64 bits).
Definition: TLSProperties.hpp:57
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
static shared_ptr< IMAPCommand > CREATE(const string &mailboxName, const std::vector< string > ¶ms)
Definition: IMAPCommand.cpp:154
Importance
Different levels of importance.
Definition: importanceHelper.hpp:47
bool exists()
Test whether this folder exists.
Definition: POP3Folder.cpp:206
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
const string getProtocolName() const
Return the protocol name of this service.
Definition: POP3Store.cpp:65
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
Mode
Definition: XOAuth2SASLAuthenticator.hpp:50
qpEncoder()
Definition: qpEncoder.cpp:33
A SMTP response, as sent by the server.
Definition: SMTPResponse.hpp:52
size_t getMessageCount()
Return the number of messages in this folder.
Definition: IMAPFolder.cpp:621
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
shared_ptr< SASLMechanism > getSASLMechanism() const
Definition: defaultSASLAuthenticator.cpp:147
An adapter class for string output.
Definition: outputStreamStringAdapter.hpp:38
void disconnect()
Disconnect from service.
Definition: SMTPTransport.cpp:128
~X509Certificate()
Definition: X509Certificate.cpp:41
Base class for all types of attachment.
Definition: attachment.hpp:44
operation_cancelled(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:484
void connect(const string &address, const port_t port)
Connect to the specified address and port.
Definition: SASLSocket.cpp:63
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
void receive(string &buffer)
Receive text data from the socket.
Definition: SASLSocket.cpp:129
IMAPMessageStructure()
Definition: IMAPMessageStructure.cpp:39
const std::vector< shared_ptr< const registeredEncoder > > getEncoderList() const
Return a list of all registered encoders.
Definition: encoderFactory.cpp:105
bool isFinished() const
Tests whether all commands have been sent.
Definition: SMTPCommandSet.cpp:142
void flush()
Flush this output stream and forces any buffered output bytes to be written out to the stream.
Definition: SMTPChunkingOutputStreamAdapter.cpp:142
Encode/decode data in different encodings.
Definition: encoder.hpp:42
void generate(utility::outputStream &os, const vmime::encoding &enc, const size_t maxLineLength=lineLengthLimits::infinite) const
Output the contents into the specified stream.
Definition: IMAPMessagePartContentHandler.cpp:62
shared_ptr< folder > getFolder(const folder::path &path)
Return the folder specified by the path.
Definition: maildirStore.cpp:103
const std::vector< serviceInfos::property > getAvailableProperties() const
Return a list of available properties for this service.
Definition: maildirServiceInfos.cpp:60
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
unsigned short subject
Source of anomaly.
Definition: SMTPResponse.hpp:69
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
~XOAuth2SASLMechanism()
Definition: XOAuth2SASLMechanism.cpp:51
bool isSecuredConnection() const
Check whether the connection is secured.
Definition: IMAPStore.cpp:139
bool hasInitialResponse() const
Determine if this mechanism has an optional initial response.
Definition: builtinSASLMechanism.cpp:123
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
std::vector< shared_ptr< message > > getAndFetchMessages(const messageSet &msgs, const fetchAttributes &attribs)
Get new references to messages in this folder, given either their sequence numbers or UIDs,...
Definition: POP3Folder.cpp:501
static const string unquote(const string &str)
Unquote the specified string and transform escaped characters.
Definition: stringUtils.cpp:178
const std::vector< shared_ptr< const bodyPart > > getPartList() const
Return the part list.
Definition: body.cpp:1026
~operation_timed_out()
Definition: exception.cpp:471
serviceInfos::property PROPERTY_OPTIONS_APOP
Definition: POP3ServiceInfos.hpp:54
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
Medium encryption cipher suites (>= 128 bits).
Definition: TLSProperties.hpp:56
htmlTextPart()
Definition: htmlTextPart.cpp:41
const std::vector< shared_ptr< const messageId > > getMessageIdList() const
Return the message-id list.
Definition: messageIdSequence.cpp:230
void encode(shared_ptr< SASLSession > sess, const byte_t *input, const size_t inputLen, byte_t **output, size_t *outputLen)
Encode data according to negotiated SASL mechanism.
Definition: builtinSASLMechanism.cpp:131
bool isOpen() const
Test whether this folder is open.
Definition: IMAPFolder.cpp:517
bool isEmpty() const
Returns 'true' if there is no data set.
Definition: stringContentHandler.cpp:200
virtual ~messageStructure()
Definition: net/message.hpp:138
serviceInfos::property PROPERTY_OPTIONS_NEEDAUTH
Definition: SMTPServiceInfos.hpp:54
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
const string getProtocolName() const
Return the protocol name of this service.
Definition: sendmailTransport.cpp:81
static shared_ptr< IMAPCommand > DELETE(const string &mailboxName)
Definition: IMAPCommand.cpp:178
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
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
Current state of response parser.
Definition: SMTPResponse.hpp:57
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
int getCode() const
Return the SMTP response code.
Definition: SMTPResponse.cpp:63
const propertySet & getProperties() const
Properties for the session and for the services.
Definition: session.cpp:145
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
size_t getMessageCount() const
Returns the total number of messages in the folder.
Definition: POP3FolderStatus.cpp:53
bool isBuffered() const
Indicates whether the extract() method can be called multiple times.
Definition: IMAPMessagePartContentHandler.cpp:192
port_t getPort() const
Return the port to which the service is connected.
Definition: TLSSecuredConnectionInfos.cpp:54
shared_ptr< folder > getRootFolder()
Return the root folder.
Definition: IMAPStore.cpp:73
contentDisposition & operator=(const contentDisposition &other)
Definition: contentDisposition.cpp:108
A POP3 command that will be sent to the server.
Definition: POP3Command.hpp:53
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
void decode(shared_ptr< SASLSession > sess, const byte_t *input, const size_t inputLen, byte_t **output, size_t *outputLen)
Decode data according to negotiated SASL mechanism.
Definition: XOAuth2SASLMechanism.cpp:124
shared_ptr< net::tracer > getTracer()
Return the tracer used by this socket.
Definition: SASLSocket.cpp:111
const enhancedStatusCode getEnhancedCode() const
Return the SMTP enhanced status code, if available.
Definition: SMTPResponse.cpp:79
const char *const CP_861
Definition: constants.cpp:122
size_t getBlockSize()
Return the preferred maximum block size when reading from or writing to this stream.
Definition: SMTPChunkingOutputStreamAdapter.cpp:155
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: emailAddress.cpp:648
certificateIssuerVerificationException()
Constructs a certificateIssuerVerificationException with no detail message.
Definition: certificateIssuerVerificationException.cpp:38
virtual shared_ptr< const messageStructure > getStructure() const =0
Return the structure of this part.
Definition: dateTime.hpp:148
#define GET_PROPERTY(type, prop)
Definition: SMTPConnection.cpp:53
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 isSuccess() const
Returns whether the response is successful ("OK").
Definition: POP3Response.cpp:139
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
unsigned int getStatus() const
Return the current status of this socket.
Definition: SASLSocket.cpp:254
Definition: maildirMessageStructure.hpp:45
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
SMTPServiceInfos(const bool smtps)
Definition: SMTPServiceInfos.cpp:38
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
const string getName() const
Return the name of this mechanism.
Definition: XOAuth2SASLMechanism.cpp:56
Definition: dateTime.hpp:153
void setMessageCount(const size_t count)
Definition: POP3FolderStatus.cpp:65
shared_ptr< POP3Connection > getConnection()
Definition: POP3Store.cpp:150
void removeAllProperties()
Remove all properties from the list.
Definition: propertySet.cpp:74
size_t getUnseenCount() const
Returns the number of unseen messages in the folder.
Definition: maildirFolderStatus.cpp:59
static shared_ptr< IMAPCommand > EXPUNGE()
Definition: IMAPCommand.cpp:356
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 sendRequest(shared_ptr< SMTPCommand > cmd)
Definition: SMTPConnection.cpp:572
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
static Importance getImportanceHeader(shared_ptr< const header > hdr)
Return the importance of a message, given its header.
Definition: importanceHelper.cpp:58
bool isRoot() const
Test whether this path is the root (alias for isEmpty()).
Definition: utility/path.cpp:155
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
serviceInfos::property PROPERTY_OPTIONS_SASL_FALLBACK
Definition: IMAPServiceInfos.hpp:56
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
static shared_ptr< IMAPCommand > COPY(const messageSet &msgs, const string &mailboxName)
Definition: IMAPCommand.cpp:300
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 ~SMTPConnection()
Definition: SMTPConnection.cpp:78
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
void setCertificate(shared_ptr< certificate > cert)
Sets the certificate on which the problem occured.
Definition: certificateException.cpp:61
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
static shared_ptr< SMTPCommand > DATA()
Definition: SMTPCommand.cpp:168
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
b64Encoder()
Definition: b64Encoder.cpp:33
void setUnseenCount(const size_t unseen)
Definition: maildirFolderStatus.cpp:71
Definition: serviceInfos.hpp:121
File list iterator (see file::getFiles).
Definition: file.hpp:47
static const serviceInfos & getInfosInstance()
Definition: SMTPSTransport.cpp:61
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
Definition: sendmailServiceInfos.hpp:51
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 std::vector< shared_ptr< const address > > getAddressList() const
Return the address list.
Definition: addressList.cpp:243
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:153
const char *const IDNA
Definition: constants.cpp:157
Definition: dateTime.hpp:151
shared_ptr< IMAPConnection > connection()
Definition: IMAPStore.cpp:208
const std::vector< string > & getWithList() const
Definition: relay.cpp:337
static shared_ptr< POP3Command > UIDL()
Definition: POP3Command.cpp:161
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
enhancedStatusCode()
Definition: SMTPResponse.cpp:318
textPartFactory()
Definition: textPartFactory.cpp:36
bool isExpunged() const
Check whether this message has been expunged (ie: definitively deleted) and does not exist in the fol...
Definition: IMAPMessage.cpp:165
void fetchMessage(shared_ptr< message > msg, const fetchAttributes &options)
Fetch objects for the specified message.
Definition: IMAPFolder.cpp:840
const char *const CP_866
Definition: constants.cpp:127
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
bool exists()
Test whether this folder exists.
Definition: IMAPFolder.cpp:438
void update(const byte_t b)
Updates the digest using the specified byte.
Definition: sha1MessageDigest.cpp:86
~certificateException()
Definition: certificateException.cpp:50
std::vector< shared_ptr< message > > getMessages(const messageSet &msgs)
Get new references to messages in this folder, given either their sequence numbers or UIDs.
Definition: IMAPFolder.cpp:535
byte_t m_buffer[64]
Definition: sha1MessageDigest.hpp:66
serverIdentityException()
Constructs a serverIdentityException with no detail message.
Definition: serverIdentityException.cpp:38
void insertMailboxAfter(shared_ptr< mailbox > afterMailbox, shared_ptr< mailbox > mbox)
Insert a new mailbox after the specified mailbox.
Definition: mailboxGroup.cpp:276
const std::vector< shared_ptr< const attachment > > getAttachmentList() const
Return the list of attachments.
Definition: messageBuilder.cpp:307
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
void setMessageFlags(const messageSet &msgs, const int flags, const int mode=message::FLAG_MODE_SET)
Change the flags for one or more messages in this folder.
Definition: IMAPFolder.cpp:1022
~operation_cancelled()
Definition: exception.cpp:483
virtual void disconnect()
Definition: SMTPConnection.cpp:533
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
~sendmailTransport()
Definition: sendmailTransport.cpp:67
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
const folderAttributes getAttributes()
Return the attributes of the folder.
Definition: IMAPFolder.cpp:101
~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
size_t getHeaderParsedLength() const
Definition: maildirMessagePart.cpp:132
maildirStore(shared_ptr< session > sess, shared_ptr< security::authenticator > auth)
Definition: maildirStore.cpp:55
static shared_ptr< POP3Command > TOP(const unsigned long msg, const unsigned long lines)
Definition: POP3Command.cpp:201
size_t getSize() const
Return the size of this part.
Definition: maildirMessagePart.cpp:96
MD5 digest.
Definition: X509Certificate.hpp:66
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
Folder contains messages that are likely important to the user.
Definition: folderAttributes.hpp:83
Capabilities
Store capabilities.
Definition: store.hpp:84
void setParsedBounds(const size_t start, const size_t end)
Definition: component.cpp:224
const addressList & getBlindCopyRecipients() const
Return the blind-copy recipients of the message (Bcc:).
Definition: messageBuilder.cpp:253
const shared_ptr< const header > getHeader() const
Return the header section of this part.
Definition: bodyPart.cpp:108
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
Can delete messages.
Definition: store.hpp:90
const char *const REPORTING_UA
Definition: constants.cpp:201
static SASLMechanismFactory * getInstance()
Definition: SASLMechanismFactory.cpp:64
An interface to implement if you want to be notified of a state of progress by some objects.
Definition: progressListener.hpp:40
shared_ptr< folder > getParent()
Return a new folder object referencing the parent folder of this folder.
Definition: IMAPFolder.cpp:943
Messages have been expunged (renumbering).
Definition: events.hpp:74
static bool isLeapYear(const int year)
Test whether the specified year is a leap year.
Definition: datetimeUtils.cpp:209
bool isConnected() const
Test whether this service is connected.
Definition: SMTPTransport.cpp:98
const props & getProperties() const
Definition: IMAPServiceInfos.cpp:53
shared_ptr< SMTPConnection > getConnection()
Definition: SMTPTransport.cpp:122
Miscellaneous functions related to URLs.
Definition: urlUtils.hpp:39
shared_ptr< folderStatus > clone() const
Clones this object.
Definition: POP3FolderStatus.cpp:77
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 can contain messages.
Definition: folderAttributes.hpp:54
void connect()
Connect to service.
Definition: sendmailTransport.cpp:87
Folder name is invalid.
Definition: exception.hpp:723
bool step(shared_ptr< SASLSession > sess, const byte_t *challenge, const size_t challengeLen, byte_t **response, size_t *responseLen)
Perform one step of SASL authentication.
Definition: XOAuth2SASLMechanism.cpp:63
const propertySet & getProperties() const
Return the properties of the encoder.
Definition: encoder.cpp:43
Definition: POP3Utils.hpp:49
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
vmime_uint32 getUIDNext() const
Returns the UID value that will be assigned to a new message in the folder.
Definition: IMAPFolderStatus.cpp:85
string::const_iterator it_end() const
Definition: stringProxy.hpp:73
shared_ptr< folder > getFolder(const folder::path::component &name)
Get a new reference to a sub-folder in this folder.
Definition: POP3Folder.cpp:284
shared_ptr< contentHandler > clone() const
Return a copy of this object.
Definition: emptyContentHandler.cpp:36
void extractPart(shared_ptr< const messagePart > p, utility::outputStream &os, utility::progressListener *progress=NULL, const size_t start=0, const size_t length=-1, const bool peek=false) const
Extract the specified MIME part of the message (header + contents).
Definition: POP3Message.cpp:169
Holds options for a TLS session.
Definition: TLSProperties.hpp:44
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
size_t sendRawNonBlocking(const byte_t *buffer, const size_t count)
Send raw data to the socket.
Definition: SASLSocket.cpp:228
virtual shared_ptr< POP3Store > getStore()
Definition: POP3Connection.cpp:676
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
SASL-aware authenticator.
Definition: SASLAuthenticator.hpp:53
int char_t
Definition: types.hpp:96
SMTP error: message size exceeds maximum server limits.
Definition: SMTPExceptions.hpp:91
static shared_ptr< SMTPCommand > NOOP()
Definition: SMTPCommand.cpp:189
size_t length() const
Definition: stringProxy.cpp:117
builtinSASLMechanism(shared_ptr< SASLContext > ctx, const string &name)
Definition: builtinSASLMechanism.cpp:48
Definition: IMAPMessagePartContentHandler.hpp:43
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
shared_ptr< maildirFormat > getFormat()
Definition: maildirStore.cpp:204
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
~maildirMessage()
Definition: maildirMessage.cpp:59
const std::vector< serviceInfos::property > getAvailableProperties() const
Return a list of available properties for this service.
Definition: IMAPServiceInfos.cpp:101
maildir store service.
Definition: maildirStore.hpp: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
An element of a SMTP response.
Definition: SMTPResponse.hpp:74
shared_ptr< folder > getFolder(const folder::path::component &name)
Get a new reference to a sub-folder in this folder.
Definition: IMAPFolder.cpp:648
const string getProtocolName() const
Return the protocol name of this service.
Definition: maildirStore.cpp:75
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
void encode(shared_ptr< SASLSession > sess, const byte_t *input, const size_t inputLen, byte_t **output, size_t *outputLen)
Encode data according to negotiated SASL mechanism.
Definition: XOAuth2SASLMechanism.cpp:110
virtual ~fileIterator()
Definition: file.hpp:51
const char *const DISPOSITION_NOTIFICATION_OPTIONS
Definition: constants.cpp:194
std::vector< size_t > getMessageNumbersStartingOnUID(const message::uid &uid)
Return the sequence numbers of messages whose UID equal or greater than the specified UID.
Definition: IMAPFolder.cpp:1385
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
virtual void checkValidity()
Checks that the certificate is currently valid.
Definition: X509Certificate.cpp:46
const props & getProperties() const
Definition: sendmailServiceInfos.cpp:49
exception * clone() const
Clone this object.
Definition: exception.cpp:363
int getSecond() const
Definition: dateTime.cpp:796
int getCapabilities() const
Return the features supported by this service.
Definition: IMAPStore.cpp:227
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
void noop()
Do nothing but ensure the server do not disconnect (for example, this can reset the auto-logout timer...
Definition: SMTPTransport.cpp:138
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
shared_ptr< folder > getDefaultFolder()
Return the default folder.
Definition: IMAPStore.cpp:85
virtual const datetime getActivationDate() const =0
Gets the activation date of this certificate.
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
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
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
const string getProtocolName() const
Return the protocol name of this service.
Definition: POP3SStore.cpp:49
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
const uid getUID() const
Return the unique identifier (UID) of this message in its folder (must fetch before).
Definition: IMAPMessage.cpp:144
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
vmime_uint64 getHighestModSeq() const
Returns the highest modification sequence of all messages in the folder, or 0 if not available for th...
Definition: IMAPFolderStatus.cpp:91
void send(const string &buffer)
Send text data to the socket.
Definition: SASLSocket.cpp:194
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
shared_ptr< folder > getFolder(const folder::path &path)
Return the folder specified by the path.
Definition: IMAPStore.cpp:97
virtual shared_ptr< timeoutHandler > getTimeoutHandler()
Definition: POP3Connection.cpp:700
bool updateFromResponse(const IMAPParser::mailbox_data *resp)
Reads the folder status from the specified IMAP response.
Definition: IMAPFolderStatus.cpp:103
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
bool isExpunged() const
Check whether this message has been expunged (ie: definitively deleted) and does not exist in the fol...
Definition: maildirMessage.cpp:102
void writeImpl(const byte_t *const data, const size_t count)
Write data to the stream.
Definition: SMTPChunkingOutputStreamAdapter.cpp:115
messageBuilder()
Definition: messageBuilder.cpp:34
bool hasModificationDate() const
Check whether the 'modification-date' property is present.
Definition: fileAttachment.cpp:206
Definition: dateTime.hpp:147
exception * clone() const
Clone this object.
Definition: exception.cpp:101
void connect()
Connect to service.
Definition: IMAPStore.cpp:115
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
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
static shared_ptr< SMTPCommand > EHLO(const string &hostname)
Definition: SMTPCommand.cpp:51
size_t decode(utility::inputStream &in, utility::outputStream &out, utility::progressListener *progress=NULL)
Decode data.
Definition: b64Encoder.cpp:194
const std::vector< string > getSupportedMechanisms() const
Return a list of supported mechanisms.
Definition: SASLMechanismFactory.cpp:91
Thrown when the current date and time is before the validity period specified in the certificate.
Definition: certificateNotYetValidException.hpp:46
shared_ptr< folder > getRootFolder()
Return the root folder.
Definition: POP3Store.cpp:82
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 string getHostname() const
Return the local host name of the machine.
Definition: defaultSASLAuthenticator.cpp:98
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
size_t getSize() const
Return the size of this part.
Definition: IMAPMessagePart.cpp:107
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
bool isSecuredConnection() const
Definition: SMTPConnection.cpp:595
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
const props & getProperties() const
Definition: maildirServiceInfos.cpp:49
virtual void disconnect()
Definition: POP3Connection.cpp:186
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
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
static const serviceInfos & getInfosInstance()
Definition: POP3SStore.cpp:61
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
shared_ptr< const session > getSession() const
Return the session object associated with this service instance.
Definition: service.cpp:81
void removeMessageChangedListener(events::messageChangedListener *l)
Definition: folder.cpp:57
no_such_property(const string &name, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:257
static shared_ptr< POP3Command > QUIT()
Definition: POP3Command.cpp:219
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
bool isSecuredConnection() const
Check whether the connection is secured.
Definition: POP3Store.cpp:132
~socket_exception()
Definition: exception.cpp:332
POP3SStore(shared_ptr< session > sess, shared_ptr< security::authenticator > auth)
Definition: POP3SStore.cpp:38
exception * clone() const
Clone this object.
Definition: certificateNotYetValidException.cpp:44
defaultAttachment & operator=(const defaultAttachment &attach)
Definition: defaultAttachment.cpp:68
size_t getNumber() const
Return the part sequence number (index).
Definition: IMAPMessagePart.cpp:113
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
A set of SMTP commands, which may be sent all at once to the server if pipelining is supported.
Definition: SMTPCommandSet.hpp:47
const string getAccessToken() const
Return the optional access token for authentication.
Definition: defaultSASLAuthenticator.cpp:92
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
virtual void send(shared_ptr< POP3Connection > conn)
Sends this command over the specified connection.
Definition: POP3Command.cpp:248
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
void setMessageFlags(const messageSet &msgs, const int flags, const int mode=message::FLAG_MODE_SET)
Change the flags for one or more messages in this folder.
Definition: POP3Folder.cpp:614
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
Folder cannot be open.
Definition: folderAttributes.hpp:62
void setFlags(const int flags, const int mode=FLAG_MODE_SET)
Set the flags of this message.
Definition: IMAPMessage.cpp:544
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
void setFrom(const string &from)
Definition: relay.cpp:271
bool operator==(const path &p) const
Definition: path.cpp:73
shared_ptr< vmime::message > getParsedMessage()
Get the RFC-822 message for this abstract message.
Definition: IMAPMessage.cpp:605
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
static shared_ptr< POP3Command > AUTH(const string &mechName)
Definition: POP3Command.cpp:66
Content encoding (basic type).
Definition: encoding.hpp:44
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
Header fields suitable for use with misc::importanceHelper.
Definition: fetchAttributes.hpp:60
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
shared_ptr< folderStatus > getStatus()
Request folder status without opening it.
Definition: POP3Folder.cpp:664
Information about sendmail service.
Definition: sendmailServiceInfos.hpp:45
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
int getCode() const
Definition: SMTPResponse.cpp:284
shared_ptr< connectionInfos > getConnectionInfos() const
Get information about the connection.
Definition: IMAPStore.cpp:148
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
An SASL client context.
Definition: SASLContext.hpp:47
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
Folder is used to hold draft messages - typically, messages that are being composed but have not yet ...
Definition: folderAttributes.hpp:74
XOAuth2SASLAuthenticator(const Mode mode)
Definition: XOAuth2SASLAuthenticator.cpp:42
size_t getMessageCount() const
Returns the total number of messages in the folder.
Definition: IMAPFolderStatus.cpp:61
virtual ~socket()
Definition: socket.hpp:59
bool isPOP3S() const
Definition: POP3Store.cpp:120
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
IMAPStore(shared_ptr< session > sess, shared_ptr< security::authenticator > auth, const bool secured=false)
Definition: IMAPStore.cpp:47
A MIME part in a message.
Definition: net/message.hpp:53
int getFetchCapabilities() const
Return the list of fetchable objects supported by the underlying protocol (see folder::fetchAttribute...
Definition: IMAPFolder.cpp:934
~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
Folder contains subfolders.
Definition: folderAttributes.hpp:61
void finalize()
Completes the hash computation by performing final operations such as padding.
Definition: sha1MessageDigest.cpp:135
void expunge()
Expunge deleted messages.
Definition: IMAPFolder.cpp:1160
Describes presentation information, as per RFC-2183.
Definition: contentDispositionField.hpp:42
Full RFC-[2]822 header.
Definition: fetchAttributes.hpp:58
const std::vector< serviceInfos::property > getAvailableProperties() const
Return a list of available properties for this service.
Definition: POP3ServiceInfos.cpp:105
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
IMAPFolderStatus()
Definition: IMAPFolderStatus.cpp:38
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
static shared_ptr< POP3Command > RETR(const unsigned long msg)
Definition: POP3Command.cpp:190
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
virtual bool isConnected() const
Definition: SMTPConnection.cpp:589
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 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
static void parseMultiListOrUidlResponse(shared_ptr< POP3Response > response, std::map< size_t, string > &result)
Parse a response of type ([integer] [string] )*.
Definition: POP3Utils.cpp:42
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 open(const int mode, bool failIfModeIsNotAvailable=false)
Open this folder.
Definition: POP3Folder.cpp:120
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
SMTPS transport service.
Definition: SMTPSTransport.hpp:45
~IMAPStore()
Definition: IMAPStore.cpp:53
const string getPropertyPrefix() const
Return the property prefix used by this service.
Definition: IMAPServiceInfos.cpp:44
void fetchPartHeader(shared_ptr< messagePart > p)
Fetch the MIME header for the specified part.
Definition: maildirMessage.cpp:220
void extractPart(shared_ptr< const messagePart > p, utility::outputStream &os, utility::progressListener *progress=NULL, const size_t start=0, const size_t length=-1, const bool peek=false) const
Extract the specified MIME part of the message (header + contents).
Definition: maildirMessage.cpp:163
void writeImpl(const byte_t *const data, const size_t count)
Write data to the stream.
Definition: filteredStream.cpp:152
bool isBuiltinMechanism(const string &name) const
Test whether an authentication mechanism is directly supported by the underlying SASL library.
Definition: SASLMechanismFactory.cpp:133
shared_ptr< SASLMechanism > create(shared_ptr< SASLContext > ctx, const string &name)
Create a mechanism object given its name.
Definition: SASLMechanismFactory.cpp:72
void initStructure(const bodyPart &part)
Definition: maildirMessagePart.cpp:59
void removeMessageCountListener(events::messageCountListener *l)
Definition: folder.cpp:79
void detach()
Definition: stringProxy.cpp:67
shared_ptr< const messageStructure > getStructure() const
Return the MIME structure of the message (must fetch before).
Definition: POP3Message.cpp:114
const size_t npos
Constant value with the greatest possible value for an element of type size_t.
Definition: base.cpp:117
void registerMechanism(const string &name)
Register a mechanism into this factory, so that subsequent calls to create return a valid object for ...
Definition: SASLMechanismFactory.hpp:92
void send(const mailbox &expeditor, const mailboxList &recipients, utility::inputStream &is, const size_t size, utility::progressListener *progress=NULL, const mailbox &sender=mailbox())
Send a message over this transport service.
Definition: sendmailTransport.cpp:139
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
Manage connection to a POP3 server.
Definition: POP3Connection.hpp:64
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
static const serviceInfos & getInfosInstance()
Definition: sendmailTransport.cpp:212
bool waitForRead(const int msecs=30000)
Block until new data is available for reading.
Definition: SASLSocket.cpp:117
#define GET_PROPERTY(type, prop)
Definition: POP3Connection.cpp:52
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
void setService(shared_ptr< net::service > serv)
Called by the messaging service to allow this authenticator to know which service is currently using ...
Definition: defaultSASLAuthenticator.cpp:116
SMTPTransport(shared_ptr< session > sess, shared_ptr< security::authenticator > auth, const bool secured=false)
Definition: SMTPTransport.cpp:54
size_t getLineCount() const
Return the number of lines in the response.
Definition: SMTPResponse.cpp:248
const std::vector< shared_ptr< const property > > getPropertyList() const
Return the property list.
Definition: propertySet.cpp:228
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
static shared_ptr< SASLContext > create()
Construct and initialize a new SASL context.
Definition: SASLContext.cpp:66
shared_ptr< maildirStore > getStore() const
Definition: maildirFormat.cpp:59
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
bool step(shared_ptr< SASLSession > sess, const byte_t *challenge, const size_t challengeLen, byte_t **response, size_t *responseLen)
Perform one step of SASL authentication.
Definition: builtinSASLMechanism.cpp:66
virtual const path & getFullPath() const =0
Return the full path of this file/directory.
Operation not supported by the underlying protocol.
Definition: exception.hpp:534
virtual ~exception()
Definition: exception.cpp:55
~maildirStore()
Definition: maildirStore.cpp:61
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
serviceInfos::property PROPERTY_CONNECTION_TLS
Definition: POP3ServiceInfos.hpp:66
Text part of type 'text/plain'.
Definition: plainTextPart.hpp:38
static IMAPServiceInfos sm_infos
Definition: IMAPStore.hpp:109
bool operator!=(const path &p) const
Definition: utility/path.cpp:143
static shared_ptr< IMAPCommand > LOGOUT()
Definition: IMAPCommand.cpp:370
~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
bool isConnected() const
Test whether this socket is connected.
Definition: SASLSocket.cpp:75
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
Thrown to indicate a problem with a certificate or certificate verification.
Definition: certificateException.hpp:46
void fetchPartHeader(shared_ptr< messagePart > p)
Fetch the MIME header for the specified part.
Definition: POP3Message.cpp:179
Definition: exception.hpp:197
const std::vector< serviceInfos::property > getAvailableProperties() const
Return a list of available properties for this service.
Definition: SMTPServiceInfos.cpp:109
vmime_uint64 getModSequence() const
Returns the modification sequence for this message.
Definition: IMAPMessage.cpp:150
static shared_ptr< POP3Command > RSET()
Definition: POP3Command.cpp:212
const char *const CP_1125
Definition: constants.cpp:130
static shared_ptr< SMTPCommand > AUTH(const string &mechName)
Definition: SMTPCommand.cpp:73
void setTime(const int hour=0, const int minute=0, const int second=0, const int zone=GMT)
Definition: dateTime.cpp:755
Definition: maildirMessagePart.hpp:45
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
Message is marked for deletion.
Definition: net/message.hpp:262
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
static shared_ptr< POP3Command > DELE(const unsigned long msg)
Definition: POP3Command.cpp:179
const VMIME_EXPORT char *const DENIED
Message has been denied.
Remove the flags.
Definition: net/message.hpp:275
string responseBuffer
Definition: SMTPResponse.hpp:59
size_t getTextPartCount() const
Return the number of text parts in the message.
Definition: messageParser.cpp:310
shared_ptr< connectionInfos > getConnectionInfos() const
Get information about the connection.
Definition: POP3Store.cpp:141
Definition: wordEncoder.hpp:56
const enhancedStatusCode getEnhancedCode() const
Definition: SMTPResponse.cpp:296
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
void init()
Initialize this SASL session.
Definition: SASLSession.cpp:80
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
int getFlags() const
Return the flags of this message.
Definition: IMAPMessage.cpp:171
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
void noop()
Do nothing but ensure the server do not disconnect (for example, this can reset the auto-logout timer...
Definition: maildirStore.cpp:198
folder()
Definition: folder.hpp:67
size_t receiveRaw(byte_t *buffer, const size_t count)
Receive raw data from the socket.
Definition: SASLSocket.cpp:137
~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
bool hasExtension(const std::string &extName, std::vector< string > *params=NULL) const
Definition: SMTPConnection.cpp:264
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
Add a TLS security layer to an existing socket.
Definition: TLSSocket.hpp:52
IMAP store service.
Definition: IMAPStore.hpp:55
void setFilename(const string &name)
Set the value of the 'filename' property.
Definition: fileAttachment.cpp:199
8-bit encoder.
Definition: eightBitEncoder.hpp:39
vmime_uint32 getUIDValidity() const
Returns the UID validity of the folder for the current session.
Definition: IMAPFolder.cpp:630
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
bool isEncoded() const
Returns 'true' if data managed by this object is encoded.
Definition: IMAPMessagePartContentHandler.cpp:174
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
virtual shared_ptr< socket > getSocket()
Definition: SMTPConnection.cpp:619
void writeToSocket(shared_ptr< socket > sok, shared_ptr< tracer > tr)
Sends this command to the specified socket.
Definition: SMTPCommandSet.cpp:70
stringProxy()
Definition: stringProxy.cpp:36
exception * clone() const
Clone this object.
Definition: exception.cpp:499
bool isComplete() const
Check whether authentication has completed.
Definition: XOAuth2SASLMechanism.cpp:97
serviceInfos::property PROPERTY_OPTIONS_SASL_FALLBACK
Definition: SMTPServiceInfos.hpp:57
size_t getUnseenCount() const
Returns the number of unseen messages in the folder.
Definition: POP3FolderStatus.cpp:59
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
size_t getPartCount() const
Return the number of parts in this part.
Definition: maildirMessageStructure.cpp:80
Definition: POP3Response.hpp:67
void notifyEvent(shared_ptr< events::event > event)
Definition: folder.cpp:117
~SASLSession()
Definition: SASLSession.cpp:61
const char *const MANUAL
User explicitely displayed or deleted the message (manual action).
Definition: constants.cpp:209
const uid getUID() const
Return the unique identifier (UID) of this message in its folder (must fetch before).
Definition: maildirMessage.cpp:87
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
shared_ptr< vmime::message > getParsedMessage()
Get the RFC-822 message for this abstract message.
Definition: POP3Message.cpp:237
virtual void writeToSocket(shared_ptr< socket > sok, shared_ptr< tracer > tr)
Sends this command to the specified socket.
Definition: SMTPCommand.cpp:224
static shared_ptr< SASLSession > create(const string &serviceName, shared_ptr< SASLContext > ctx, shared_ptr< authenticator > auth, shared_ptr< SASLMechanism > mech)
Construct a new SASL session.
Definition: SASLSession.cpp:73
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
void create(const folderAttributes &attribs)
Create this folder.
Definition: POP3Folder.cpp:194
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
#define GET_PROPERTY(type, prop)
Definition: maildirStore.cpp:42
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 status(size_t &count, size_t &unseen)
Request folder status without opening it.
Definition: POP3Folder.cpp:650
void setValue(const string &value)
Set the value of the property as a string.
Definition: propertySet.cpp:287
High encryption cipher suites (> 128 bits).
Definition: TLSProperties.hpp:55
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
const mediaType & getType() const
Return the media-type of the content in this part.
Definition: IMAPMessagePart.cpp:101
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
shared_ptr< folder > getFolder(const folder::path &path)
Return the folder specified by the path.
Definition: POP3Store.cpp:92
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
The service sends messages.
Definition: service.hpp:73
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
void fetchMessages(std::vector< shared_ptr< message > > &msg, const fetchAttributes &options, utility::progressListener *progress=NULL)
Fetch objects for the specified messages.
Definition: IMAPFolder.cpp:745
const char *const WINDOWS_1251
Definition: constants.cpp:148
static shared_ptr< POP3Command > NOOP()
Definition: POP3Command.cpp:59
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
shared_ptr< SASLContext > getContext()
Return the SASL context.
Definition: SASLSession.cpp:104
Definition: exception.hpp:119
SMTPMessageSizeExceedsCurLimitsException(const exception &other=NO_EXCEPTION)
Definition: SMTPExceptions.cpp:123
string invalidSequence
Replace invalid sequences with this string.
Definition: charsetConverterOptions.hpp:54
TimeZones
Definition: dateTime.hpp:57
~messageIdSequence()
Definition: messageIdSequence.cpp:40
void setCode(const int code)
Definition: SMTPResponse.cpp:278
Thrown when the subject name of a certificate does not match the hostname of the server.
Definition: serverIdentityException.hpp:46
exception * clone() const
Clone this object.
Definition: exception.cpp:653
const string getServiceName() const
Return the name of the service which is using this SASL session (eg.
Definition: SASLSession.cpp:125
static shared_ptr< POP3Command > PASS(const string &password)
Definition: POP3Command.cpp:121
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
const string getUsername() const
Return the authentication identity (usually, this is the username).
Definition: defaultSASLAuthenticator.cpp:80
const string getText() const
Return the SMTP response text.
Definition: SMTPResponse.cpp:85
exception * clone() const
Clone this object.
Definition: exception.cpp:350
const shared_ptr< const body > getBody() const
Return the body section of this part.
Definition: bodyPart.cpp:126
Holds the status of a mail store folder.
Definition: folderStatus.hpp:44
void removeAllModifiers()
Remove all disposition modifiers.
Definition: disposition.cpp:147
unsupportedCertificateTypeException(const string &type)
Constructs a unsupportedCertificateTypeException.
Definition: unsupportedCertificateTypeException.cpp:38
#define R2(v, w, x, y, z, i)
Definition: sha1MessageDigest.cpp:56
void init()
Definition: sha1MessageDigest.cpp:73
vmime_uint32 getUIDValidity() const
Returns the UID validity of the folder for the current session.
Definition: IMAPFolderStatus.cpp:79
void extract(utility::outputStream &os, utility::progressListener *progress=NULL, const size_t start=0, const size_t length=-1, const bool peek=false) const
Extract the whole message data (header + contents).
Definition: IMAPMessage.cpp:208
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
bool hasInitialResponse() const
Determine if this mechanism has an optional initial response.
Definition: XOAuth2SASLMechanism.cpp:103
void destroy()
Delete this folder.
Definition: POP3Folder.cpp:200
Definition: dateTime.hpp:144
maildirServiceInfos()
Definition: maildirServiceInfos.cpp:38
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
Definition: importanceHelper.hpp:50
void expunge()
Expunge deleted messages.
Definition: POP3Folder.cpp:737
void noop()
Definition: IMAPFolder.cpp:1364
const string getProtocolName() const
Return the protocol name of this service.
Definition: IMAPSStore.cpp:49
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
static shared_ptr< SMTPCommand > RSET()
Definition: SMTPCommand.cpp:161
SASLSocket(shared_ptr< SASLSession > sess, shared_ptr< net::socket > wrapped)
Definition: SASLSocket.cpp:49
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
serviceInfos::property PROPERTY_AUTH_PASSWORD
Definition: POP3ServiceInfos.hpp:63
static const std::vector< size_t > messageSetToNumberList(const messageSet &msgs, const size_t msgCount)
Returns a list of message numbers given a message set.
Definition: POP3Utils.cpp:112
const string getPeerName() const
Return the hostname of peer this socket is connected to.
Definition: SASLSocket.cpp:87
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
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
bool isSMTPS() const
Definition: SMTPTransport.cpp:80
static shared_ptr< POP3Command > createCommand(const string &text, const string &traceText="")
Creates a new POP3 command with the specified text.
Definition: POP3Command.cpp:227
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
shared_ptr< const messagePart > getPartAt(const size_t x) const
Return the part at the specified position (first part is at position 0).
Definition: IMAPMessageStructure.cpp:62
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
virtual void connect()
Definition: SMTPConnection.cpp:94
sendmailServiceInfos()
Definition: sendmailServiceInfos.cpp:38
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< IMAPCommand > SEARCH(const std::vector< string > &keys, const vmime::charset *charset)
Definition: IMAPCommand.cpp:318
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
virtual const string getTraceText() const
Returns the full text of the command, suitable for outputing to the tracer.
Definition: POP3Command.cpp:242
const char *const INLINE
Definition: constants.cpp:89
shared_ptr< SMTPCommand > getLastCommandSent() const
Returns the last command which has been sent.
Definition: SMTPCommandSet.cpp:148
A folder was deleted.
Definition: events.hpp:212
const char *const ISO8859_2
Definition: constants.cpp:98
Can append message to folders.
Definition: store.hpp:88
Folder can contain folders.
Definition: folderAttributes.hpp:53
const string getProtocolName() const
Return the protocol name of this service.
Definition: SMTPTransport.cpp:74
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
const component getLastComponent() const
Return the last component of this path (const version).
Definition: utility/path.cpp:161
shared_ptr< const header > getHeader() const
Return a reference to the header fields of the message (must fetch before).
Definition: IMAPMessage.cpp:198
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 connect()
Connect to service.
Definition: maildirStore.cpp:135
bool isSecuredConnection() const
Check whether the connection is secured.
Definition: sendmailTransport.cpp:105
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 serviceInfos & getInfos() const
Return information about this service.
Definition: SMTPSTransport.cpp:67
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
const string getText() const
Definition: SMTPResponse.cpp:308
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
~SMTPSTransport()
Definition: SMTPSTransport.cpp:44
const std::vector< shared_ptr< SASLMechanism > > getAcceptableMechanisms(const std::vector< shared_ptr< SASLMechanism > > &available, shared_ptr< SASLMechanism > suggested) const
This method is called to allow the client to choose the authentication mechanisms that will be used.
Definition: defaultSASLAuthenticator.cpp:56
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
shared_ptr< message > getMessage(const size_t num)
Get a new reference to a message in this folder, given its number.
Definition: POP3Folder.cpp:223
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
IMAP folder implementation.
Definition: IMAPFolder.hpp:58
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
void extract(utility::outputStream &os, utility::progressListener *progress=NULL, const size_t start=0, const size_t length=-1, const bool peek=false) const
Extract the whole message data (header + contents).
Definition: maildirMessage.cpp:155
Encode lines even if they are plain ASCII text.
Definition: text.hpp:197
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
static shared_ptr< POP3Command > LIST()
Definition: POP3Command.cpp:143
~charset_conv_error()
Definition: exception.cpp:110
static const datetime now()
Definition: dateTime.cpp:773
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
exception * clone() const
Clone this object.
Definition: SMTPExceptions.cpp:134
void setFlags(const int flags, const int mode=FLAG_MODE_SET)
Set the flags of this message.
Definition: POP3Message.cpp:231
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
const std::vector< shared_ptr< const word > > getWordList() const
Return the word list.
Definition: text.cpp:214
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
Definition: IMAPServiceInfos.hpp:51
Definition: POP3Response.hpp:68
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
shared_ptr< SASLSession > createSession(const string &serviceName, shared_ptr< authenticator > auth, shared_ptr< SASLMechanism > mech)
Create and initialize a new SASL session.
Definition: SASLContext.cpp:73
body()
Definition: body.cpp:46
DER encoding.
Definition: X509Certificate.hpp:59
static shared_ptr< SMTPCommand > RCPT(const mailbox &mbox, const bool utf8)
Definition: SMTPCommand.cpp:138
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
const string getProtocolName() const
Return the protocol name of this service.
Definition: SMTPSTransport.cpp:49
void connect()
Connect to service.
Definition: POP3Store.cpp:108
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: path.cpp:170
maildir message implementation.
Definition: maildirMessage.hpp:49
size_t getPartCount() const
Return the number of parts in this part.
Definition: IMAPMessageStructure.cpp:74
~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
virtual shared_ptr< session > getSession()
Definition: POP3Connection.cpp:682
Constructs SASL mechanism objects.
Definition: SASLMechanismFactory.hpp:52
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
serviceInfos::property PROPERTY_AUTH_PASSWORD
Definition: IMAPServiceInfos.hpp:61
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
POP3S store service.
Definition: POP3SStore.hpp:45
const char *const REFERENCES
Definition: constants.cpp:186
defaultCertificateVerifier()
Definition: defaultCertificateVerifier.cpp:42
Definition: maildirFormat.hpp:54
void setMessageCount(const size_t count)
Definition: maildirFolderStatus.cpp:65
defaultTimeoutHandler()
Definition: defaultTimeoutHandler.cpp:37
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
~XOAuth2SASLAuthenticator()
Definition: XOAuth2SASLAuthenticator.cpp:48
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
shared_ptr< const messageStructure > getStructure() const
Return the structure of this part.
Definition: IMAPMessagePart.cpp:77
~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
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
Folder is used to hold junk mail.
Definition: folderAttributes.hpp:78
void verify(shared_ptr< certificateChain > chain, const string &hostname)
Verify that the specified certificate chain is trusted.
Definition: defaultCertificateVerifier.cpp:60
Option not supported.
Definition: exception.hpp:458
exception * clone() const
Clone this object.
Definition: exception.cpp:427
Is partial fetch supported?
Definition: store.hpp:91
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
const string getLineAt(const size_t pos) const
Return the response line at the specified position.
Definition: POP3Response.cpp:163
shared_ptr< IMAPConnection > getConnection()
Definition: IMAPStore.cpp:157
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
static const serviceInfos & getInfosInstance()
Definition: SMTPTransport.cpp:390
SMTPMessageSizeExceedsMaxLimitsException(const exception &other=NO_EXCEPTION)
Definition: SMTPExceptions.cpp:96
void setPort(const port_t port)
Set the port of the URL.
Definition: url.cpp:376
Unique identifier (protocol specific).
Definition: fetchAttributes.hpp:59
shared_ptr< connectionInfos > getConnectionInfos() const
Get information about the connection.
Definition: SMTPTransport.cpp:113
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
static shared_ptr< IMAPCommand > APPEND(const string &mailboxName, const std::vector< string > &flags, vmime::datetime *date, const size_t size)
Definition: IMAPCommand.cpp:269
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
certificateException()
Constructs a certificateException with no detail message.
Definition: certificateException.cpp:38
const shared_ptr< messageId > getMessageIdAt(const size_t pos)
Return the message-id at the specified position.
Definition: messageIdSequence.cpp:218
Definition: childProcess.hpp:51
virtual ~childProcessFactory()
Definition: childProcess.hpp:92
const string getProtocolName() const
Return the protocol name of this service.
Definition: IMAPStore.cpp:67
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
void setX509TrustedCerts(const std::vector< shared_ptr< X509Certificate > > &trustedCerts)
Sets a list of X.509 certificates that are trusted.
Definition: defaultCertificateVerifier.cpp:167
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
Socket not connected: you are trying to write to/read from a socket which is not connected to a peer.
Definition: exception.hpp:383
size_t getHeaderParsedOffset() const
Definition: maildirMessagePart.cpp:126
~authentication_exception()
Definition: exception.cpp:664
virtual void setMessageFlags(const messageSet &msgs, const int flags, const int mode=message::FLAG_MODE_SET)=0
Change the flags for one or more messages in this folder.
void deleteMessages(const messageSet &msgs)
Remove one or more messages from this folder.
Definition: POP3Folder.cpp:560
path()
Definition: utility/path.cpp:33
int getMonth() const
Definition: dateTime.cpp:792
Identity certificate based on X.509 standard.
Definition: X509Certificate.hpp:50
const text & getName() const
Return the name of the group.
Definition: mailboxGroup.cpp:225
const folder::path getFullPath() const
Return the fully qualified path name of this folder.
Definition: IMAPFolder.cpp:128
void setTimeoutHandlerFactory(shared_ptr< timeoutHandlerFactory > thf)
Set the factory used to create timeoutHandler objects for this service.
Definition: service.cpp:151
shared_ptr< authenticator > getAuthenticator()
Return the authenticator used for this session.
Definition: SASLSession.cpp:92
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
#define HAS_PROPERTY(prop)
Definition: POP3Connection.cpp:55
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
bodyPart * getParentPart()
Return the parent part of this part.
Definition: bodyPart.cpp:151
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
bool isConnected() const
Test whether this service is connected.
Definition: maildirStore.cpp:166
numberMessageRange(const size_t number)
Constructs a message range containing a single message.
Definition: messageSet.cpp:55
std::vector< shared_ptr< message > > getAndFetchMessages(const messageSet &msgs, const fetchAttributes &attribs)
Get new references to messages in this folder, given either their sequence numbers or UIDs,...
Definition: IMAPFolder.cpp:850
const fileInfo & getFileInfo() const
Definition: fileAttachment.cpp:165
const char *const RETURN_PATH
Definition: constants.cpp:176
const std::vector< serviceInfos::property > getAvailableProperties() const
Return a list of available properties for this service.
Definition: sendmailServiceInfos.cpp:61
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
std::vector< shared_ptr< message > > getMessages(const messageSet &msgs)
Get new references to messages in this folder, given either their sequence numbers or UIDs.
Definition: POP3Folder.cpp:238
defaultAuthenticator()
Definition: defaultAuthenticator.cpp:41
parameter & operator=(const parameter &other)
Definition: parameter.cpp:80
Definition: events.hpp:143
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
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
Manage connection to a SMTP server.
Definition: SMTPConnection.hpp:64
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
const string getPropertyPrefix() const
Return the property prefix used by this service.
Definition: maildirServiceInfos.cpp:43
~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
SMTP error: message size exceeds current server limits.
Definition: SMTPExceptions.hpp:107
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 shared_ptr< TLSSocket > wrap(shared_ptr< TLSSession > session, shared_ptr< socket > sok)
Create a new socket object that adds a security layer around an existing socket.
virtual shared_ptr< session > getSession()
Definition: SMTPConnection.cpp:613
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
size_t getBodyParsedLength() const
Definition: maildirMessagePart.cpp:144
void generateImpl(const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const
Definition: parameter.cpp:279
static shared_ptr< IMAPCommand > FETCH(const messageSet &msgs, const std::vector< string > ¶ms)
Definition: IMAPCommand.cpp:203
shared_ptr< component > clone() const
Clone this component.
Definition: contentDisposition.cpp:94
int getCapabilities() const
Return the features supported by this service.
Definition: POP3Store.cpp:202
void connect()
Connect to service.
Definition: SMTPTransport.cpp:86
void rename(const folder::path &newPath)
Rename (move) this folder to another location.
Definition: IMAPFolder.cpp:1188
~invalid_argument()
Definition: exception.cpp:280
~fileContentHandler()
Definition: fileContentHandler.cpp:50
const vmime::encoding & getEncoding() const
Returns the encoding used for data (or "binary" if not encoded).
Definition: IMAPMessagePartContentHandler.cpp:180
LFToCRLFFilteredOutputStream(outputStream &os)
Construct a new filter for the specified output stream.
Definition: filteredStream.cpp:303
messagePart()
Definition: net/message.hpp:57
serviceInfos::property PROPERTY_CONNECTION_TLS
Definition: IMAPServiceInfos.hpp:64
Thrown when a certificate in a certificate chain cannot be verified against the next certificate in t...
Definition: certificateIssuerVerificationException.hpp:46
Definition: encoding.hpp:50
virtual ~tracerFactory()
Definition: tracer.hpp:90
SMTPCommand(const string &text, const string &traceText)
Definition: SMTPCommand.cpp:44
already_connected(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:520
static shared_ptr< POP3Command > STAT()
Definition: POP3Command.cpp:136
Definition: emptyContentHandler.hpp:35
A helper for parsing MIME messages.
Definition: messageParser.hpp:47
const TYPE getValue() const
Definition: propertySet.hpp:219
const serviceInfos & getInfos() const
Return information about this service.
Definition: POP3SStore.cpp:67
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
maildir folder implementation.
Definition: maildirFolder.hpp:56
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
void status(size_t &count, size_t &unseen)
Request folder status without opening it.
Definition: IMAPFolder.cpp:1290
static shared_ptr< IMAPCommand > STATUS(const string &mailboxName, const std::vector< string > &attribs)
Definition: IMAPCommand.cpp:132
Folder is is used to hold copies of messages that have been sent.
Definition: folderAttributes.hpp:79
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
vmime_uint64 getHighestModSequence() const
Returns the highest modification sequence of this folder, ie the modification sequence of the last me...
Definition: IMAPFolder.cpp:639
void removeAttachment(const size_t pos)
Remove the attachment at the specified position.
Definition: messageBuilder.cpp:283
Types
Definition: events.hpp:71
shared_ptr< const header > getHeader() const
Return the header section for this part (you must fetch header before using this function: see messag...
Definition: IMAPMessagePart.cpp:119
static shared_ptr< IMAPCommand > CLOSE()
Definition: IMAPCommand.cpp:363
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
XOAuth2SASLMechanism(shared_ptr< SASLContext > ctx, const string &name)
Definition: XOAuth2SASLMechanism.cpp:45
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
size_t getNumber() const
Return the sequence number of this message.
Definition: IMAPMessage.cpp:138
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
bool isExpunged() const
Check whether this message has been expunged (ie: definitively deleted) and does not exist in the fol...
Definition: POP3Message.cpp:97
const messageId getOriginalMessageId() const
Return the identifier of the message for which this MDN has been generated.
Definition: receivedMDNInfos.cpp:60
void disconnect()
Disconnect from service.
Definition: POP3Store.cpp:156
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
certificateNotYetValidException()
Constructs a certificateNotYetValidException with no detail message.
Definition: certificateNotYetValidException.cpp:38
void setFlags(const int flags, const int mode=FLAG_MODE_SET)
Set the flags of this message.
Definition: maildirMessage.cpp:144
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
const utility::path & getFileSystemPath() const
Definition: maildirStore.cpp:229
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
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
const addressList & getRecipients() const
Return the recipients of the message (To:).
Definition: messageBuilder.cpp:217
Format
Supported encodings for X.509 certificates.
Definition: X509Certificate.hpp:57
shared_ptr< const IMAPMessagePart > getParent() const
Definition: IMAPMessagePart.cpp:95
word()
Construct an empty word.
Definition: word.cpp:44
virtual void connect()
Definition: POP3Connection.cpp:93
~POP3Message()
Definition: POP3Message.cpp:54
IMAPSStore(shared_ptr< session > sess, shared_ptr< security::authenticator > auth)
Definition: IMAPSStore.cpp:38
Simple output stream.
Definition: outputStream.hpp:43
virtual const datetime getExpirationDate() const =0
Gets the expiration date of this certificate.
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
void registerFolder(IMAPFolder *folder)
Definition: IMAPStore.cpp:214
const char * name() const
Return a name identifying the exception.
Definition: exception.cpp:428
void setText(const string &text)
Definition: SMTPResponse.cpp:302
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
Message size (exact or estimated).
Definition: fetchAttributes.hpp:57
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
SMTPChunkingOutputStreamAdapter(shared_ptr< SMTPConnection > conn, const size_t size, utility::progressListener *progress)
Definition: SMTPChunkingOutputStreamAdapter.cpp:44
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
~SMTPTransport()
Definition: SMTPTransport.cpp:60
propertySet & operator=(const propertySet &set)
Definition: propertySet.cpp:57
virtual shared_ptr< security::authenticator > getAuthenticator()
Definition: POP3Connection.cpp:706
virtual shared_ptr< SMTPTransport > getTransport()
Definition: SMTPConnection.cpp:607
messageSet copyMessages(const folder::path &dest, const messageSet &msgs)
Copy messages from this folder to another folder.
Definition: POP3Folder.cpp:644
messageSet copyMessages(const folder::path &dest, const messageSet &msgs)
Copy messages from this folder to another folder.
Definition: IMAPFolder.cpp:1253
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
shared_ptr< const header > getHeader() const
Return the header section for this part (you must fetch header before using this function: see messag...
Definition: maildirMessagePart.cpp:108
size_t getPartCount() const
Return the number of parts in the list.
Definition: body.cpp:1002
virtual shared_ptr< timeoutHandler > getTimeoutHandler()
Definition: SMTPConnection.cpp:631
certificateExpiredException()
Constructs a certificateExpiredException with no detail message.
Definition: certificateExpiredException.cpp:38
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
const string getServiceName() const
Return the registered service name of the application service (eg: "imap").
Definition: defaultSASLAuthenticator.cpp:110
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
std::vector< shared_ptr< folder > > getFolders(const bool recursive=false)
Get the list of all sub-folders in this folder.
Definition: IMAPFolder.cpp:659
static path fromString(const string &str, const string &sep, const charset &cset)
Construct a new path from a string.
Definition: utility/path.cpp:265
int statusCode() const
Returns the SMTP status code for this error.
Definition: SMTPExceptions.cpp:68
~SMTPMessageSizeExceedsCurLimitsException()
Definition: SMTPExceptions.cpp:129
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
shared_ptr< connectionInfos > getConnectionInfos() const
Definition: POP3Connection.cpp:670
const folderAttributes getAttributes()
Return the attributes of the folder.
Definition: POP3Folder.cpp:91
const string encodeB64(const byte_t *input, const size_t inputLen)
Helper function for encoding challenge in Base64.
Definition: SASLContext.cpp:137
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
virtual void create(const folderAttributes &attribs)=0
Create this folder.
Folder is used to hold messages that have been deleted or marked for deletion (may be a virtual folde...
Definition: folderAttributes.hpp:81
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
bool isValidFolderName(const folder::path::component &name) const
Test whether the specified folder name is a syntactically a valid name.
Definition: POP3Store.cpp:102
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
const responseLine getLineAt(const size_t pos) const
Return the response line at the specified position.
Definition: SMTPResponse.cpp:242
maildirMessageStructure()
Definition: maildirMessageStructure.cpp:42
static shared_ptr< IMAPMessagePart > create(shared_ptr< IMAPMessagePart > parent, const size_t number, const IMAPParser::body *body)
Definition: IMAPMessagePart.cpp:130
weak_ptr< net::service > getService() const
Definition: defaultAuthenticator.cpp:118
TLSSecuredConnectionInfos(const string &host, const port_t port, shared_ptr< TLSSession > tlsSession, shared_ptr< TLSSocket > tlsSocket)
Definition: TLSSecuredConnectionInfos.cpp:40
shared_ptr< encoder > create(const string &name)
Create a new encoder instance from an encoding name.
Definition: encoderFactory.cpp:72
TLSSession()
Definition: TLSSession.cpp:38
no_such_field(const exception &other=NO_EXCEPTION)
Definition: exception.cpp:161
const std::vector< shared_ptr< SASLMechanism > > getAcceptableMechanisms(const std::vector< shared_ptr< SASLMechanism > > &available, shared_ptr< SASLMechanism > suggested) const
This method is called to allow the client to choose the authentication mechanisms that will be used.
Definition: XOAuth2SASLAuthenticator.cpp:55
Use quoting instead of encoding if needed (eg.
Definition: text.hpp:200
Pseudo-random number generator.
Definition: random.hpp:38
std::list< IMAPFolder * > m_folders
Definition: IMAPStore.hpp:104
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
IMAPMessagePart(shared_ptr< IMAPMessagePart > parent, const size_t number, const IMAPParser::body_type_mpart *mpart)
Definition: IMAPMessagePart.cpp:39
void extractPart(shared_ptr< const messagePart > p, utility::outputStream &os, utility::progressListener *progress=NULL, const size_t start=0, const size_t length=-1, const bool peek=false) const
Extract the specified MIME part of the message (header + contents).
Definition: IMAPMessage.cpp:224
static const serviceInfos & getInfosInstance()
Definition: IMAPStore.cpp:246
static shared_ptr< SMTPCommand > BDAT(const size_t chunkSize, const bool last)
Definition: SMTPCommand.cpp:175
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
shared_ptr< connectionInfos > getConnectionInfos() const
Get information about the connection.
Definition: sendmailTransport.cpp:111
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
shared_ptr< const security::authenticator > getAuthenticator() const
Return the authenticator object used with this service instance.
Definition: service.cpp:93
A service property.
Definition: serviceInfos.hpp:68
mailbox()
Definition: mailbox.cpp:33
~datetime()
Definition: dateTime.cpp:697
Use CRLF instead of new-line sequence (CRLF + TAB).
Definition: text.hpp:198
Definition: POP3ServiceInfos.hpp:51
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
IMAPServiceInfos(const bool imaps)
Definition: IMAPServiceInfos.cpp:38
const std::vector< shared_ptr< component > > getChildComponents()
Return the list of children of this component.
Definition: relay.cpp:349
~defaultSASLAuthenticator()
Definition: defaultSASLAuthenticator.cpp:49
~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
serviceInfos::property PROPERTY_CONNECTION_TLS_REQUIRED
Definition: SMTPServiceInfos.hpp:69
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
~POP3SStore()
Definition: POP3SStore.cpp:44
static shared_ptr< POP3Response > readResponse(shared_ptr< POP3Connection > conn)
Receive and parse a POP3 response from the specified connection.
Definition: POP3Response.cpp:56
A built-in authentication mechanism that relies on the GNU SASL library.
Definition: builtinSASLMechanism.hpp:48
Abstract representation of a path (filesystem, mailbox, etc).
Definition: utility/path.hpp:41
serviceInfos::property PROPERTY_SERVER_PORT
Definition: IMAPServiceInfos.hpp:69
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
An output stream adapter used with ESMTP CHUNKING extension.
Definition: SMTPChunkingOutputStreamAdapter.hpp:48
~illegal_byte_sequence_for_charset()
Definition: exception.cpp:123
shared_ptr< component > clone() const
Clone this component.
Definition: messageIdSequence.cpp:53
const std::map< string, string > & getParams() const
Return the parameters of the URL (read-only).
Definition: url.cpp:394
Holds a set of attributes for a folder.
Definition: folderAttributes.hpp:45
virtual bool isDirectory() const =0
Test whether this is a directory.
std::ostream & operator<<(std::ostream &os, const message::uid &uid)
Definition: net/message.cpp:138
int getFetchCapabilities() const
Return the list of fetchable objects supported by the underlying protocol (see folder::fetchAttribute...
Definition: POP3Folder.cpp:513
exception * clone() const
Clone this object.
Definition: serverIdentityException.cpp:44
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
bool isConnected() const
Test whether this service is connected.
Definition: IMAPStore.cpp:127
const string getFirstLine() const
Return the first POP3 response line.
Definition: POP3Response.cpp:145
no_digest_algorithm_available(const string &name, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:149
bool isEmpty() const
Returns 'true' if there is no data set.
Definition: IMAPMessagePartContentHandler.cpp:186
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
friend class POP3Folder
Definition: POP3Store.hpp:57
shared_ptr< folder > getRootFolder()
Return the root folder.
Definition: maildirStore.cpp:81
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
void unregisterFolder(IMAPFolder *folder)
Definition: IMAPStore.cpp:220
propertySet()
Definition: propertySet.cpp:32
SMTPSTransport(shared_ptr< session > sess, shared_ptr< security::authenticator > auth)
Definition: SMTPSTransport.cpp:38
virtual ~contentHandler()
Definition: contentHandler.cpp:35
static shared_ptr< IMAPCommand > CAPABILITY()
Definition: IMAPCommand.cpp:342
exception * clone() const
Clone this object.
Definition: certificateNotTrustedException.cpp:44
An SASL mechanism.
Definition: SASLMechanism.hpp:47
virtual shared_ptr< socket > getSocket()
Definition: POP3Connection.cpp:688
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
SMTP transport service.
Definition: SMTPTransport.hpp:53
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
static const serviceInfos & getInfosInstance()
Definition: maildirStore.cpp:254
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
const string getTraceText() const
Returns the full text of the command, suitable for outputing to the tracer.
Definition: SMTPCommandSet.cpp:127
criticalSection()
Definition: criticalSection.cpp:32
shared_ptr< message > getMessage(const size_t num)
Get a new reference to a message in this folder, given its number.
Definition: IMAPFolder.cpp:523
unsigned int m_count[2]
Definition: sha1MessageDigest.hpp:65
serviceInfos::property PROPERTY_OPTIONS_APOP_FALLBACK
Definition: POP3ServiceInfos.hpp:55
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
~IMAPFolder()
Definition: IMAPFolder.cpp:66
An adapter class for byte array output.
Definition: outputStreamByteArrayAdapter.hpp:38
Sender, recipients, date, subject.
Definition: fetchAttributes.hpp:53
void fetchMessage(shared_ptr< message > msg, const fetchAttributes &options)
Fetch objects for the specified message.
Definition: POP3Folder.cpp:423
~already_connected()
Definition: exception.cpp:519
const char *const CP_850
Definition: constants.cpp:115
const string getCipherSuite() const
Returns the cipher suite preferences for a SSL/TLS session, as a character string.
const folder::path::component getName() const
Return the name of this folder.
Definition: IMAPFolder.cpp:122
void setEnhancedCode(const enhancedStatusCode &enhCode)
Definition: SMTPResponse.cpp:290
Definition: dateTime.hpp:154
size_t decode(utility::inputStream &in, utility::outputStream &out, utility::progressListener *progress=NULL)
Decode data.
Definition: qpEncoder.cpp:377
const char * name() const
Return a name identifying the exception.
Definition: SMTPExceptions.cpp:113
int getMinute() const
Definition: dateTime.cpp:795
const uid getUID() const
Return the unique identifier (UID) of this message in its folder (must fetch before).
Definition: POP3Message.cpp:82
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
static shared_ptr< SMTPCommand > STARTTLS()
Definition: SMTPCommand.cpp:95
POP3ServiceInfos(const bool pop3s)
Definition: POP3ServiceInfos.cpp:38
const char *const CP_874
Definition: constants.cpp:129
size_t getNumber() const
Return the part sequence number (index).
Definition: maildirMessagePart.cpp:102
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 string getPropertyPrefix() const
Return the property prefix used by this service.
Definition: POP3ServiceInfos.cpp:44
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
POP3Store(shared_ptr< session > sess, shared_ptr< security::authenticator > auth, const bool secured=false)
Definition: POP3Store.cpp:45
Months
Definition: dateTime.hpp:127
header & getOrCreateHeader()
Definition: maildirMessagePart.cpp:117
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
Try XOAUTH2 before other mechanisms.
Definition: XOAuth2SASLAuthenticator.hpp:52
virtual ~messageCountListener()
Definition: events.hpp:122
unsigned short detail
Precise error condition.
Definition: SMTPResponse.hpp:70
void dispatch(class folderListener *listener)
Dispatch the event to the specified listener.
Definition: events.cpp:143
const std::vector< shared_ptr< const mailbox > > getMailboxList() const
Return the mailbox list.
Definition: mailboxList.cpp:116
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
virtual const string getTraceText() const
Returns the full text of the command, suitable for outputing to the tracer.
Definition: IMAPCommand.cpp:393
virtual shared_ptr< const store > getStore() const =0
Return a reference to the store to which this folder belongs.
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
Definition: serviceInfos.hpp:119
bool isConnected() const
Test whether this service is connected.
Definition: POP3Store.cpp:126
shared_ptr< folderStatus > clone() const
Clones this object.
Definition: maildirFolderStatus.cpp:77
exception * clone() const
Clone this object.
Definition: certificateExpiredException.cpp:44
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
shared_ptr< SASLMechanism > createMechanism(const string &name)
Create an instance of an SASL mechanism.
Definition: SASLContext.cpp:81
shared_ptr< SMTPResponse > readResponse()
Definition: SMTPConnection.cpp:578
connection_error(const string &what="", const exception &other=NO_EXCEPTION)
Definition: exception.cpp:359
void disconnect()
Disconnect from service.
Definition: IMAPStore.cpp:163
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
const SMTPResponse::enhancedStatusCode extendedStatusCode() const
Returns the extended status code (following RFC-3463) for this error, if available.
Definition: SMTPExceptions.cpp:74
Holds configuration parameters used either for parsing or generating messages.
Definition: context.hpp:39
A socket which provides data integrity and/or privacy protection.
Definition: SASLSocket.hpp:49
const char *const ORIGINAL_MESSAGE_ID
Definition: constants.cpp:192
serviceInfos::property PROPERTY_SERVER_ADDRESS
Definition: IMAPServiceInfos.hpp:68
unsigned short klass
Success/failure.
Definition: SMTPResponse.hpp:68
void disconnect()
Disconnect from service.
Definition: maildirStore.cpp:184
size_t getDigestLength() const
Returns the length of the hash.
Definition: sha1MessageDigest.cpp:253
Holds the status of a Maildir folder.
Definition: maildirFolderStatus.hpp:45
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 char * name() const
Return a name identifying the exception.
Definition: SMTPExceptions.cpp:86
const std::vector< shared_ptr< const mailbox > > getMailboxList() const
Return the mailbox list.
Definition: mailboxGroup.cpp:344
const string & response() const
Return the invalid response line.
Definition: exception.cpp:559
const char *const DELIVERED_TO
Definition: constants.cpp:175
Information about a TLS-secured connection used by a service.
Definition: TLSSecuredConnectionInfos.hpp:50
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
void setCipherSuite(const GenericCipherSuite cipherSuite)
Sets the cipher suite preferences for a SSL/TLS session, using predefined, generic suites.
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
serviceInfos::property PROPERTY_SERVER_ADDRESS
Definition: POP3ServiceInfos.hpp:70
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
void addCommand(shared_ptr< SMTPCommand > cmd)
Adds a new command to this set.
Definition: SMTPCommandSet.cpp:58
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
A POP3 response, as sent by the server.
Definition: POP3Response.hpp:59
bool operator!=(const path &p) const
Definition: path.cpp:80
size_t getMessageCount() const
Returns the total number of messages in the folder.
Definition: maildirFolderStatus.cpp:53
void setEpilogText(const string &epilogText)
Set the epilog text.
Definition: body.cpp:830
static shared_ptr< POP3Response > readLargeResponse(shared_ptr< POP3Connection > conn, utility::outputStream &os, utility::progressListener *progress, const size_t predictedSize)
Receive and parse a large POP3 response (eg.
Definition: POP3Response.cpp:115
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
static shared_ptr< maildirMessageStructure > emptyStructure()
Definition: maildirMessageStructure.cpp:87
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
void noop()
Do nothing but ensure the server do not disconnect (for example, this can reset the auto-logout timer...
Definition: IMAPStore.cpp:183
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
int getFlags() const
Return the flags of this message.
Definition: maildirMessage.cpp:135
Folder is already open in the same session.
Definition: exception.hpp:504
void noop()
Do nothing but ensure the server do not disconnect (for example, this can reset the auto-logout timer...
Definition: POP3Store.cpp:175
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
~defaultCertificateVerifier()
Definition: defaultCertificateVerifier.cpp:47
virtual ~context()
Definition: context.cpp:44
serviceInfos::property PROPERTY_OPTIONS_SASL
Definition: IMAPServiceInfos.hpp:55
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
void extractRaw(utility::outputStream &os, utility::progressListener *progress=NULL) const
Extract the contents into the specified stream, without decoding it.
Definition: IMAPMessagePartContentHandler.cpp:159
path & operator=(const path &p)
Definition: utility/path.cpp:108
A stream whose output is filtered.
Definition: filteredStream.hpp:58
#define HAS_PROPERTY(prop)
Definition: SMTPConnection.cpp:56
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
Used internally to indicate flags have not been initialized yet.
Definition: net/message.hpp:176
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
~SMTPMessageSizeExceedsMaxLimitsException()
Definition: SMTPExceptions.cpp:102
virtual shared_ptr< timeoutHandler > create()=0
uid()
Definition: net/message.cpp:61
body & operator=(const body &other)
Definition: body.cpp:805
shared_ptr< const header > getHeader() const
Return a reference to the header fields of the message (must fetch before).
Definition: POP3Message.cpp:126
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
void decodeB64(const string &input, byte_t **output, size_t *outputLen)
Helper function for decoding Base64-encoded challenge.
Definition: SASLContext.cpp:116
const char *const MIME_VERSION
Definition: constants.cpp:177
shared_ptr< textPart > getTextPart()
Return the text part of the message.
Definition: messageBuilder.cpp:199
Thrown when a certificate cannot be verified against root and/or trusted certificates.
Definition: certificateNotTrustedException.hpp:46
static bool RFC2047_isEncodingNeededForChar(const unsigned char c)
Definition: qpEncoder.cpp:122
static shared_ptr< SMTPCommand > createCommand(const string &text, const string &traceText="")
Creates a new SMTP command with the specified text.
Definition: SMTPCommand.cpp:203
~charsetConverter_idna()
Definition: charsetConverter_idna.cpp:55
serviceInfos::property PROPERTY_CONNECTION_TLS_REQUIRED
Definition: POP3ServiceInfos.hpp:67
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
~IMAPSStore()
Definition: IMAPSStore.cpp:44
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
size_t getMessageCount()
Return the number of messages in this folder.
Definition: POP3Folder.cpp:271
An authenticator that can provide some basic information by reading in the messaging session properti...
Definition: defaultAuthenticator.hpp:44
static const serviceInfos & getInfosInstance()
Definition: IMAPSStore.cpp:61
Information about POP3 service.
Definition: POP3ServiceInfos.hpp:45
A range of (continuous) messages designated by their sequence number.
Definition: messageSet.hpp:90
bool operator!=(const contentDisposition &value) const
Definition: contentDisposition.cpp:88
static shared_ptr< SMTPCommandSet > create(const bool pipeline)
Creates a new set of SMTP commands.
Definition: SMTPCommandSet.cpp:52
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
virtual const string getText() const
Returns the full text of the command, including command name and parameters (if any).
Definition: SMTPCommand.cpp:212
Default implementation for certificate verification.
Definition: defaultCertificateVerifier.hpp:47
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
bool isOpen() const
Test whether this folder is open.
Definition: POP3Folder.cpp:217
Default, no-op encoder (simple copy, no encoding/decoding is performed).
Definition: noopEncoder.hpp:39
Folder is used to archives messages (server-dependent).
Definition: folderAttributes.hpp:73
static shared_ptr< TLSSession > create(shared_ptr< security::cert::certificateVerifier > cv, shared_ptr< TLSProperties > props)
Create and initialize a new TLS session.
static bool isValidBoundary(const string &boundary)
Test a boundary string for validity (as defined in RFC #1521, page 19).
Definition: body.cpp:622
The socket wants to write data, retry when data can be written.
Definition: socket.hpp:55
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
static shared_ptr< IMAPCommand > RENAME(const string &mailboxName, const string &newMailboxName)
Definition: IMAPCommand.cpp:190
Disposition - from RFC-3798 (basic type).
Definition: disposition.hpp:41
bool waitForWrite(const int msecs=30000)
Block until pending data has been written and new data can be written.
Definition: SASLSocket.cpp:123
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
const mediaType getContentTypeHint() const
Returns a hint about the kind of data managed by this object.
Definition: IMAPMessagePartContentHandler.cpp:204
contentDispositionField()
Definition: contentDispositionField.cpp:32
serviceInfos::property PROPERTY_OPTIONS_SASL
Definition: SMTPServiceInfos.hpp:56
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
const serviceInfos & getInfos() const
Return information about this service.
Definition: maildirStore.cpp:260
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
size_t getNumber() const
Return the sequence number of this message.
Definition: maildirMessage.cpp:81
Definition: IMAPMessagePart.hpp:47
Convert between charsets.
Definition: charsetConverter.hpp:67
~text()
Definition: text.cpp:64
The socket wants to read data, retry when data is available.
Definition: socket.hpp:54
shared_ptr< net::timeoutHandler > getTimeoutHandler()
Return the timeout handler associated with this socket.
Definition: SASLSocket.cpp:99
void clear()
Definition: mailbox.cpp:467
shared_ptr< folderStatus > getStatus()
Request folder status without opening it.
Definition: IMAPFolder.cpp:1302
A class that creates default timeout handlers.
Definition: defaultTimeoutHandler.hpp:68
virtual ~tracer()
Definition: tracer.hpp:52
Can rename folders.
Definition: store.hpp:87
static shared_ptr< SMTPCommand > HELO(const string &hostname)
Definition: SMTPCommand.cpp:62
#define GET_PROPERTY(type, prop)
Definition: sendmailTransport.cpp:48
no_such_mechanism(const string &name, const exception &other=NO_EXCEPTION)
Definition: exception.cpp:704
noncopyable()
Definition: base.hpp:243
Sendmail local transport service.
Definition: sendmailTransport.hpp:49
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
SMTPCommandError(const string &command, const string &response, const string &desc, const int statusCode, const SMTPResponse::enhancedStatusCode &extendedStatusCode, const exception &other=NO_EXCEPTION)
Definition: SMTPExceptions.cpp:43
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
const state getCurrentState() const
Returns the current state of the response parser.
Definition: SMTPResponse.cpp:260
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
messageSet addMessage(shared_ptr< vmime::message > msg, const int flags=-1, vmime::datetime *date=NULL, utility::progressListener *progress=NULL)
Add a message to this folder.
Definition: POP3Folder.cpp:628
void setActionMode(const string &mode)
Set the disposition action mode.
Definition: disposition.cpp:88
serviceInfos::property PROPERTY_OPTIONS_PIPELINING
Definition: SMTPServiceInfos.hpp:60
static shared_ptr< POP3Command > APOP(const string &username, const string &digest)
Definition: POP3Command.cpp:95
A filtered output stream which replaces CRLF sequences with single LF characters.
Definition: filteredStream.hpp:141
void setSASLSession(shared_ptr< SASLSession > sess)
Set the SASL session which is using this authenticator.
Definition: defaultSASLAuthenticator.cpp:129
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
bool isSecuredConnection() const
Check whether the connection is secured.
Definition: SMTPTransport.cpp:104
const props & getProperties() const
Definition: SMTPServiceInfos.cpp:53
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
certificateNotTrustedException()
Constructs a certificateNotTrustedException with no detail message.
Definition: certificateNotTrustedException.cpp:38
ReferenceType getReferenceType() const
Returns the way this object is referenced.
Definition: htmlTextPart.cpp:483
shared_ptr< IMAPConnection > m_connection
Definition: IMAPStore.hpp:94
bool isValidFolderName(const folder::path::component &name) const
Test whether the specified folder name is a syntactically a valid name.
Definition: maildirStore.cpp:113
virtual void progress(const size_t current, const size_t currentTotal)=0
Called during the operation (can be called several times).
void disconnect()
Disconnect from service.
Definition: sendmailTransport.cpp:117
An authenticator that is capable of providing information for simple authentication mechanisms (usern...
Definition: defaultSASLAuthenticator.hpp:46
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
Definition: POP3Response.hpp:66
~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
const props & getProperties() const
Definition: POP3ServiceInfos.cpp:53
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
virtual shared_ptr< tracer > getTracer()
Definition: POP3Connection.cpp:694
virtual bool isConnected() const
Definition: POP3Connection.cpp:658
const folder::path::component getName() const
Return the name of this folder.
Definition: POP3Folder.cpp:108
Default cipher suite.
Definition: TLSProperties.hpp:59
void disconnect()
Disconnect from the server.
Definition: SASLSocket.cpp:69
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
const string getName() const
Return the name of this mechanism.
Definition: builtinSASLMechanism.cpp:59
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
virtual bool isValidFolderName(const folder::path::component &name) const =0
Test whether the specified folder name is a syntactically a valid name.
void rename(const folder::path &newPath)
Rename (move) this folder to another location.
Definition: POP3Folder.cpp:621
fileInfo()
Definition: fileAttachment.cpp:182
IMAPMessagePartContentHandler(shared_ptr< IMAPMessage > msg, shared_ptr< messagePart > part, const vmime::encoding &encoding)
Definition: IMAPMessagePartContentHandler.cpp:46
Enhanced status code (as per RFC-3463).
Definition: SMTPResponse.hpp:63
Retrieve attachment information from message parts.
Definition: attachmentHelper.hpp:40
int getMode() const
Return the mode in which the folder has been open.
Definition: POP3Folder.cpp:82
~POP3Store()
Definition: POP3Store.cpp:51
shared_ptr< folder > getDefaultFolder()
Return the default folder.
Definition: POP3Store.cpp:71
size_t getLineCount() const
Return the number of lines in the response.
Definition: POP3Response.cpp:169
std::vector< shared_ptr< certificate > > m_certs
Definition: certificateChain.hpp:69
bool isSecuredConnection() const
Check whether the connection is secured.
Definition: maildirStore.cpp:172
Can copy messages from a folder to another one.
Definition: store.hpp:89
shared_ptr< component > clone() const
Clone this component.
Definition: parameter.cpp:62
static shared_ptr< POP3Command > STLS()
Definition: POP3Command.cpp:88
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
shared_ptr< const store > getStore() const
Return a reference to the store to which this folder belongs.
Definition: POP3Folder.cpp:530
void parseImpl(const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL)
Definition: relay.cpp:62
shared_ptr< connectionInfos > getConnectionInfos() const
Get information about the connection.
Definition: maildirStore.cpp:178
Body section of a MIME part.
Definition: body.hpp:50
void setTracer(shared_ptr< net::tracer > tracer)
Definition: SASLSocket.cpp:105
void fetchMessages(std::vector< shared_ptr< message > > &msg, const fetchAttributes &options, utility::progressListener *progress=NULL)
Fetch objects for the specified messages.
Definition: POP3Folder.cpp:316
Trace information about a relay (basic type).
Definition: relay.hpp:41
maildirFolderStatus()
Definition: maildirFolderStatus.cpp:38
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
virtual const string getTraceText() const
Returns the full text of the command, suitable for outputing to the tracer.
Definition: SMTPCommand.cpp:218
const serviceInfos & getInfos() const
Return information about this service.
Definition: POP3Store.cpp:220
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
std::vector< size_t > getMessageNumbersStartingOnUID(const message::uid &uid)
Return the sequence numbers of messages whose UID equal or greater than the specified UID.
Definition: POP3Folder.cpp:744
const char * name() const
Return a name identifying the exception.
Definition: SMTPExceptions.cpp:140
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
POP3 message implementation.
Definition: POP3Message.hpp:49
#define R1(v, w, x, y, z, i)
Definition: sha1MessageDigest.cpp:55
static bool isSpaceOrTab(const char_t c)
Definition: parserHelpers.hpp:48
shared_ptr< const messageStructure > getStructure() const
Return the MIME structure of the message (must fetch before).
Definition: IMAPMessage.cpp:180
bool operator!=(const word &w) const
Definition: word.cpp:779
path operator/(const path &p) const
Definition: utility/path.cpp:58
Full access mode (read and write).
Definition: folder.hpp:92
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
void open(const int mode, bool failIfModeIsNotAvailable=false)
Open this folder.
Definition: IMAPFolder.cpp:134
static string quote(const string &str, const string &escapeSpecialChars, const string &escapeChar)
Quotes the specified string.
Definition: stringUtils.cpp:221
void create(const folderAttributes &attribs)
Create this folder.
Definition: IMAPFolder.cpp:326
A class to manage timeouts in messaging services.
Definition: timeoutHandler.hpp:46
std::vector< component > list
Definition: utility/path.hpp:46