]> git.proxmox.com Git - pmg-api.git/commit
Add rule name to RuleAction logging
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 18 Apr 2019 15:04:32 +0000 (17:04 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 Apr 2019 12:12:36 +0000 (14:12 +0200)
commit365d5b9549d25a910c82cd37034f05e1c906565a
treee3cf20ed1c9ce669d40a51b44c0b46c99499e91b
parent9f7b563c0d7ee86fa0eb920c09e54656a6309e5d
Add rule name to RuleAction logging

With complicated rulesets knowing which rule is responsible for the action
applied to a mail can become complex. Since relevant actions [0] do log a line
when being executed adding the rule's name to this logline should simplify
understanding and debugging complex rules.

Additionally the mix of string interpolation and formatstrings in Quarantine.pm
got unified to formatstrings.

[0] Attach is covered via Notify, Disclaimer and ModField could result in too
verbose logging (i.e. users adding many headers to a mail) without any gain

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
PMG/RuleDB/Accept.pm
PMG/RuleDB/BCC.pm
PMG/RuleDB/Block.pm
PMG/RuleDB/Notify.pm
PMG/RuleDB/Quarantine.pm
PMG/RuleDB/Remove.pm
PMG/RuleDB/ReportSpam.pm