.seek(0) on the message before passing stdin to the markup process
This commit is contained in:
parent
5df1ebce35
commit
49bdace2f6
1 changed files with 6 additions and 0 deletions
|
@ -541,6 +541,12 @@ func (c *Composer) GenerateMarkup(markupKey string) error {
|
||||||
}
|
}
|
||||||
go func() {
|
go func() {
|
||||||
defer stdin.Close()
|
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)
|
io.Copy(stdin, c.email)
|
||||||
}()
|
}()
|
||||||
outBytes, err := proc.Output()
|
outBytes, err := proc.Output()
|
||||||
|
|
Loading…
Reference in a new issue