messageParser Class Reference

A helper for parsing MIME messages. More...

Collaboration diagram for messageParser:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Detailed Description

A helper for parsing MIME messages.


Constructor & Destructor Documentation

messageParser ( const string buffer  ) 
messageParser ( ref< const message msg  ) 
~messageParser (  ) 

Member Function Documentation

const ref< const attachment > getAttachmentAt ( const int  pos  )  const

Return the attachment at the specified position.

Parameters:
pos position of the attachment
Returns:
attachment at position 'pos'
int getAttachmentCount (  )  const

Return the number of attachments in the message.

Returns:
number of attachments
const std::vector< ref< 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 ref< const textPart > getTextPartAt ( const int  pos  )  const

Return the text part at the specified position.

Parameters:
pos position of the text part
Returns:
text part at position 'pos'
int getTextPartCount (  )  const

Return the number of text parts in the message.

Returns:
number of text parts
const std::vector< ref< 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:

Generated by  doxygen 1.6.2