30.20 Message copy filter

30.20.1 Overview

The message copy filter checks whether a copy of the message exists in a specific folder, i.e. another message with the same Message-ID. This allows workflows in which a message is first copied to a filing folder manually, by an Outlook Quick Step, or by another profile, and the original is to be handled only afterwards, for example moved to the trash. Conversely, "does not exist in" ensures that a message is only copied to an archive folder if no copy is there yet.

The criterion is available in the message filter of a profile (since version 4.12.0).


30.20.2 Structure of the criterion

Component Description
Email account Account containing the folder. The default is Account of the checked message, which also works when the profile monitors several accounts. Alternatively a specific account or the default account of this installation
Folder Folder in which to search for the copy. The ... button opens the folder browser of the selected account; for "Account of the checked message" the first account monitored by the profile is browsed
Include subfolders Also searches all subfolders of the selected folder, for example a filing folder with year or customer folders. For Microsoft 365 accounts a single query is sufficient; for IMAP accounts each subfolder is searched individually, so with very many subfolders the check takes correspondingly longer there

30.20.3 Operators

Operator Description
exists in The selected folder contains at least one other message with the same Message-ID
does not exist in The selected folder contains no such message

30.20.4 What counts as a copy

  • Detection is based on the Message-ID of the message. Copying and moving in the email client as well as the tasks Copy message and Move message keep it. Forwarded and newly composed messages carry their own Message-ID and do not count as copies.
  • The search covers messages dated from two days before the received or sent date of the message, whichever is earlier. An older message with the same Message-ID, for example an earlier delivery of the same email, does not count as a copy.
  • The checked message itself does not count as a copy, even if the selected folder is its own folder, for example a subfolder of a folder monitored with "including subfolders".
  • With Include subfolders, a copy in any subfolder of the selected folder counts. Newly created subfolders are taken into account after a few minutes at the latest.
  • If the folder does not exist, this counts as "no copy". For "does not exist in" this is convenient because the destination folder of a copy task is often created only with the first copy.
  • A message without a Message-ID cannot be matched reliably. The criterion is then not met in either direction, so that an unclear state does not trigger any action. Such a message is not postponed either, and the no-match entry in the log names the reason.
  • POP3 accounts have no folders, so there is never a copy.

30.20.5 Time of the check

Like the status criteria (read, replied, flagged, category), the message copy is checked at the time of processing, usually shortly after the message has been received. If the copy is created later, combine the criterion with Delay processing on the General page (see chapter 60.1). What happens on receipt then depends on whether the selected folder (with "Include subfolders": the folder or one of its subfolders) is monitored by an active profile:

  • Folder monitored (from version 4.13.0): The program checks for the copy immediately. If it already exists, the message is postponed as usual. If it is still missing, the message is not postponed but only noted as waiting for the copy; it appears in the log under "No match" with a note that the program is waiting for the copy, not in the list of postponed processings, and causes no check per run until then. As soon as the copy arrives in the monitored folder, the message is postponed and checked when the delay has elapsed. At the end of the waiting period at the latest (delay plus the days from "Keep waiting for status criteria not yet met once the delay has elapsed"), the program checks the message once conclusively; this also catches copies in a subfolder that is not monitored. If the profile monitoring the folder is deactivated or deleted, or the criterion is changed, waiting messages are postponed as usual in the next run.
  • Folder not monitored: On receipt the message is postponed, and the criterion is treated as met. Only when the delay has elapsed does the program check whether the copy actually exists.

If the filter does not match when the delay has elapsed, the message is a "no match" for this profile and is not checked again, except by a catch-up run (see chapter 60.2). If the program should instead keep waiting until the copy has been created or, for example, a flag has been removed, also enable the option Keep waiting for status criteria not yet met once the delay has elapsed, at most N days (see chapter 60.1). The message is then checked again in every run until the waiting period expires.


30.20.6 Use case: clean up the original after filing

Situation: An Outlook Quick Step copies messages that need a reply to the folder "Filing". This folder is monitored by profile A, which saves the messages. The original remains flagged in the inbox until it has been answered; then the flag is removed.

Profile B cleans up the originals:

Setting Value
Monitored folders Inbox
General Delay processing: 2 days; keep waiting for status criteria not yet met once the delay has elapsed, at most 2 days
Message filter see below
Afterwards Move message to "Deleted Items"
1. Message copy exists in Filing   AND
2. Flagged is No

Messages without a copy (no reply needed) are not postponed, because "Filing" is monitored by profile A; they only wait for a copy to appear and count as "no match" once the waiting period has expired. When the Quick Step creates the copy in "Filing", the program postpones the original. Two days after receipt, profile B then checks: if the flag has been removed, the original is moved to the trash. If it is still set, profile B waits up to two more days and checks the message again in every run without searching the "Filing" folder; if the flag is removed during this time, the program searches for the copy and moves the original.


30.20.7 Notes

  • The folder is only searched if the other criteria of the filter are met and the result actually depends on the copy. Messages that already fail another criterion cause no access to the filing folder, regardless of the order of the criteria.
  • The filter preview with sample messages cannot check the copy because this would require access to the mailbox. Such rows are reported as "is only checked during processing" and count as met in the preview.
  • If the folder cannot be checked during processing, for example because the selected account is temporarily unreachable, the message is not recorded as "no match" but is checked again in the next run. The error log names the affected profile.
  • The criterion is not available in the exception rules of tasks or in the pre-filter of the forwarding task.