]> git.proxmox.com Git - pmg-docs.git/commitdiff
rule system: add a small section about matching rules
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 9 Feb 2024 12:54:37 +0000 (13:54 +0100)
committerStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 20 Feb 2024 14:46:43 +0000 (15:46 +0100)
this section explains how multiple object categories and multiple
objects interact with the rule matching.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
pmg-mail-filter.adoc

index 3aafe4c38b967b31f6577f8944eb18dcbfe0bc66..57b8a154e9864c0a11591c31900244683e4cb534 100644 (file)
@@ -58,6 +58,23 @@ You can also disable a rule completely, which is mostly useful for
 testing and debugging. The 'Factory Defaults' button allows you to
 reset the filter rules.
 
+Application of Rules
+--------------------
+
+When there is more than one object category or multiple objects configured
+within a single rule, the following logic is used to determine if the rule
+should be applied:
+
+* Within one category (WHAT/FROM/TO/WHEN), all objects are logical-or linked,
+  meaning that only one object of any one object group from the same category
+  has to match for the whole category to match.
+
+* FROM/TO/WHAT/WHEN category match results are logical-and linked, so all
+  categories that have at least one object in them must match for the rule to
+  match.
+
+When these conditions are met, all configured actions are executed.
+
 
 [[pmg_mailfilter_action]]
 'Action' - objects