c05af16c
email: fix partial bodies
Depending on the email and buffer size, cleartext.Close() and
body.Close() may happen *after* buf.Bytes() is called; producing
incomplete emails, interrupted in the middle of the body.
Make sure to close both *before* getting the buffer contents.
Fixes: db4d67a2a6fb ("email: fix empty emails sent on retries")
Signed-off-by: Robin Jarry <robin@jarry.cc>
Robin Jarry <robin@jarry.cc> — 2025-01-13 22:37:10 UTC
Commit c05af16cf4fb6c318324f390eea49acda1e76b00 —
view raw patch
Parent(s):
78a07dca
| File | Status | + | − |
|---|---|---|---|
email/worker.go
|
M | +2 | -2 |