summary refs log tree commit diff stats
path: root/commands/msg/copy.go
diff options
context:
space:
mode:
authorBen Burwell <ben@benburwell.com>2019-07-15 10:30:20 -0400
committerDrew DeVault <sir@cmpwn.com>2019-07-17 15:58:15 -0400
commiteb0481b9cc7d7cfff9d9c2e163bbe106eb2a0de4 (patch)
treec51650d3c53e380c3105d8da9aa18747a3c03fc1 /commands/msg/copy.go
parent8bb115dbae928111be52ed422dafb1caf72a744c (diff)
downloadaerc-eb0481b9cc7d7cfff9d9c2e163bbe106eb2a0de4.tar.gz
Fix header decoding
Email headers can be encoded with different charsets, which is signalled
using a special character sequence. The go-message package provides two
different methods for accessing header values, Get(key) (actually
inherited from the embedded textproto.Header) which returns the raw
header value and Text(key), which returns the header's value decoded as
UTF-8.

Before, in the maildir backend, we were using the Get method which
sometimes resulted in encoded headers being displayed in the UI. This
patch replaces the incorrect usage of Get() with Text().
Diffstat (limited to 'commands/msg/copy.go')
0 files changed, 0 insertions, 0 deletions