30.22 Related processing filter
30.22.1 Overview ¶
The "Related processing" filter checks whether one of the selected profiles has processed a message of the same counterpart within the last days. This allows processing messages that cannot be recognized by their own content, only by a preceding event. Example: orders arrive in the inbox and are stored by a profile "Orders". The license key and the invoice are then sent from "Sent Items" to other addresses of the same company. A second profile on "Sent Items" uses this criterion to store exactly these messages, without having to evaluate their subject or text.
The criterion is available in the message filter of a profile (since version 4.13.0). It does not access the mailbox: when the selected profiles process messages, the processor records their counterparts in the application data and looks them up there.
30.22.2 Structure of the criterion ¶
| Component |
Description |
| Profiles whose processing counts |
One or more profiles, for example "Orders domestic" and "Orders abroad". It is sufficient if one of them has processed the related message. The list is sorted by name, profiles that are already selected appear at the top when the dialog opens, deactivated profiles at the end with the prefix "[Deactivated]"; the search box above the list narrows down long lists |
| within the last N minutes, hours, days, weeks or months |
Period before the date of the checked message; default 3 days, at most 90 days (a month counts as 30 days). Short periods suit processing chains in which one message immediately follows another |
| Matching |
same domain (default): the part of the address after the @, customer@company.com matches accounting@company.com. same email address: only the identical address counts |
30.22.3 Operators ¶
| Operator |
Description |
| exists |
One of the selected profiles has processed a message of the same counterpart within the period |
| does not exist |
None of the selected profiles has processed such a message |
30.22.4 What counts as a counterpart ¶
- The counterparts of a message are its sender, the reply-to address and all recipients (To, Cc, Bcc). The addresses of your own email accounts and their domains do not count, nor do aliases or shared mailboxes of the same domain. So for a received order the customer is the counterpart, for a sent invoice its recipient.
- With "same domain", two addresses match if the part after the @ is identical. For freemail and other shared domains such as gmail.com, web.de or outlook.com this would match strangers to each other; there the whole address counts automatically.
- Messages that run exclusively between your own addresses have no counterpart and are not recorded. A message without a counterpart never meets "exists" and always meets "does not exist".
30.22.5 Period and recording ¶
- Processing counts if its message was received at most the selected period before the checked message (for sent messages the sent date applies). A related message may also be slightly younger than the checked one, by at most one day and never by more than the selected period, so that clocks and delivery order do not matter.
- Only profiles referenced by such a criterion are recorded, starting when the profile is saved. In the next run, the program additionally takes over the processing of the last 90 days from the processing log once, with the sender and the first recipient of the messages. After that the criterion works immediately.
- The recording covers 90 days; older entries are removed, as are the entries of a profile that is no longer referenced by any criterion. At most 20,000 processing records are kept per profile.
- A catch-up processing (see chapter 60.2) can therefore only recognize relations of the last 90 days.
30.22.6 Time of the check ¶
The criterion is checked at the time of processing. If the related message arrives only after the checked one, or is processed only afterwards in the same run, the criterion is not yet met. For such cases it is treated like the status criteria (see chapter 60.1): with Postpone processing it counts as met on receipt and is checked only when the message becomes due; with Keep waiting for status criteria not yet met when due the program checks the message again in every run until the waiting period expires. For invoices sent a few minutes after the order, a short delay of about one hour is sufficient.
If a filter fails only because of this criterion, the no-match entry in the log names the selected profiles and the period.
30.22.7 Use case: business letters belonging to an order ¶
Situation: Orders go to order@mycompany.com and are stored by the profile "Orders" ("Message text contains Our order"). The license key and the invoice are then sent to other addresses of the customer and should also end up in the folder "Business letters".
Profile "Business letters":
| Setting |
Value |
| Monitored folders |
Sent Items |
| General |
Postpone processing: 1 hour (only needed if invoices are sent before the order has been processed) |
| Message filter |
Related processing exists: Orders (same domain, last 3 days) |
| Afterwards |
Save email to "Business letters" |
Every sent message whose recipient belongs to the domain of a customer whose order was processed in the last three days is stored; all other sent messages remain untouched. If the messages can also be recognized by their content, for example by the subject "Your license key", combine the criterion with it using AND to exclude queries to the same customer.
30.22.8 Notes ¶
- The result preview and the tabs of the retained messages evaluate the criterion like the processing does, because the user interface reads the same records. For a message from "Sent Items" the recipients are required, i.e. the loaded message text for retained messages.
- The records are stored in the file RelatedProcessing.json in the application data and contain the profile, the date and the counterparts per processing. They are included in backups, but not in the support backup.
- The criterion is not available in the exception rules of tasks or in the pre-filter of forwarding.
- When importing a profile from another installation, the criterion refers to profile numbers of the source; check the selection after the import. A deleted profile appears in the criteria list as "deleted profile".