I'm writing an IMAP parser that uses BODYSTRUCTURE to fetch only the
text (not attachments) part of an email. On a few messages, ruby errors
out on imap.fetch id, "BODYSTRUCTURE", with
"Net::IMAP::ResponseParseError: unexpected token LPAR (expected QUOTED
or LITERAL)". I would just rescue it, but it breaks the connection as
well, raising "OpenSSL::SSL::SSLError: SSL_write:: unexpected record"
for any further fetches.

The only two other topics on this I have found have patches, but for
earlier versions of ruby, which I have been unable to adapt.
http://rubyforge.org/tracker/index.php?func=detail&aid=3983&group_id=426&atid=1698
https://www.ruby-forum.com/topic/87177

Help?
-- 
Posted via http://www.ruby-forum.com/.