|
VMime
|
#include <mailbox.hpp>


Public Member Functions | |
| mailbox () | |
| mailbox (const mailbox &mbox) | |
| mailbox (const emailAddress &email) | |
| mailbox (const text &name, const emailAddress &email) | |
| const text & | getName () const |
| void | setName (const text &name) |
| const emailAddress & | getEmail () const |
| void | setEmail (const emailAddress &email) |
| bool | operator== (const class mailbox &mailbox) const |
| bool | operator!= (const class mailbox &mailbox) const |
| void | copyFrom (const component &other) |
| shared_ptr< component > | clone () const |
| mailbox & | operator= (const mailbox &other) |
| bool | isEmpty () const |
| void | clear () |
| const std::vector< shared_ptr< component > > | getChildComponents () |
| bool | isGroup () const |
| void | parseImpl (const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL) |
| void | generateImpl (const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const |
| Public Member Functions inherited from headerFieldValue | |
| size_t | getGeneratedSize (const generationContext &ctx) |
| Public Member Functions inherited from component | |
| component () | |
| virtual | ~component () |
| void | parse (const string &buffer) |
| void | parse (const parsingContext &ctx, const string &buffer) |
| void | parse (shared_ptr< utility::inputStream > inputStream, const size_t length) |
| void | parse (const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL) |
| void | parse (const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL) |
| void | parse (shared_ptr< utility::inputStream > inputStream, const size_t position, const size_t end, size_t *newPosition=NULL) |
| void | parse (const parsingContext &ctx, shared_ptr< utility::inputStream > inputStream, const size_t position, const size_t end, size_t *newPosition=NULL) |
| virtual const string | generate (const size_t maxLineLength=lineLengthLimits::infinite, const size_t curLinePos=0) const |
| virtual void | generate (utility::outputStream &outputStream, const size_t curLinePos=0, size_t *newLinePos=NULL) const |
| virtual void | generate (const generationContext &ctx, utility::outputStream &outputStream, const size_t curLinePos=0, size_t *newLinePos=NULL) const |
| size_t | getParsedOffset () const |
| size_t | getParsedLength () const |
Protected Attributes | |
| text | m_name |
| emailAddress | m_email |
Additional Inherited Members | |
| Static Public Member Functions inherited from address | |
| static shared_ptr< address > | parseNext (const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition, bool *isLastAddressOfGroup) |
| Protected Member Functions inherited from address | |
| address () | |
| Protected Member Functions inherited from component | |
| void | setParsedBounds (const size_t start, const size_t end) |
| virtual void | parseImpl (const parsingContext &ctx, shared_ptr< utility::parserInputStreamAdapter > parser, const size_t position, const size_t end, size_t *newPosition=NULL) |
| Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
A mailbox: full name + email (basic type).
| mailbox | ( | ) |
Referenced by copyFrom(), IMAPFolder::getFolders(), mailbox(), mailboxField, operator!=(), operator=(), and operator==().
| mailbox | ( | const mailbox & | mbox | ) |
References address::address(), m_email, m_name, and mailbox().
| mailbox | ( | const emailAddress & | ) |
References m_email.
| mailbox | ( | const text & | name, |
| const emailAddress & | email ) |
| void clear | ( | ) |
References m_email, and m_name.
Referenced by mailboxField.
|
virtual |
Clone this component.
Implements address.
Referenced by mailboxField.
|
virtual |
Replace data in this component by data in other component.
Both components must be of the same type.
| std::bad_cast_exception | if the components are not of the same (dynamic) type |
| other | other component to copy data from |
Implements component.
References m_email, m_name, and mailbox().
Referenced by mailboxField, and operator=().
|
virtual |
Implements component.
References text::FORCE_ENCODING, generationContext::getMaxLineLength(), m_email, m_name, vmime::NEW_LINE_SEQUENCE, text::QUOTE_IF_POSSIBLE, and vmime::charsets::US_ASCII.
|
virtual |
Return the list of children of this component.
Implements component.
Referenced by mailboxField.
| const emailAddress & getEmail | ( | ) | const |
Return the email of the mailbox.
References m_email.
Referenced by SMTPCommand::MAIL(), mailboxField, MDNHelper::needConfirmation(), SMTPCommand::RCPT(), and sendmailTransport::send().
| const text & getName | ( | ) | const |
Return the full name of the mailbox (empty if not specified).
References m_name.
Referenced by mailboxField.
|
virtual |
Check whether this address is empty (no mailboxes specified if this is a mailboxGroup -or- no email specified if this is a mailbox).
Implements address.
References m_email.
Referenced by mailboxField, and sendmailTransport::send().
|
virtual |
Test whether this is object is a mailboxGroup.
Implements address.
Referenced by mailboxField.
| bool operator!= | ( | const class mailbox & | mailbox | ) | const |
References mailbox().
Referenced by mailboxField.
References copyFrom(), and mailbox().
Referenced by mailboxField.
| bool operator== | ( | const class mailbox & | mailbox | ) | const |
References m_email, m_name, and mailbox().
Referenced by mailboxField.
|
virtual |
Reimplemented from component.
References address::address(), text::decodeAndUnfold(), vmime::end(), parserHelpers::isSpace(), m_email, m_name, and component::setParsedBounds().
| void setEmail | ( | const emailAddress & | ) |
Set the email of the mailbox.
| email of the mailbox |
References m_email.
Referenced by mailboxField.
| void setName | ( | const text & | name | ) |
Set the full name of the mailbox.
| name | full name of the mailbox |
References m_name.
Referenced by mailboxField.
|
protected |
Referenced by clear(), copyFrom(), generateImpl(), getEmail(), isEmpty(), mailbox(), mailbox(), mailbox(), operator==(), parseImpl(), and setEmail().
|
protected |
Referenced by clear(), copyFrom(), generateImpl(), getName(), mailbox(), mailbox(), operator==(), parseImpl(), and setName().