Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
EmailParser.Address
Queries an address value.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
EmailParser | 5.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameters
Parameter | Description | Example |
---|---|---|
EmailID | The ID fo the email parser. | |
Index | The index from 0 to EmailParser.AddressCount-1. | 0 |
Selector | Which value to return. Can be type, name or email. | "name" |
Result
Returns value or error.
Description
Queries an address value.An address has a type which can be TO, CC, BCC, ReplyTo, Sender or From.
Name is the label which can be empty. Email is the email address.
Examples
Copy all addresses into records:
#find all addresses
Set Variable [$EmailRecordID; Value:Get(RecordID)]
Set Variable [$i; Value:0]
Set Variable [$c; Value:MBS("EmailParser.AddressCount"; $email)]
If [$c > 0]
Go to Related Record [Show only related records; From table: “Address”; Using layout: “Address” (Address)]
Go to Layout [“Address” (Address)]
Delete All Records [No dialog]
Loop
Set Variable [$Name; Value:MBS("EmailParser.Address"; $email; $i; "name")]
Set Variable [$emailAddress; Value:MBS("EmailParser.Address"; $email; $i; "email")]
Set Variable [$type; Value:MBS("EmailParser.Address"; $email; $i; "type")]
New Record/Request
Set Field [Address::Type; $type]
Set Field [Address::Email; $emailAddress]
Set Field [Address::Name; $name]
Set Field [Address::EmailID; $EmailRecordID]
Commit Records/Requests [Skip data entry validation; No dialog]
#next
Set Variable [$i; Value:$i + 1]
Exit Loop If [$i = $c]
End Loop
End If
See also
Example Databases
- CURL/Email/Email Client
- CURL/Email/Email Parser and Preview
- CURL/Email/Email Parser
- CURL/Email/IMAP Email
Blog Entries
This function is free to use.
Created 24th September 2015, last changed 16th October 2015