VMime
|
A helper for building MIME messages.
messageBuilder | ( | ) |
~messageBuilder | ( | ) |
void appendAttachment | ( | shared_ptr< attachment > | attach | ) |
Attach a new object to the message.
attach | new attachment |
Referenced by messageBuilder::attach().
void attach | ( | shared_ptr< attachment > | attach | ) |
Attach a new object to the message.
attach | new attachment |
References messageBuilder::appendAttachment().
shared_ptr< message > construct | ( | ) | const |
Construct a new message based on the information specified in this object.
References vmime::clone(), addressList::getAddressAt(), bodyPart::getBody(), bodyPart::getHeader(), mailbox::isEmpty(), addressList::isEmpty(), vmime::mediaTypes::MULTIPART, vmime::mediaTypes::MULTIPART_ALTERNATIVE, vmime::mediaTypes::MULTIPART_MIXED, datetime::now(), and vmime::SUPPORTED_MIME_VERSION.
void constructTextPart | ( | const mediaType & | type | ) |
Change the type of the text part and construct a new part.
type | media type of the text part |
References textPartFactory::create(), and textPartFactory::getInstance().
Referenced by messageBuilder::messageBuilder().
const shared_ptr< const attachment > getAttachmentAt | ( | const size_t | pos | ) | const |
Return the attachment at the specified position.
pos | position of the attachment |
shared_ptr< attachment > getAttachmentAt | ( | const size_t | pos | ) |
Return the attachment at the specified position.
pos | position of the attachment |
size_t getAttachmentCount | ( | ) | const |
Return the number of attachments in the message.
const std::vector< shared_ptr< const attachment > > getAttachmentList | ( | ) | const |
Return the list of attachments.
const std::vector< shared_ptr< attachment > > getAttachmentList | ( | ) |
Return the list of attachments.
const addressList & getBlindCopyRecipients | ( | ) | const |
Return the blind-copy recipients of the message (Bcc:).
addressList & getBlindCopyRecipients | ( | ) |
Return the blind-copy recipients of the message (Bcc:).
const addressList & getCopyRecipients | ( | ) | const |
Return the copy recipients of the message (Cc:).
addressList & getCopyRecipients | ( | ) |
Return the copy recipients of the message (Cc:).
const mailbox & getExpeditor | ( | ) | const |
Return the expeditor of the message (From:).
const addressList & getRecipients | ( | ) | const |
Return the recipients of the message (To:).
return recipients of the message
addressList & getRecipients | ( | ) |
Return the recipients of the message (To:).
return recipients of the message
const text & getSubject | ( | ) | const |
Return the subject of the message.
shared_ptr< textPart > getTextPart | ( | ) |
Return the text part of the message.
void removeAttachment | ( | const size_t | pos | ) |
Remove the attachment at the specified position.
pos | position of the attachment to remove |
void setBlindCopyRecipients | ( | const addressList & | bcc | ) |
Set the blind-copy recipients of the message (Bcc:).
bcc | list of blind-copy recipients |
void setCopyRecipients | ( | const addressList & | cc | ) |
Set the copy recipients of the message (Cc:).
cc | list of copy recipients |
void setExpeditor | ( | const mailbox & | expeditor | ) |
Set the expeditor of the message (From:).
expeditor | expeditor of the message |
void setRecipients | ( | const addressList & | recipients | ) |
Set the recipients of the message (To:).
recipients | list of recipients |
void setSubject | ( | const text & | subject | ) |
Set the subject of the message.
subject | message subject |