diff --git a/widgets/compose.go b/widgets/compose.go index 245bd40..0966275 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -541,6 +541,12 @@ func (c *Composer) GenerateMarkup(markupKey string) error { } go func() { defer stdin.Close() + _, err := c.email.Seek(0, io.SeekStart) + if err != nil { + logging.Warnf("failed to seek beginning of mail: %v", err) + return + } + io.Copy(stdin, c.email) }() outBytes, err := proc.Output()