]> git.proxmox.com Git - pmg-api.git/commit
ruledb: properly substitute prox_vars in headers
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 24 Nov 2022 12:21:02 +0000 (13:21 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 24 Nov 2022 13:38:44 +0000 (14:38 +0100)
commit3650871c630511bd9f5e533f8df6321196fa1589
tree9f38996908e5067f3ec4d72c4cf52ebe0ebf3924
parent15fcd85c2a0c6fe310c25b9eaa96f2aeff1293a9
ruledb: properly substitute prox_vars in headers

by storing the variables as perl-string (not mime-encoded, and not
utf-8 encoded), and appropriately dealing with multi-line values to
input (folding the headers and encoding as mime).

This fixes another glitch not caught by
d3d6b5dff9e4447d16cb92e0fdf26f67d9384423

the Subject was always displayed with a '?' in the end (due to the
(quoted-printable encoded) \n added).

Additionally adapt the other callsites of PMG::Utils::subst_values
where applicable.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/PMG/RuleDB/BCC.pm
src/PMG/RuleDB/ModField.pm
src/PMG/RuleDB/Notify.pm
src/PMG/Utils.pm
src/bin/pmg-smtp-filter