]> git.proxmox.com Git - pmg-api.git/commit
api/postfix: add 'decode-headers' to postfix queue read
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 3 Feb 2022 08:29:23 +0000 (09:29 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 3 Feb 2022 09:12:18 +0000 (10:12 +0100)
commitd66ca65128f65428c308669a28f3657f51d59d26
tree615dc7ba1a874e3c4b71581430272b1921a39f9a
parent913af3f803de96eb876d1d2f9c294652448c9597
api/postfix: add 'decode-headers' to postfix queue read

often, the users want to show the *decoded* header, iow. they want
to see the readable subject,from,to, etc. not the quoted-printable
versions.

so add a new parameter that decodes the header lines as we read them
using MIME::WordDecoder's 'mime_to_perl_string'.

for backwards compatibility, this is not the default in the api

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/PMG/API2/Postfix.pm
src/PMG/Postfix.pm