From 5701b6e94968e6e84dd0c197eaf1dd8eb757da7b Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 16 May 2019 14:09:57 -0400 Subject: Decode email when reading it for quoting --- widgets/compose.go | 1 + 1 file changed, 1 insertion(+) (limited to 'widgets/compose.go') diff --git a/widgets/compose.go b/widgets/compose.go index 14dfaaa2..18fe38ce 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -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 } -- cgit