diff options
author | Leszek CimaĆa <ernierasta@zori.cz> | 2019-12-07 00:06:29 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-12-07 14:30:33 -0500 |
commit | e84e402e489569b2ab1636ae04016464ec6d46c3 (patch) | |
tree | c06a894e45edbd00cb7233e9592c118305eb27ff /commands/msgview/save.go | |
parent | 30aa77c1c975e7fa25e202add14971d4077cc9e1 (diff) | |
download | aerc-e84e402e489569b2ab1636ae04016464ec6d46c3.tar.gz |
decode(RFC 2047) imap headers to fix encoding in subject & filenames
Me again,
this time fixing encoding of subjects and attachments. It was problem in
IMAP backend. While other backends user MessageInfo() function which
generates MessageInfo decoded via go-message methodes, IMAP worker is
creating MessageInfo directly, so all non-utf8 subjects and filenames
were in raw form.
This patch fixes it. Not sure if we should care about errors (if
DecodeHeader fails it returns raw string back).
>From what I see, this should solve all encoding problem (tested only
IMAP). So, now I can focus on features. ;-)
Have a great weekend!
Leszek
Diffstat (limited to 'commands/msgview/save.go')
0 files changed, 0 insertions, 0 deletions