]> git.proxmox.com Git - pmg-api.git/commit
RuleDB/Notify: properly en-/decode the mail subject
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 5 Oct 2022 07:49:41 +0000 (09:49 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 5 Oct 2022 16:34:52 +0000 (18:34 +0200)
commit6296d93fecb84e71603c15218f6ffc9732173491
tree0d55f0d83c29f0998ad2a334a85ff745cdc2c44b
parenta34b95dbcd64ba5155bdb23da6d3d8feb88a0870
RuleDB/Notify: properly en-/decode the mail subject

we need to mime decode the subject after reading it, so that we get
the 'real' subject instead of the (possibly) mime encoded one (which
might be base64 or quoted-printable encoded). To get a proper subject in
the notification mail again, we have to encode it again before passing
it MIME::Entity->build

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