Set imap.CharsetReader
This adds support for additional charsets when parsing e.g. subject lines.
This commit is contained in:
parent
a4729060be
commit
c3fd390b1a
1 changed files with 5 additions and 1 deletions
6
imap.go
6
imap.go
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue