{"action":"created","issue":{"url":"https://api.github.com/repos/MailCore/mailcore2/issues/1559","repository_url":"https://api.github.com/repos/MailCore/mailcore2","labels_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1559/labels{/name}","comments_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1559/comments","events_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1559/events","html_url":"https://github.com/MailCore/mailcore2/issues/1559","id":188148624,"number":1559,"title":"Fail to parse attachment","user":{"login":"frankobe","id":2467199,"avatar_url":"https://avatars.githubusercontent.com/u/2467199?v=3","gravatar_id":"","url":"https://api.github.com/users/frankobe","html_url":"https://github.com/frankobe","followers_url":"https://api.github.com/users/frankobe/followers","following_url":"https://api.github.com/users/frankobe/following{/other_user}","gists_url":"https://api.github.com/users/frankobe/gists{/gist_id}","starred_url":"https://api.github.com/users/frankobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankobe/subscriptions","organizations_url":"https://api.github.com/users/frankobe/orgs","repos_url":"https://api.github.com/users/frankobe/repos","events_url":"https://api.github.com/users/frankobe/events{/privacy}","received_events_url":"https://api.github.com/users/frankobe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-09T01:32:21Z","updated_at":"2016-11-11T22:30:26Z","closed_at":"2016-11-11T08:50:51Z","body":"Hi,\r\n\r\nI notice mailcore2 fails to parse the attachment for attached mail while gmail client can display correctly. The original msg is attached: [original_msg.txt](https://github.com/MailCore/mailcore2/files/579761/original_msg.txt)\r\n\r\nStrangely,  `mcoimapmessage` contains correct `IMAPPart` for attachment while `[mcoimapmessage attachments]` return empty array\r\n\r\nThe `mcoimapmessage` is printed as follows, \r\n\r\n```\r\n<mailcore::IMAPMessage:0x174cb2960 33117 0\r\n<mailcore::MessageHeader:0x1754e0780\r\nMessage-ID: 58226f0244d47_96c92ab2c46fb318331e@mini-queue-06.resque.ife.mail\r\nSender: mailcore::Address:0x175c25b20 Heatherm Huang <heathermhuang@gmail.com>\r\nFrom: mailcore::Address:0x175c25a80 Heatherm Huang <heathermhuang@gmail.com>\r\nTo: [mailcore::Address:0x175c25a00  <heatherm@mailtime.com>]\r\nReply-To: [mailcore::Address:0x175c25560 Heatherm Huang <heathermhuang@gmail.com>]\r\nSubject: Re: Attachment test\r\n><mailcore::IMAPMultipart:0x174ec86c0 alternative [<mailcore::IMAPPart:0x174ec4590\r\nmime type: text/PLAIN\r\ncharset: UTF-8\r\ninline: 0\r\nattachment: 0\r\n>,<mailcore::IMAPPart:0x174ec5630\r\nmime type: text/HTML\r\ncharset: UTF-8\r\ninline: 0\r\nattachment: 0\r\n>,<mailcore::IMAPPart:0x174ec4670\r\nfilename: kdh9hj2mseuyu.gif\r\nmime type: image/GIF\r\ncharset: UTF-8\r\ncontent-ID: 58226f0240226_96c92ab2c46fb318330fc@mini-queue-06.resque.ife.mail\r\ninline: 0\r\nattachment: 1\r\n>]>\r\n>\r\n```"},"comment":{"url":"https://api.github.com/repos/MailCore/mailcore2/issues/comments/260070726","html_url":"https://github.com/MailCore/mailcore2/issues/1559#issuecomment-260070726","issue_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1559","id":260070726,"user":{"login":"frankobe","id":2467199,"avatar_url":"https://avatars.githubusercontent.com/u/2467199?v=3","gravatar_id":"","url":"https://api.github.com/users/frankobe","html_url":"https://github.com/frankobe","followers_url":"https://api.github.com/users/frankobe/followers","following_url":"https://api.github.com/users/frankobe/following{/other_user}","gists_url":"https://api.github.com/users/frankobe/gists{/gist_id}","starred_url":"https://api.github.com/users/frankobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankobe/subscriptions","organizations_url":"https://api.github.com/users/frankobe/orgs","repos_url":"https://api.github.com/users/frankobe/repos","events_url":"https://api.github.com/users/frankobe/events{/privacy}","received_events_url":"https://api.github.com/users/frankobe/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T22:30:26Z","updated_at":"2016-11-11T22:30:26Z","body":"Do u mean -htmlInlineAttachments? Yes, I try it, and it return empty array. And this email contains non-inline attachment from the IMAPPart result.\r\n\r\n```\r\n<mailcore::IMAPPart:0x174ec4670\r\nfilename: kdh9hj2mseuyu.gif\r\nmime type: image/GIF\r\ncharset: UTF-8\r\ncontent-ID: 58226f0240226_96c92ab2c46fb318330fc@mini-queue-06.resque.ife.mail\r\ninline: 0\r\nattachment: 1\r\n>"}}
{"actor":{"display_login":"frankobe"}}