From @ryanlchan on January 28, 2013 8:25
Gmail gem will crash when attempting to download a message's labels using the X-GM-LABELS extension when the labels contain a parenthesis (e.g. "Label (crashes)").
Error is cause by using Net::IMAP::ResponseParser#flag_list to load label data; Net::IMAP's FLAG_REGEXP improperly escapes parentheses, which causes the parser to crash.
Solution would be to create a set of dedicated functions to process labels based on the #flag_list model, but using a more inclusive regexp.
Copied from original issue: nu7hatch/gmail#81
From @ryanlchan on January 28, 2013 8:25
Gmail gem will crash when attempting to download a message's labels using the X-GM-LABELS extension when the labels contain a parenthesis (e.g. "Label (crashes)").
Error is cause by using Net::IMAP::ResponseParser#flag_list to load label data; Net::IMAP's FLAG_REGEXP improperly escapes parentheses, which causes the parser to crash.
Solution would be to create a set of dedicated functions to process labels based on the #flag_list model, but using a more inclusive regexp.
Copied from original issue: nu7hatch/gmail#81