]> git.proxmox.com Git - pmg-api.git/commit
utils: ignore leading whitespace in sa description
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 19 Nov 2020 15:48:39 +0000 (16:48 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 25 Nov 2020 09:19:55 +0000 (10:19 +0100)
commit24780ff0792882b8e49d2e5de0da84eea3ddbf1b
tree9d8ff806d388d26b413fbbc56cfdafa638bf94ed
parentd9e79ff4b7f0f9b2c49f06484091546353980c5e
utils: ignore leading whitespace in sa description

load_sa_descriptions is used to parse the 'describe' lines for SpamAssassin
rules for the SpamInfo in the quarantine view.

The regex for parsing is too strict, since config lines can contain
leading whitespace (e.g. due to indentation in an 'ifplugin' block)

checked Mail::SpamAssassin::Conf::Parser and they strip leading/trailing
whitespace as well.

tested on my local setup with a quarantined mail which hit KAM_DMARC_STATUS.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PMG/Utils.pm