Bugs: Browse | Submit New | Admin

[#6474] IMAP error parsing bodystructure of multipart/mixed with message/delivery-status sub-part

Date:
2006-11-04 03:34
Priority:
3
Submitted By:
Aaron Cohen (aaroncohen)
Assigned To:
Akinori MUSHA (knu)
Category:
Network / Comm / Protocols
State:
Open
Platform:
 
Summary:
IMAP error parsing bodystructure of multipart/mixed with message/delivery-status sub-part

Detailed description
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.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2007-09-29 02:57
Sender: Aria Stewart

A patch to fix the parse error (and discard the information previously
unhandled) is at http://dinhe.net/~aredridel/2007/09/28-imap/
Date: 2006-11-06 23:41
Sender: Aaron Cohen

I've attached the trace log.
Date: 2006-11-04 08:39
Sender: Shugo Maeda

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.)

Attached Files:

Name Description Download
Returned mail_ see transcript for details.eml Unparsable email message Download
imap_crash_log.txt imap crash log Download

Changes:

Field Old Value Date By
assigned_tonone2007-06-12 02:25zenspider
category_idMisc / Other Standard Library2007-05-29 20:49zenspider
File Added929: imap_crash_log.txt2006-11-06 23:41aaroncohen
File Added916: Returned mail_ see transcript for details.eml2006-11-04 03:34aaroncohen