From 1b09b3a26141c22f37b6ab3ed9af15fcbddd18f8 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Thu, 2 Mar 2023 17:34:20 +0100 Subject: Bugfixes 1. correctly read mime parts 2. avoid encoding issues when parsing json form qmauth 3. use 'replace' instead of 'strict' error handling when decoding mails in qmauth.py --- lib/JWebmail/Controller/Webmail.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/JWebmail/Controller/Webmail.pm') diff --git a/lib/JWebmail/Controller/Webmail.pm b/lib/JWebmail/Controller/Webmail.pm index 2f71021..a1d25c3 100644 --- a/lib/JWebmail/Controller/Webmail.pm +++ b/lib/JWebmail/Controller/Webmail.pm @@ -211,7 +211,7 @@ sub readmail { if ($type) { if ($mail->{head}{mime}{content_maintype} eq 'multipart') { - my $content = first {$_->{head}{mime}{content_subtype} eq $type} @{ $mail->{body} }; + my $content = first {$_->{head}{mime}{content_subtype} eq $type} $mail->{body}{parts}->@*; $self->render(text => $content->{body}); } elsif ($mail->{head}{mime}{content_subtype} eq $type) { -- cgit v1.2.3