diff options
author | Ben Burwell <ben@benburwell.com> | 2019-07-15 10:30:20 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-17 15:58:15 -0400 |
commit | eb0481b9cc7d7cfff9d9c2e163bbe106eb2a0de4 (patch) | |
tree | c51650d3c53e380c3105d8da9aa18747a3c03fc1 /worker/maildir/container.go | |
parent | 8bb115dbae928111be52ed422dafb1caf72a744c (diff) |
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 'worker/maildir/container.go')
0 files changed, 0 insertions, 0 deletions