]> git.proxmox.com Git - pmg-api.git/commit
quarantine: handle utf8 data
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 24 Nov 2022 12:21:06 +0000 (13:21 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 24 Nov 2022 13:38:44 +0000 (14:38 +0100)
commit07f7275e5886402e5b42bcfc5baa391025673a05
treebc87767fa19c8f9a7cf6b84aa32ad7eb3aec28b6
parentc53efc6eb6e55672b3ad325d4080d2cbc7cca8d2
quarantine: handle utf8 data

use try_decode_utf8 for sender/receiver of the smtp dialog and mail
headers since they're either ASCII (not SMTPUTF8) or UTF-8 (with SMTPUTF8)
encoded

change the mail regex for wl/bl to basic email/domain syntax without
the restriction of ascii only. (whitespace and backslashes are
forbidden, but they shouldn't normally occur in email addresses and
domains)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
[ D: Added Commmit message ]
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/PMG/API2/Quarantine.pm
src/PMG/HTMLMail.pm
src/PMG/Quarantine.pm
src/PMG/RuleDB/Spam.pm