Skip to content

Read/Save/Attachment Activity

The Read/Save/Attachment activity enables the processing of emails within a specified mail connection and dataset. It facilitates the management of email states, such as marking messages as read or deleted, and provides functionality for saving email bodies and attachments to local directories.

Field Description Requirement
Connection name The reference name of the established mail connection selected from the dropdown menu. Required
Dataset name The reference name of the active dataset selected from the dropdown menu. Required
Mail no The index of the email to process. If empty or set to -1, the action applies to all emails, sorted by oldest first. Optional
Mark as read? Determines whether processed emails are marked as read. Optional
Mark as unread? Determines whether processed emails are marked as unread. Optional
Mark as deleted? Determines whether processed emails are deleted after the operation. Optional
Save attachments? Specifies whether to save attachments found within the emails. Optional
Save attachments recursively? Specifies whether to save attachments contained within .eml and .msg files attached to the email. Optional
Save mail? Determines whether the email message itself is saved to the specified path. Optional
Save path The local or network directory path where emails or attachments are stored. Optional
Attachment Dataset name The reference name for a new dataset created to store metadata about the saved attachments. Optional
Save message body images? Specifies whether to save inline and external URL images. This feature is restricted to IMAP/SMTP connections. Optional

Action Types & Examples

Save Attachments

  • Format: boolean
  • Example Result: "true"

Mail Indexing

  • Format: integer
  • Example Result: "-1"

Directory Path

  • Format: string
  • Example Result: "C:\Temp"

Implementation Examples

Field Setup - Connection name: mailConnection - Dataset name: searchDS - Attachment Dataset name: attachmentDS

Execution Parameters - Mail no: -1 - Save path: C:\Temp - Mark as read?: true

Technical Notes

If the Mail no field is left blank or set to -1, the activity iterates through all emails in the dataset starting from the oldest record. The "Save message body images?" functionality is exclusively available for IMAP and SMTP protocols and will not function with other connection types.