Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Queries an inline graphics property.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
EmailParser 5.3 Yes Yes Yes Yes Yes
MBS( "EmailParser.Inline"; EmailID; Index; Selector )   More


Parameter Description Example value
EmailID The ID fo the email parser. $Email
Index The index from 0 to EmailParser.InlineCount-1. 0
Selector Which value to return. Can be Filename, MimeType, MimeVersion, ContentType, ContentTransferEncoding, ContentDisposition, ContentDescription, contentId, text or container. "Filename"


Returns value or error.


Queries an inline graphics property.
You can query for example the file name or the mime type.
For storing in a container, you can query the container property. The inline graphics is decoded by the plugin.
You can use Text.MimeTypeToFileExtension to find the file extension for mime type.


Copy all inline graphics into records:

#find all inline graphics
Set Variable [$i; Value:0]
Set Variable [$c; Value:MBS("EmailParser.InlineCount"; $email)]
If [$c > 0]
    Go to Related Record [Show only related records; From table: “InlineGraphics”; Using layout: “InlineGraphics” (InlineGraphics)]
    Go to Layout [“InlineGraphics” (InlineGraphics)]
    Delete All Records [No dialog]
        Set Variable [$Name; Value:MBS("EmailParser.Inline"; $email; $i; "filename")]
        Set Variable [$content; Value:MBS("EmailParser.Inline"; $email; $i; "container")]
        New Record/Request
        Set Field [InlineGraphics::Content; $content]
        Set Field [InlineGraphics::FileName; $name]
        Set Field [InlineGraphics::EmailID; $EmailRecordID]
        Commit Records/Requests [Skip data entry validation; No dialog]
        Set Variable [$i; Value:$i + 1]
        Exit Loop If [$i = $c]
    End Loop
End If

See also

Example Databases

Created 24th September 2015, last changed 16th October 2015

EmailParser.HeaderValue   -   EmailParser.InlineCount

Feedback: Report problem or ask question.

MBS Xojo blog