Decode email when reading it for quoting

This commit is contained in:
Drew DeVault 2019-05-16 14:09:57 -04:00
parent 08855f23ec
commit 5701b6e949
2 changed files with 26 additions and 2 deletions
widgets

View file

@ -129,6 +129,7 @@ func (c *Composer) Defaults(defaults map[string]string) *Composer {
func (c *Composer) SetContents(reader io.Reader) *Composer {
c.email.Seek(0, os.SEEK_SET)
io.Copy(c.email, reader)
c.email.Sync()
c.email.Seek(0, os.SEEK_SET)
return c
}