diff options
author | 2019-12-03 17:35:04 +0100 | |
---|---|---|
committer | 2019-12-03 17:35:04 +0100 | |
commit | c3fd390b1ab27026246724f02caef3cd2b1205f7 (patch) | |
tree | 30ea427baee6586c185543bf4ebedc20f8f15022 | |
parent | a4729060bedd45481726861c491d5061e90ffefa (diff) | |
download | alps-c3fd390b1ab27026246724f02caef3cd2b1205f7.tar.gz alps-c3fd390b1ab27026246724f02caef3cd2b1205f7.tar.bz2 alps-c3fd390b1ab27026246724f02caef3cd2b1205f7.zip |
Set imap.CharsetReader
This adds support for additional charsets when parsing e.g. subject
lines.
-rw-r--r-- | imap.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -10,10 +10,14 @@ import ( "github.com/emersion/go-imap" imapclient "github.com/emersion/go-imap/client" "github.com/emersion/go-message" - _ "github.com/emersion/go-message/charset" + "github.com/emersion/go-message/charset" "github.com/emersion/go-message/textproto" ) +func init() { + imap.CharsetReader = charset.Reader +} + func (s *Server) connectIMAP() (*imapclient.Client, error) { var c *imapclient.Client var err error |