Bug #7146

IMAP: messages with a mime-attachment of type "message/delivery-notification" fail

Added by Tony Arkles over 1 year ago. Updated over 1 year ago.

[ruby-core:47920]
Status:Closed
Priority:Normal
Assignee:Shugo Maeda
Category:lib
Target version:-
ruby -v: Backport:

Description

When doing im.fetch("1:*", "FULL") on my inbox, I discovered an email message that had a delivery notification attached to it. This failed to parse around line 2414 in imap.rb. 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 Maeda over 1 year 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/testimapresponse_parser.rb: related test.

History

#1 Updated by Tony Arkles over 1 year ago

Was in version "ruby 1.9.3p194" that I noticed the problem.

#2 Updated by Shugo Maeda over 1 year ago

  • Status changed from Open to Assigned
  • Assignee changed from Tony Arkles to Shugo Maeda

#3 Updated by Tony Arkles over 1 year ago

I accidentally broke the pull request. Fixed one at https://github.com/ruby/ruby/pull/196

#4 Updated by Shugo Maeda over 1 year ago

  • Tracker changed from Feature to Bug

#5 Updated by Shugo Maeda over 1 year 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/testimapresponse_parser.rb: related test.

Also available in: Atom PDF