apple / apple/swift-nio-examples
NIOSMTP: should implement escaping
- Dominant language
- Swift
- Stars
- 256
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
### Expected behavior
NIOSMTP's should escape things like names and the body of an email so you can send anything without errors.
### Actual behavior
Nothing is escaped, for example putting an line just containing a full stop (`.`) in an email will cause an SMTP protocol error. The emails should be properly MIME encoded instead.
### Steps to reproduce
Try to send an email with NIOSMTP containing a line with just a full stop.
Contributor guide
Research direction
Start by locating the NIOSMTP message-building and sending entry points, then reproduce the failure with a line containing only a full stop. Trace how names and the email body are emitted and compare the required MIME and SMTP escaping behavior. Done means such messages send successfully without SMTP protocol errors, with coverage for the reproduced case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100