Project

General

Profile

Bug #7147

IMAP: emails with message/rfc822 attachments fail to parse

Added by tonyarkles (Tony Arkles) almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 1.9.3p194
[ruby-core:47921]

Description

Doing im.fetch("1:*", "FULL") on my inbox resulted in a few email messages with attached emssage/rfc822 emails (these were forwarded by someone else). These messages failed to parse. I've fixed this in https://github.com/ruby/ruby/pull/193 and https://github.com/ruby/ruby/pull/194.

Associated revisions

Revision 37240
Added by shugo (Shugo Maeda) almost 5 years ago

* lib/net/imap.rb: fix Net::IMAP::ResponseParser to accept
message/delivery-status ( [Bug #7146]),
message/rfc822 attachments ( [Bug #7147]), and
(BODY ("MIXED")) ( [Bug #7153]).

* test/net/imap/test_imap_response_parser.rb: related test.

Revision 37240
Added by shugo (Shugo Maeda) almost 5 years ago

* lib/net/imap.rb: fix Net::IMAP::ResponseParser to accept
message/delivery-status ( [Bug #7146]),
message/rfc822 attachments ( [Bug #7147]), and
(BODY ("MIXED")) ( [Bug #7153]).

* test/net/imap/test_imap_response_parser.rb: related test.

Revision 37240
Added by shugo (Shugo Maeda) almost 5 years ago

* lib/net/imap.rb: fix Net::IMAP::ResponseParser to accept
message/delivery-status ( [Bug #7146]),
message/rfc822 attachments ( [Bug #7147]), and
(BODY ("MIXED")) ( [Bug #7153]).

* test/net/imap/test_imap_response_parser.rb: related test.

Revision 37240
Added by shugo (Shugo Maeda) almost 5 years ago

* lib/net/imap.rb: fix Net::IMAP::ResponseParser to accept
message/delivery-status ( [Bug #7146]),
message/rfc822 attachments ( [Bug #7147]), and
(BODY ("MIXED")) ( [Bug #7153]).

* test/net/imap/test_imap_response_parser.rb: related test.

History

#1 [ruby-core:47926] Updated by shugo (Shugo Maeda) almost 5 years ago

  • Status changed from Open to Assigned
  • Assignee changed from tonyarkles (Tony Arkles) to shugo (Shugo Maeda)

#3 Updated by shugo (Shugo Maeda) almost 5 years ago

  • Status changed from Assigned 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 ( [Bug #7146]),
    message/rfc822 attachments ( [Bug #7147]), and
    (BODY ("MIXED")) ( [Bug #7153]).

  • test/net/imap/test_imap_response_parser.rb: related test.

Also available in: Atom PDF