Bugs item #6474, was opened at 2006-11-03 19:34
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=6474&group_id=426

>Category: Network / Comm / Process
Group: 1.8.x
Status: Open
Resolution: None
Priority: 3
Submitted By: Aaron Cohen (aaroncohen)
Assigned to: Nobody (None)
Summary: IMAP error parsing bodystructure of multipart/mixed with message/delivery-status sub-part

Initial Comment:
The net/imap library dies with the following error:

unexpected token LPAR (expected QUOTED or LITERAL)

... when parsing the bodystructure (specifically when attempting to parse the message/delivery-status part) of bounce emails (which render just fine in all user agents I tested) like the attached. 


----------------------------------------------------------------------

Comment By: Aaron Cohen (aaroncohen)
Date: 2006-11-06 15:41

Message:
I've attached the trace log.

----------------------------------------------------------------------

Comment By: Shugo Maeda (shugo)
Date: 2006-11-04 00:39

Message:
Could you send me debug output of Net::IMAP?
Please add the following line to your script to get it.

  require "net/imap"
  Net::IMAP.debug = true

(Please don't forget to sanitize your password in debug output.)

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=6474&group_id=426