matcha icon indicating copy to clipboard operation
matcha copied to clipboard

bug: JMAP SendEmail silently drops attachments

Open andrinoff opened this issue 7 months ago • 2 comments

Description

backend/jmap/jmap.go SendEmail manually constructs an RFC5322 message using fmt.Fprintf. It only writes From, To, Cc, Subject, and a plain text body.

Attachments, HTML bodies, and MIME multipart are completely ignored. Sending an email with attachments via JMAP silently drops them.

Expected Behavior

Emails sent via JMAP should include attachments and support multipart MIME, matching the IMAP/SMTP sender behavior.

Suggested Fix

Use go-message to construct the RFC5322 message (consistent with the SMTP sender) or use JMAP's native Email/set with bodyValues and attachments fields instead of raw RFC5322 submission.

andrinoff avatar Apr 15 '26 19: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 16 '26 05:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar May 30 '26 05:05 floatpanebot