9 Save Attachments

9.1 Overview

The Save attachments task stores selected attachments of incoming emails as files in the file system. It is probably the most frequently used task - typical use cases are archiving incoming invoices, delivery notes, orders, or contract documents.

The task is organized into several tabs: Storage Location, Attachment Filter, Embedded Images (optional), ZIP Archives, PDF Conversion, and Post-processing.

Profile settings, Save Attachments task: target path editor with placeholder button, attachment filter and options for duplicates and ZIP handling

9.2 "Storage Location" tab

The Storage Location tab specifies where attachments are saved and how the file name is constructed.

9.2.1 Destination Folder

Path to the destination folder. You can enter a fixed path (D:\Archive\Invoices) or insert placeholders (D:\Archive\<EmailYear4>\<EmailMonth>). The Insert Placeholder button opens a selection menu containing all available placeholders (see chapter 70.1). The menu item Copy from profile copies the value of the field from a task of another profile: Recently used lists the last ten sources, All profiles all profiles with matching tasks; the respective value is shown as a hint. With many profiles, Search… at the top of All profiles opens a search window that filters by profile name, task and value as you type; Enter or a double-click applies the selected entry. The same menu item is available for the File name field and for the tasks "Save Message" and "Download file". The … button lets you pick a folder via the file browser.

Tip: With placeholders such as <EmailYear4>\<EmailMonth>, the program automatically creates a time-based folder hierarchy. With <SenderName> or <Subject> the hierarchy can be structured by sender or case.

Below the path field, a button indicates whether the destination folder must already exist or may be created by the program - the mode can be toggled there.

9.2.2 File name

Schema for the file name without extension. Placeholders can be used here too, for example <SenderName>_<EmailYear4>-<EmailMonth>-<EmailDay>_<FileName>. If the field stays empty, the original attachment name is used unchanged.

9.2.3 Preview

In the Preview area, the program shows a resolved sample path - based on the test emails stored under Sample Messages. If no sample messages are available, the preview data entered via the Preview link is used instead.

9.2.4 Treat images embedded in the message text like attachments

If enabled, inline images (images embedded in the message body) are also treated as attachments and saved. Otherwise, only files marked as "real" attachments are considered.

9.2.5 If a file with this name already exists

Option Behavior
Add numbering Appends a sequential number: Invoice.pdf -> Invoice (2).pdf
Overwrite Replaces the existing file
Skip Leaves the existing file and skips the save operation
Add date processed Appends the processing date: Invoice_20260507.pdf
Add processing date and time Appends date and time: Invoice_20260507_103045.pdf

9.2.6 Placeholders from file content

If enabled, the file name may contain placeholders whose values are extracted from the content of the file to be saved - for example an order number from a plain-text file. The Configure button opens the rule editor (see chapter 70.2).

Note: Content can only be extracted from pure text files (e.g. TXT, CSV, XML, JSON, HTML). Binary formats such as PDF, DOCX, or XLSX are not decoded.


9.3 "Attachment Filter" tab

While the profile's message filter decides whether the email as a whole is processed, the attachment filter restricts which attachments are actually saved. Example: an email contains an invoice and an advertising flyer as attachments - only the invoice should be saved.

9.3.1 File name and file type

Field Example
File name must contain Invoice
File name must not contain Ad
File extension must contain .pdf
File extension must not contain .exe

You can enter the file extension with or without a dot (pdf or .pdf). Separate several extensions with <OR>, for example pdf<OR>xml. From version 4.14.0 the empty fields show an example.

9.3.2 File size

Optional size filter with the operators Less than, Greater than, or Between and the units B, KB, and MB.

Attachments without content (0 bytes) are skipped when saving and marked as "Skipped" in the log; the remaining tasks of the profile continue as usual.

9.3.3 Image width and image height

For image files, width and height in pixels can additionally be filtered - for example to save only photographic files (large images) while ignoring small logos in the signature area.

9.3.4 E-invoice type

Filter specifically for e-invoices: ZUGFeRD invoice, XRechnung, or ZUGFeRD or XRechnung.

9.3.5 Respect leading and trailing spaces in filter values

By default, the filter removes leading and trailing spaces from the values you enter. With this option they remain part of the value: Invoice (with a trailing space) then matches "Invoice 4711.pdf", but not "Invoices.pdf". The option applies to the four fields for file name and file extension. Details and an alternative for whole words are described in chapter 30.10.6.


9.4 "Embedded Images" tab

This tab is only visible if the Treat images embedded in the message text like attachments option is enabled on the "Storage Location" tab. Here, the same filter criteria as for regular attachments can be configured separately for embedded images, including the option Respect leading and trailing spaces in filter values (section 9.3.5).

Use case: You want to save regular attachments unfiltered but only embedded images above a certain size - to exclude signature logos and tracking pixels.


9.5 "ZIP Archives" tab

This option automatically unpacks attachments in ZIP format.

Field Description
Extract files from ZIP archives Enables unpacking
Password (if required) Password for encrypted ZIP archives
File name of files to extract contains and … does not contain Filter on the names of the files inside the ZIP archive
Respect leading and trailing spaces in filter values Applies to the two filter fields above (see section 9.3.5)
Also save ZIP archive in destination folder Saves the ZIP archive in addition to the extracted files
Extract content to subfolder (named after ZIP archive) Creates one subfolder per ZIP archive
Extract files only Does not adopt the folders from the ZIP archive; all extracted files end up in one folder
Insert ZIP archive name as prefix in extracted file names Invoice.pdf in the archive Delivery.zip becomes Delivery-Invoice.pdf
When using the name of the ZIP archive Use original name (name of the attachment) or Use dynamic name (name of the stored archive), that is, the name the archive receives according to the file name of the task. Applies to the subfolder and to the prefix

Important: The attachment filter also applies to the ZIP archive itself and is applied before unpacking. If the file extension is restricted there, for example to pdf, a ZIP archive is sorted out and not unpacked. In that case add zip to the filter, for example pdf<OR>zip. The same applies to the filter on the file name. The files inside the archive, in contrast, are only subject to the file filter for ZIP contents. From version 4.14.0 a note appears when the attachment filter sorts out ZIP archives although they are meant to be unpacked.

Note: For security reasons, the program checks the size of unpacked files against the ZIP to prevent so-called "ZIP bomb" attacks.


9.6 "PDF Conversion" tab

Optional conversion of certain attachment types to PDF before saving.

Source Target
Word files (.docx, .doc) PDF
RTF files PDF
Excel files (.xlsx, .xls) PDF
Images (.jpg, .png, .gif, .bmp, ...) PDF

Use case: Incoming Office attachments should be stored uniformly as PDF so they can be displayed on any PC without an Office license.

Note: PDF conversion works independently of an installed Office version. Complex layouts (e.g. embedded fonts, macros) may be rendered slightly differently in the conversion.


9.7 "Post-processing" tab

Actions that are executed after the attachments have been saved.

9.7.1 Run program

Starts an external program after successful processing. Possible use cases: invoking your own processing pipeline, triggering a DMS import, calling a PowerShell file.

Field Description
Program file Path to the executable file
Arguments Command-line parameters, placeholders allowed
Hide program window Hides the console for background calls
Run only once Collects multiple processings and calls the program once after the entire processing run has finished - that is, after all matching profiles have been applied to all messages

9.7.2 Replace saved attachments in the message with links

If enabled, the attachments stored in the Storage Location step are replaced in the original email by a small .attlnk file. The .attlnk file contains the path to the stored original file (storage location + file name).

Field Description
Replace saved attachments in the message with links Enables the replacement.
Delay execution by Waits the specified number of days after saving before the attachments are replaced in the email. Without the check mark, the replacement takes place immediately. Useful if you want the attachments to remain available directly in the email for a few days, or if you want a safety window in which you can check the saved files.

How the delay works: The attachments are saved immediately, the email initially remains unchanged. The log shows the line "Attachment replacement scheduled" for the task, including the earliest execution time. Once the delay has passed, the program replaces the attachments as part of the regular cleanup after the full check (every 15 minutes by default) and updates the log entry. The email is found even if it has been moved to another folder in the meantime. If it has been deleted, the saved file has been removed or the replacement has since been disabled in the task, no replacement takes place and the log states the reason. A copy with the option If attachments are replaced, create copy afterwards (see chapter 18) is also created only after the delayed replacement. A temporarily deactivated profile keeps its scheduled replacements until it is active again; if the profile is deleted, they are dropped. The scheduled replacements of a profile are listed on its Postponed processing page, and the result preview names the replacement including the delay.

Restorable: Via Menu -> More -> Restore attachments… linked attachments can later be restored as real attachments in the email, provided the original files are still present in the storage location.

Prerequisites: IMAP account with write permissions or Microsoft 365 (Graph). POP3 accounts do not support replacement, since POP3 does not allow modifying mail on the server.

9.7.3 Save copies of stored attachments

Saves the file additionally in any number of further destination folders.

Field Description
Destination folder list One or more additional storage paths. Add… selects a folder, Edit… (also double-click or Enter) changes the selected path as text, including placeholders as in the Destination folder field
If a destination folder does not exist create it: the folder is created; if that fails, the task reports an error. try to create it: the folder is created; if that fails, this one copy is skipped without an error (for example a network drive that is not always reachable). skip this copy: the copy is skipped, the folder is not created. report operation as error: the task reports an error
If the file already exists As on the "Storage Location" tab

Use case: An invoice should be filed in the accounting archive and at the same time in a project folder.

9.7.4 If the destination folder is missing

Determines where the message goes when the task ends with an error because the destination folder is missing. This applies with the choice Destination folder must already exist (otherwise: error) below the path field (from version 4.15.0; before, the option had no effect). With the default Destination folder does not need to exist, the program creates the destination folder itself. With the other choices, the section is disabled.

Field Description
Move message Moves the message into the given mailbox folder
Email account The message's own account (default) or a specific account
Move to this mailbox folder Mailbox folder, selectable via …; if it is missing, it is created

The move runs after all profiles, once per message, even if several tasks or profiles report a missing destination folder. The actions Move message and Move to trash of the profiles are then omitted for this message; the log shows them as skipped. The task itself remains an error. After creating the destination folder, put the message back into the monitored folder, for example the inbox, and then process it again in the log via Reprocess message as new…. In the mailbox folder itself, only a profile that monitors this folder picks it up.

If an active profile monitors the chosen mailbox folder, it checks messages moved there again and carries out its tasks once more; a hint below the field points this out. With The message's own account and several monitored accounts, the folder selection shows the first account; the other accounts use the same folder and create it if needed. POP3 accounts cannot move messages.


9.8 Use case

Archive incoming invoices - Destination folder: D:\Archive\Incoming-Invoices\<EmailYear4>\<EmailMonth>. File name: <SenderName>_<EmailYear4>-<EmailMonth>-<EmailDay>_<FileName>. Attachment filter: PDF only, name contains "Invoice". E-invoice: optionally ZUGFeRD or XRechnung.


9.9 Tip

  • For all profiles that save attachments, set a meaningful attachment filter - this is the only way to avoid the unintended storage of logos, tracking pixels, and advertising attachments