{"action":"opened","issue":{"url":"https://api.github.com/repos/pixelated/pixelated-user-agent/issues/589","labels_url":"https://api.github.com/repos/pixelated/pixelated-user-agent/issues/589/labels{/name}","comments_url":"https://api.github.com/repos/pixelated/pixelated-user-agent/issues/589/comments","events_url":"https://api.github.com/repos/pixelated/pixelated-user-agent/issues/589/events","html_url":"https://github.com/pixelated/pixelated-user-agent/issues/589","id":130391291,"number":589,"title":"Error when indexing new emails","user":{"login":"giovaneliberato","id":2964631,"avatar_url":"https://avatars.githubusercontent.com/u/2964631?v=3","gravatar_id":"","url":"https://api.github.com/users/giovaneliberato","html_url":"https://github.com/giovaneliberato","followers_url":"https://api.github.com/users/giovaneliberato/followers","following_url":"https://api.github.com/users/giovaneliberato/following{/other_user}","gists_url":"https://api.github.com/users/giovaneliberato/gists{/gist_id}","starred_url":"https://api.github.com/users/giovaneliberato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giovaneliberato/subscriptions","organizations_url":"https://api.github.com/users/giovaneliberato/orgs","repos_url":"https://api.github.com/users/giovaneliberato/repos","events_url":"https://api.github.com/users/giovaneliberato/events{/privacy}","received_events_url":"https://api.github.com/users/giovaneliberato/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-01T15:28:03Z","updated_at":"2016-02-01T15:28:03Z","closed_at":null,"body":"This happens to my and @jeffhsta's account whenever we receive a new mail. Probably is something on indexing. We need to logout/login to the email arrive on the inbox.\r\n\r\n```\r\n2016-02-01 15:24:05 [leap.common.events.server] DEBUG Publishing event: MAIL_UNREAD_MESSAGES\r\nTraceback (most recent call last):\r\n  File \"/usr/share/python/pixelated-user-agent/local/lib/python2.7/site-packages/pixelated_user_agent-0.1-py2.7.egg/pixelated/adapter/search/__init__.py\", line 162, in index_mails\r\n    self._index_mail(writer, mail)\r\n  File \"/usr/share/python/pixelated-user-agent/local/lib/python2.7/site-packages/pixelated_user_agent-0.1-py2.7.egg/pixelated/adapter/search/__init__.py\", line 123, in _index_mail\r\n    mdict = mail.as_dict()\r\nAttributeError: 'NoneType' object has no attribute 'as_dict'\r\n2016-02-01 15:24:05 [pixelated.adapter.listeners.mailbox_indexer_listener] ERROR 'NoneType' object has no attribute 'as_dict'\r\n```"}}