Bug #7153
closedIMAP: emails with (BODY ("MIXED")) returned from fetch fail to parse
Description
I'm not sure if this is even valid IMAP (I couldn't find a reference to it in the RFC), but Google's IMAP server seems to return these occasionally. Found a message in my Inbox that wouldn't parse because of this.
I've added a test and fixed the module. Will post the pull request here right away.
Updated by tonyarkles (Tony Arkles) about 12 years ago
OK, the patch for this will have conflicts with the patches for #7145, #7146, and #7147 because it also adds unit tests to test_imap_response_parser.rb. I'm not sure what the best approach is for this... Whether to wait until that pull request is accepted and do a second one, or to just add this fix into the original pull request.
Updated by tonyarkles (Tony Arkles) about 12 years ago
Pull request: https://github.com/ruby/ruby/pull/196
Updated by shugo (Shugo Maeda) about 12 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r37240.
Tony, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
-
lib/net/imap.rb: fix Net::IMAP::ResponseParser to accept
message/delivery-status ([ruby-core:47920] [Bug #7146]),
message/rfc822 attachments ([ruby-core:47921] [Bug #7147]), and
(BODY ("MIXED")) ([ruby-core:47951] [Bug #7153]). -
test/net/imap/test_imap_response_parser.rb: related test.