From b5abb144d8a695c36267fe568fa142252168615d Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 6 Aug 2018 18:23:35 +0200 Subject: Decode multi word MIME headers Signed-off-by: Florian Pritz --- lib/App/ImapNotify.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/App') diff --git a/lib/App/ImapNotify.pm b/lib/App/ImapNotify.pm index 675d695..cbdc4ac 100644 --- a/lib/App/ImapNotify.pm +++ b/lib/App/ImapNotify.pm @@ -146,8 +146,8 @@ method _notify($message) { next; } - if ($line =~ m/^\s+(.*)$/) { - $fields->{$current_field} .= $1; + if ($line =~ m/^\s+(.*)\r$/) { + $fields->{$current_field} .= decode('MIME-Header', $1); } } -- cgit v1.2.3-24-g4f1b