this patch follows
6296d93fecb84e71603c15218f6ffc9732173491 in
properly encoding the added header-field, the way the subject is
encoded for a notification.
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
use warnings;
use DBI;
use Digest::SHA;
+use Encode qw(encode decode);
+use MIME::Words qw(encode_mimewords);
use PMG::Utils;
use PMG::ModGroup;
foreach my $ta (@$subgroups) {
my ($tg, $e) = (@$ta[0], @$ta[1]);
- $e->head->replace($self->{field}, $fvalue);
+ $e->head->replace($self->{field}, encode_mimewords(encode('UTF-8', $fvalue), "Charset" => "UTF-8"));
}
}