MailAddressParser
The MailAddressParser function outputs the addresses or names parsed from the input mail header's address field (for example, the From, To, or CC fields).
Input/Output
Number of Connections: Min: 1/Max:2
| Input | Data Type | Description |
| Input1 | String | The address list. |
| Input2 | Integer | Sets the Offset property. (optional) |
| Output | Data Type | Description |
| Output1 | String | The list of names or addresses parsed from the input mail header's address field. |
Property
| Name | Property Type | Description |
| Get | choice |
Specifies whether to output the list of names or addresses parsed from the input mail header's address field.
| name | - |
Output the list of names parsed from the input mail header's address field .
|
| address | - |
Output the list of addresses parsed from the input mail header's address field.
|
|
| Offset | int |
If the input mail header's address field data contains multiple addresses, this property specifies which single address, indexed from the beginning of the list, to output.
For example, if set to 1, the first address will be output. If set to 2, the second address will be output, and so forth.
If set to 0, all addresses will be output and separated by the specified Separator.
|
| Separator | string | If Offset is set to 0, this property specifies the separator to be used to separate each output address. |
Error
Case
- The input address list is invalid.
Examples
| Property | Output |
| Input1 | Joe Smith <jsmith@infoteria.com>, "Mary Grant" <mgrant@infoteria.com> | Get | name | Mary Grant |
| | Offset | 2 | |
| | Separator | , | |
| Property | Output |
| Input1 | Joe Smith <jsmith@infoteria.com>, "Mary Grant" <mgrant@infoteria.com> | Get | address | jsmith@infoteria.com,mgrant@infoteria.com |
| | Offset | 0 | |
| | Separator | , | |