# mime_hdr, mime_subject, mime_to, mime_from, mime_filelist

Each of these functions accept the data created by the mime_parse() function, and return the relevant portion of the email.

## Arguments

Argument | Data Type | Description
parsedEmail | object | Contents of email returned by the mime_parse() function

## Returns

Function | Returns
--- | ---
mime_hdr(#parsedEmail) | The full header from the email, as a series of lines.
mime_to(#parsedEmail) | TO: line from the header - email addresses of the recipients
mime_from(#parsedEmail) | FROM: line from the header - email address of the sender
mime_cc(#parsedEmail) | CC: line from the header - email addresses of all cc recipients
mime_bcc(#parsedEmail) | BCC: line from the header - email addresses of all bcc recipients
mime_subject(#parsedEmail) | SUBJECT : line from the email
mime_body(#parsedEmail) | Body text of the email. May be HTML formatted
mime_ishtml(#parsedEmail) | True if the body text is HTML formatted

## Description

The mime_parse() function is used to parse an email field or email file into the various elements, The above functions are then sued to extract each of the elements, so that they can be mapped appropriately.