Fix missing format fields in maildir/container.go
This commit is contained in:
parent
5b2336d0d7
commit
dba16157de
1 changed files with 2 additions and 2 deletions
|
@ -129,12 +129,12 @@ func (c *Container) copyMessage(
|
||||||
|
|
||||||
del, err := dest.NewDelivery()
|
del, err := dest.NewDelivery()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("could not initialize delivery: %v")
|
return fmt.Errorf("could not initialize delivery: %v", err)
|
||||||
}
|
}
|
||||||
defer del.Close()
|
defer del.Close()
|
||||||
|
|
||||||
if _, err = io.Copy(del, f); err != nil {
|
if _, err = io.Copy(del, f); err != nil {
|
||||||
return fmt.Errorf("could not copy message to delivery: %v")
|
return fmt.Errorf("could not copy message to delivery: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: preserve flags
|
// TODO: preserve flags
|
||||||
|
|
Loading…
Reference in a new issue