VMime
messageParser Class Reference

Public Member Functions

 messageParser (const string &buffer)
 
 messageParser (shared_ptr< const message > msg)
 
 ~messageParser ()
 
const mailboxgetExpeditor () const
 
const addressListgetRecipients () const
 
const addressListgetCopyRecipients () const
 
const addressListgetBlindCopyRecipients () const
 
const textgetSubject () const
 
const datetimegetDate () const
 
size_t getAttachmentCount () const
 
const shared_ptr< const
attachment
getAttachmentAt (const size_t pos) const
 
const std::vector< shared_ptr
< const attachment > > 
getAttachmentList () const
 
const std::vector< shared_ptr
< const textPart > > 
getTextPartList () const
 
size_t getTextPartCount () const
 
const shared_ptr< const textPartgetTextPartAt (const size_t pos) const
 

Detailed Description

A helper for parsing MIME messages.

Constructor & Destructor Documentation

messageParser ( const string buffer)
messageParser ( shared_ptr< const message msg)

Member Function Documentation

const shared_ptr< const attachment > getAttachmentAt ( const size_t  pos) const

Return the attachment at the specified position.

Parameters
posposition of the attachment
Returns
attachment at position 'pos'
size_t getAttachmentCount ( ) const

Return the number of attachments in the message.

Returns
number of attachments
const std::vector< shared_ptr< const attachment > > getAttachmentList ( ) const

Return the attachments of the message.

Returns
list of attachments in the message
const addressList & getBlindCopyRecipients ( ) const

Return the blind-copy recipients of the message (Bcc:).

Returns
blind-copy recipients of the message
const addressList & getCopyRecipients ( ) const

Return the copy recipients of the message (Cc:).

Returns
copy recipients of the message
const datetime & getDate ( ) const

Return the date of the message.

Returns
date of the message
const mailbox & getExpeditor ( ) const

Return the expeditor of the message (From:).

Returns
expeditor of the message
const addressList & getRecipients ( ) const

Return the recipients of the message (To:).

return recipients of the message

const text & getSubject ( ) const

Return the subject of the message.

Returns
subject of the message
const shared_ptr< const textPart > getTextPartAt ( const size_t  pos) const

Return the text part at the specified position.

Parameters
posposition of the text part
Returns
text part at position 'pos'
size_t getTextPartCount ( ) const

Return the number of text parts in the message.

Returns
number of text parts
const std::vector< shared_ptr< const textPart > > getTextPartList ( ) const

Return the text parts of the message.

Returns
list of text parts in the message

The documentation for this class was generated from the following files: