matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Unchecked qp.Close() errors in sender multipart composition

Open andrinoff opened this issue 7 months ago • 2 comments

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

  1. Send an email under memory pressure where write buffers can't flush
  2. Email sends with malformed MIME structure

Expected behavior

All Close() calls should check and propagate errors. Use defer with error capture where appropriate.

andrinoff avatar Apr 24 '26 20:04 andrinoff

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.

floatpanebot avatar May 26 '26 06:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar Jun 09 '26 06:06 floatpanebot