{"comment":{"url":"https://api.github.com/repos/jstedfast/MailKit/comments/10198184","html_url":"https://github.com/jstedfast/MailKit/commit/5269f6a9fe647463a198ad39cd6fda8e58df197e#commitcomment-10198184","id":10198184,"user":{"login":"jstedfast","id":338984,"avatar_url":"https://avatars.githubusercontent.com/u/338984?v=3","gravatar_id":"","url":"https://api.github.com/users/jstedfast","html_url":"https://github.com/jstedfast","followers_url":"https://api.github.com/users/jstedfast/followers","following_url":"https://api.github.com/users/jstedfast/following{/other_user}","gists_url":"https://api.github.com/users/jstedfast/gists{/gist_id}","starred_url":"https://api.github.com/users/jstedfast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstedfast/subscriptions","organizations_url":"https://api.github.com/users/jstedfast/orgs","repos_url":"https://api.github.com/users/jstedfast/repos","events_url":"https://api.github.com/users/jstedfast/events{/privacy}","received_events_url":"https://api.github.com/users/jstedfast/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"5269f6a9fe647463a198ad39cd6fda8e58df197e","created_at":"2015-03-14T11:53:05Z","updated_at":"2015-03-14T11:53:05Z","body":"https://github.com/jstedfast/MailKit/commit/938274e5eaad20ef6fb7f184dd6c77293af4ced0 fixes the timeout issue you are having on Windows Phone 8.1\r\n\r\nand the NullReferenceException is probably because you are initializing your `inbox` variable before connecting and/or authenticating with the IMAP server.\r\n\r\nyour code MUST be in this order:\r\n\r\n```csharp\r\nawait client.ConnectAsync (\"imap-mail.outlook.com\", 993, true);\r\nawait client.AuthenticateAsync (\"username\", \"password\");\r\nvar inbox = client.Inbox;\r\nawait inbox.OpenAsync (FolderAccess.ReadOnly);\r\n```"}}