Skip to content

Improperly processing labels containing parentheses #81

Description

@johnnyshields

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions