Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe mailer now creates RFC-formatted single-part or multipart messages, adds generated message metadata, encodes attachments with standard MIME writers, skips invalid attachments, and returns composition errors. Tests parse generated messages and verify headers, parts, boundaries, IDs, encoding, and delimiters. ChangesMailer MIME composition
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The mailer preserves its HTML body contract and no actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Date,Message-ID, andMIME-Versionheaders to outgoing messagestext/htmlmultipart/mixedonly when attachments are presentTests
go test -p 1 -parallel 1 ./internal/cmn/mailer -count=1go test -p 1 -parallel 1 ./internal/runtime/builtin/mail -count=1go vet ./internal/cmn/mailer ./internal/runtime/builtin/mailFixes #2803
Summary by cubic
Fixes #2803 by generating RFC-compliant MIME messages so email clients no longer misinterpret outgoing mail. Previously every message used
multipart/mixedwith a fixed boundary and lackedDate,Message-ID, andMIME-Version; now all messages include these headers, messages without readable attachments are single-parttext/html, multipart messages use unique boundaries, and base64-encoded content is wrapped at 76 characters per line. SMTP sending now reports email composition failures clearly.Written for commit 500e8c9. Summary will update on new commits.
Summary by CodeRabbit