Skip to content

Conversation

@toddheasley
Copy link
Collaborator

@toddheasley toddheasley commented Jan 5, 2026

Add MIME feature library as IMAP and SMTP dependency, integrate as follows:

  • IMAP receive/decode multipart email body
  • SMTP send multipart email body
  • Standardize IMAP-SMPT client errors
  • Standardize IMAP-SMTP logging

data.append(line.data(using: .utf8)!)
return data
}
public let body: Body
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Multipart logic moved into MIME library

out.writeString("Date: \(email.date.rfc822Format())\(crlf)")
out.writeString("Message-ID: \(email.messageID)\(crlf)")
out.writeString("Subject: \(email.subject)\(crlf)")
out.writeBytes(email.body.rawValue)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Multipart body and headers already natively data now

@toddheasley toddheasley marked this pull request as ready for review January 5, 2026 15:53
@toddheasley toddheasley requested a review from a team as a code owner January 5, 2026 15:53
@toddheasley toddheasley requested review from asoucar and removed request for a team January 5, 2026 15:53
@toddheasley toddheasley requested a review from Herbal7ea January 6, 2026 17:17
@toddheasley toddheasley removed the request for review from asoucar January 6, 2026 17:17
@toddheasley toddheasley requested a review from wmontwe January 6, 2026 17:17
@toddheasley toddheasley assigned toddheasley and unassigned asoucar and Herbal7ea Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants