diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-08-06 18:23:35 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-08-06 18:23:35 +0200 |
commit | b5abb144d8a695c36267fe568fa142252168615d (patch) | |
tree | 62afe9571482056bfdae202014d8af607f8b8890 /lib | |
parent | f7513a81e379e3ef4c6946c7e5536fef1616c21b (diff) | |
download | App-ImapNotify-b5abb144d8a695c36267fe568fa142252168615d.tar.gz App-ImapNotify-b5abb144d8a695c36267fe568fa142252168615d.tar.xz |
Decode multi word MIME headers
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/App/ImapNotify.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |