aboutsummaryrefslogtreecommitdiff
path: root/commands/msgview/next.go
diff options
context:
space:
mode:
authorLeszek CimaƂa <ernierasta@zori.cz>2019-12-07 00:06:29 +0100
committerDrew DeVault <sir@cmpwn.com>2019-12-07 14:30:33 -0500
commite84e402e489569b2ab1636ae04016464ec6d46c3 (patch)
treec06a894e45edbd00cb7233e9592c118305eb27ff /commands/msgview/next.go
parent30aa77c1c975e7fa25e202add14971d4077cc9e1 (diff)
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/next.go')
0 files changed, 0 insertions, 0 deletions