---
title: "mail:parse — Parse message"
description: "iXML command mail:parse: Parse message."
canonical_url: "https://www.zeyos.com/ixml/ref/mail-parse"
markdown_url: "https://www.zeyos.com/ai/guide/ixml/ref/mail-parse.md"
section: "ixml-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/ixmldoc.xml"
source_sha256: "a23f04e6a98628ca3c273c3b8dd2c33c034cfda3e0f00478d8793074fd2f70dd"
---

# mail:parse — Parse message

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 | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Result variable name |

### Children
- (none)

### Parents
- (not restricted in the reference)

### Result
- binding: var; type: array; predicate: no-result-propagation
