Parse message
Anatomy
<mail:parse var="var">
string
</mail:parse>
Description: MAIL:PARSE parses the raw format of an e-mail message according to RFC 2822.
MAIL:PARSE returns an array comprised of the following items:
| Key | Description |
|---|---|
date | Date (Unix timestamp) |
subject | Subject |
sender | Sender |
sender_email | E-mail address of sender |
sender_name | Name of sender |
to | Recipients |
to_email | E-mail address of first recipient |
to_name | Name of first recipient |
to_count | Total number of recipients |
cc | Recipients of carbon copy |
bcc | Recipients of blind carbon copy |
messageid | Message ID |
referenceid | In-reply-to message ID |
receipt | Receipt flag |
autoreply | Autoreply flag |
spam | Spam flag |
contenttype | Content type |
text | Text part * |
html | HTML part * |
attachments | Attachment parts * |
simpletext | Simple text |
simpleattachments | Simple attachments |
- Each part is an array comprised of the following items:
| Key | Description |
|---|---|
contenttype | Content type |
encoding | Content transfer encoding |
charset | Character set |
boundary | Boundary delimiter |
disposition | Content disposition |
filename | Filename |
contentid | Content ID |
rawheader | Raw header |
rawbody | Raw body |
Attributes
| Name | Type | Description | Defined By |
|---|---|---|---|
| var | var | Result variable name | mail:parse |
Results:
| Binding | Type | Predicate |
|---|---|---|
| var | array | no-result-propagation |