{"action":"opened","issue":{"url":"https://api.github.com/repos/kisli/vmime/issues/113","labels_url":"https://api.github.com/repos/kisli/vmime/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/kisli/vmime/issues/113/comments","events_url":"https://api.github.com/repos/kisli/vmime/issues/113/events","html_url":"https://github.com/kisli/vmime/issues/113","id":84735503,"number":113,"title":"Exception, when fetch IMAP account with flag vmime::net::fetchAttributes::STRUCTURE","user":{"login":"7i77an","id":12736319,"avatar_url":"https://avatars.githubusercontent.com/u/12736319?v=3","gravatar_id":"","url":"https://api.github.com/users/7i77an","html_url":"https://github.com/7i77an","followers_url":"https://api.github.com/users/7i77an/followers","following_url":"https://api.github.com/users/7i77an/following{/other_user}","gists_url":"https://api.github.com/users/7i77an/gists{/gist_id}","starred_url":"https://api.github.com/users/7i77an/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/7i77an/subscriptions","organizations_url":"https://api.github.com/users/7i77an/orgs","repos_url":"https://api.github.com/users/7i77an/repos","events_url":"https://api.github.com/users/7i77an/events{/privacy}","received_events_url":"https://api.github.com/users/7i77an/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-03T19:31:11Z","updated_at":"2015-06-03T19:31:11Z","closed_at":null,"body":"Hi Vincent,\r\n\r\nI have a issue to IMAP.\r\nWhen invoke fetchmessages with a particular email, with STRUCTURE flag, i have an exception.\r\nThis is the response:\r\n\r\n* 11 FETCH (FLAGS (\\Seen \\Flagged) BODYSTRUCTURE \r\n(\r\n(\"text\" \"plain\" (\"charset\" \"utf-8\") NIL NIL \"7bit\" 3315 111 NIL NIL NIL NIL)\r\n(\"text\" \"html\" (\"charset\" \"utf-8\") NIL NIL \"7bit\" 13642 192 NIL NIL NIL NIL) \r\n\"alternative\" (\"boundary\" \"=_174225397a091d5291b2b9e2f3abb3f2\") \r\n\"4d6c345b9ftuexperiencia%40better.com!83a!38876!77fbf207!rynof13.pbz!\" NIL\r\n)\r\nUID 398597 RFC822.HEADER {5036}\r\n\r\nI assumed at first that the error was related to the incident of exchange and IMAP4.\r\nBut I could see that the problem is given here:\r\n\r\nif (VIMAP_PARSER_TRY_CHECK(one_char <'('> ))\r\n\t\t\t{\r\n\t\t\t\tVIMAP_PARSER_GET(xstring, m_string);\r\n\t\t\t\tVIMAP_PARSER_CHECK(SPACE);\r\n\t\t\t\tVIMAP_PARSER_GET(class body_fld_param, m_body_fld_param);\r\n\t\t\t\tVIMAP_PARSER_CHECK(one_char <')'> );\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tVIMAP_PARSER_CHECK(NIL);\r\n\t\t\t}\r\n\r\nAt this point, It tries to parse this string: \"4d6c345b9ftuexperiencia%40better.com!83a!38876!77fbf207!rynof13.pbz!\" NIL) UID 398597 RFC822.HEADER {5036}\r\nThe parenthesis not found, and then crash checking next values.\r\n\r\ne > continue_req_or_response_data > response_data > message_data > msg_att > msg_att_item > xbody > body_type_mpart > body_ext_mpart > body_fld_dsp > one_char <(>\r\n5291b2b9e2f3abb3f2\") \"4d6c345b9ftuexperiencia%40vol\r\n                     ^\r\n             LEAVE(), result=FALSE, pos=276\r\n pos=276\r\ne > continue_req_or_response_data > response_data > message_data > msg_att > msg_att_item > xbody > body_type_mpart > body_ext_mpart > body_fld_dsp > NIL\r\n5291b2b9e2f3abb3f2\") \"4d6c345b9ftuexperiencia%40vol\r\n                     ^\r\n               ENTER(special_atom <nil>), pos=276\r\ne > continue_req_or_response_data > response_data > message_data > msg_att > msg_att_item > xbody > body_type_mpart > body_ext_mpart > body_fld_dsp > NIL > special_atom <nil>\r\n5291b2b9e2f3abb3f2\") \"4d6c345b9ftuexperiencia%40vol\r\n                     ^\r\n               LEAVE(), result=FALSE, pos=276\r\n             LEAVE(), result=FALSE, pos=276\r\n\r\n\r\nI appreciate your feedback.\r\nThanks a lot!!\r\n\r\n\r\n\r\n"}}