-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
I noticed that Net::MailMessage::read(std::istream&) is unable to parse a multipart message that contains
"Content-disposition:" section (as oposed to "Content-Disposition:" which is parsed correctly).
I'm not an expert on email-related RFCs, but
- one of the email web-clients that I use did send a message with the problematic capitalization
- this message was parsed correctly by two different webmail clients that I use (including Google's one)
- MailMessage::read() does not seem have problems when I change "Content-Type:" to "Content-type:"
A small example illustraitng the problem is in the attachment. To see the unexpected [incorrect?] behavior, simply
change "Content-Disposition:" to "Content-disposition:" in the raw_message string literal at the beggining of main().
The resulting new raw message string (obtained through Net::MailMessage::write()) does not have the section with "Content-disposition:" at all.
Reactions are currently unavailable