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: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

DragDrop.GetEmailSubject

Returns subject of the specified email message.

Component Version macOS Windows Linux Server iOS SDK
DragDrop 2.7 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "DragDrop.GetEmailSubject"; droparea; Index )   More

Parameters

Parameter Description Example
droparea The reference ID for this drop area. Use functions like DragDrop.CreateWithControl to create a drop area. $dropHandle
Index Optiona, zero based index of the received email. Default is 0. 1

Result

The email subject as text.

Description

Returns subject of the specified email message.
Index from 0 to DragDrop.GetEmailCount -1.

For an email drag from Apple Mail, the function DragDrop.GetPath may give the path to a copy of the email file in temporary folder.

This is metadata provided by Apple Mail. Alternatively you can get more if you take the email source and use our EmailParser functions to read the email file.

Examples

Query subject of last email drop:

Set Variable [ $subject ; Value: MBS( "DragDrop.GetEmailSubject"; $$dropview; 0 ) ]
Show Custom Dialog [ "Email subject" ; $subject ]

See also

Example Databases

This function is free to use.

Created 18th August 2014, last changed 18th December 2020


DragDrop.GetEmailMailbox - DragDrop.GetFileDescriptor

💬 Ask a question or report a problem