matcha
matcha copied to clipboard
BUG: Unchecked qp.Close() errors in sender multipart composition
Describe the bug
In sender.go (lines 220, 360, 373, 804, 816, 830), multiple Close() calls on quoted-printable writers and multipart writers don't check the returned error. A failed Close() means the MIME part wasn't properly terminated, resulting in malformed emails.
To reproduce
- Send an email under memory pressure where write buffers can't flush
- Email sends with malformed MIME structure
Expected behavior
All Close() calls should check and propagate errors. Use defer with error capture where appropriate.
This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.
Closing due to inactivity. Reopen if still relevant.