Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
EmailParser.Address
Queries an address value.
| Component | Version | macOS | Windows | Linux | Server | FileMaker 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
Created 24th September 2015, last changed 16th October 2015
Email.Verify - EmailParser.AddressCount
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins