{"id":578,"date":"2017-01-15T19:03:04","date_gmt":"2017-01-15T18:03:04","guid":{"rendered":"http:\/\/davikingcode.com\/blog\/?p=578"},"modified":"2017-01-15T19:07:33","modified_gmt":"2017-01-15T18:07:33","slug":"unity-manage-mailbox","status":"publish","type":"post","link":"https:\/\/davikingcode.com\/blog\/unity-manage-mailbox\/","title":{"rendered":"Unity &#8211; manage mailbox"},"content":{"rendered":"<p>For a project, unfortunately  canceled, we needed to be able to manage a mailbox with <a href=\"http:\/\/unity3d.com\/\" target=\"_blank\">Unity<\/a>. Including <a href=\"https:\/\/en.wikipedia.org\/wiki\/Internet_Message_Access_Protocol\" target=\"_blank\">IMAP<\/a> protocol.<\/p>\n<p>Unity uses C#, so we were pretty confident it wouldn&#8217;t be an issue since there are so many .NET libraries around there. But none of them worked fine with Unity: some of them worked in Unity Editor, some were also able to work on Android, but none could pass Unity&#8217;s IL2CPP compilation for Xcode &#038; iOS. We searched for solution on Unity&#8217;s forums but we find nothing, there was no other choice than testing all the libraries around the web!<\/p>\n<p><a href=\"https:\/\/www.emailarchitect.net\/eagetmail\/\" target=\"_blank\">EAGetMail<\/a> was the only one to fail on Xcode due to IL2CPP compilation, all the other libraries failed way before (due to Unity Mono version). So we raised an <a href=\"https:\/\/fogbugz.unity3d.com\/default.asp?787687_6i7ba9ivtikisa75\" target=\"_blank\">issue<\/a> to Unity&#8217;s IL2CPP team.<\/p>\n<p>During that time, we needed to be sure the project would be feasible. So we looked for alternative: a PHP solution for IMAP called <a href=\"https:\/\/github.com\/tedious\/Fetch\" target=\"_blank\">Fetch<\/a> combined with an <a href=\"https:\/\/en.wikipedia.org\/wiki\/Action_Message_Format\" target=\"_blank\">AMF<\/a> library for <a href=\"https:\/\/www.assetstore.unity3d.com\/en\/#!\/content\/18808\" target=\"_blank\">Unity<\/a>. Not really a good replacement, but it worked.<\/p>\n<p>Luckily Unity <a href=\"https:\/\/fogbugz.unity3d.com\/default.asp?787687_6i7ba9ivtikisa75\" target=\"_blank\">fixed<\/a> the issue some weeks later! If you have to manage mailboxes with Unity, be sure to give a try to <a href=\"https:\/\/www.emailarchitect.net\/eagetmail\/\" target=\"_blank\">EAGetMail<\/a> before banging your head against the wall! \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For a project, unfortunately canceled, we needed to be able to manage a mailbox with Unity. Including IMAP protocol. Unity uses C#, so we were pretty confident it wouldn&#8217;t be an issue since there are so many .NET libraries around there. But none of them worked fine with Unity: some of them worked in Unity &hellip; <a href=\"https:\/\/davikingcode.com\/blog\/unity-manage-mailbox\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Unity &#8211; manage mailbox<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_discordance_state":"","_discordance_checked":true},"categories":[15],"tags":[38,5],"_links":{"self":[{"href":"https:\/\/davikingcode.com\/blog\/wp-json\/wp\/v2\/posts\/578"}],"collection":[{"href":"https:\/\/davikingcode.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davikingcode.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davikingcode.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davikingcode.com\/blog\/wp-json\/wp\/v2\/comments?post=578"}],"version-history":[{"count":10,"href":"https:\/\/davikingcode.com\/blog\/wp-json\/wp\/v2\/posts\/578\/revisions"}],"predecessor-version":[{"id":590,"href":"https:\/\/davikingcode.com\/blog\/wp-json\/wp\/v2\/posts\/578\/revisions\/590"}],"wp:attachment":[{"href":"https:\/\/davikingcode.com\/blog\/wp-json\/wp\/v2\/media?parent=578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davikingcode.com\/blog\/wp-json\/wp\/v2\/categories?post=578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davikingcode.com\/blog\/wp-json\/wp\/v2\/tags?post=578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}