{"action":"closed","issue":{"url":"https://api.github.com/repos/MailCore/mailcore2/issues/1515","repository_url":"https://api.github.com/repos/MailCore/mailcore2","labels_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1515/labels{/name}","comments_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1515/comments","events_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1515/events","html_url":"https://github.com/MailCore/mailcore2/issues/1515","id":179081292,"number":1515,"title":"Imap :  A stable connection to the server could not be established.","user":{"login":"houssem-yahiaoui","id":15380057,"avatar_url":"https://avatars.githubusercontent.com/u/15380057?v=3","gravatar_id":"","url":"https://api.github.com/users/houssem-yahiaoui","html_url":"https://github.com/houssem-yahiaoui","followers_url":"https://api.github.com/users/houssem-yahiaoui/followers","following_url":"https://api.github.com/users/houssem-yahiaoui/following{/other_user}","gists_url":"https://api.github.com/users/houssem-yahiaoui/gists{/gist_id}","starred_url":"https://api.github.com/users/houssem-yahiaoui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houssem-yahiaoui/subscriptions","organizations_url":"https://api.github.com/users/houssem-yahiaoui/orgs","repos_url":"https://api.github.com/users/houssem-yahiaoui/repos","events_url":"https://api.github.com/users/houssem-yahiaoui/events{/privacy}","received_events_url":"https://api.github.com/users/houssem-yahiaoui/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-25T11:23:33Z","updated_at":"2016-09-26T11:01:06Z","closed_at":"2016-09-26T11:01:06Z","body":"Hello guys,\r\n\r\nI'm trying to perform an IMAP Search operation, but i keep on getting this error : \r\n\r\n`error from server Optional(Error Domain=MCOErrorDomain Code=1 \"A stable connection to the server could not be established.\" UserInfo={NSLocalizedDescription=A stable connection to the server could not be established.})\r\nfetched nil messages\r\n`\r\nAnd here's my code, i'm exploiting the objective-c code from a Swift context.\r\n\r\n```swift\r\n         let imapsession = MCOIMAPSession()\r\n         imapsession.hostname = \"...\"\r\n         imapsession.port = 993\r\n         imapsession.username = \"...\"\r\n         imapsession.password = \".....\"\r\n         imapsession.connectionType = MCOConnectionType.TLS\r\n         let requestKind : MCOIMAPMessagesRequestKind =    MCOIMAPMessagesRequestKind.Headers\r\n        \r\n        let folder : String = \"INBOX\"\r\n        let uids : MCOIndexSet = MCOIndexSet(range: MCORangeMake(1, UINT64_MAX))\r\n        \r\n        let fetchOperation : MCOIMAPFetchMessagesOperation = imapsession.fetchMessagesOperationWithFolder(folder, requestKind: requestKind, uids: uids)\r\n        \r\n        fetchOperation.start { (err, msg, vanished) -> Void in\r\n            print(\"error from server \\(err)\")\r\n            print(\"fetched \\(msg?.count) messages\")\r\n        }\r\n```\r\n\r\nKnowing that my platform in the **IMAP** part support SSL **NOT** TLS, Also the **SMTP** side **works perfectly** with my configuration.\r\n\r\nIs there any fix ? \r\n\r\nPS: i tried the  solution here in #576 but nothing works."}}
{"actor":{"display_login":"houssem-yahiaoui"}}