{"action":"created","comment":{"url":"https://api.github.com/repos/leapcode/leap_mail/pulls/comments/25362887","id":25362887,"diff_hunk":"@@ -556,57 +555,29 @@ def insert_mdoc_id(_, wrapper):\n         d = wrapper.create(self.store, notify_just_mdoc=notify_just_mdoc)\n         d.addCallback(insert_mdoc_id, wrapper)\n         d.addErrback(lambda f: f.printTraceback())\n+        d.addCallback(self.cb_signal_unread_to_ui)\n         return d\n \n-    def add_raw_message(self, message, flags, date=None):\n+    def cb_signal_unread_to_ui(self, result):\n         \"\"\"\n-        Adds a message to this collection.\n-\n-        :param message: the raw message\n-        :type message: str\n-\n-        :param flags: flag list\n-        :type flags: list of str\n+        Sends unread event to ui.","path":"src/leap/mail/mail.py","position":41,"original_position":41,"commit_id":"3b173aa3e7486a223f3364ba4cbec595b9f961c1","original_commit_id":"3b173aa3e7486a223f3364ba4cbec595b9f961c1","user":{"login":"kalikaneko","id":3072993,"avatar_url":"https://avatars.githubusercontent.com/u/3072993?v=3","gravatar_id":"","url":"https://api.github.com/users/kalikaneko","html_url":"https://github.com/kalikaneko","followers_url":"https://api.github.com/users/kalikaneko/followers","following_url":"https://api.github.com/users/kalikaneko/following{/other_user}","gists_url":"https://api.github.com/users/kalikaneko/gists{/gist_id}","starred_url":"https://api.github.com/users/kalikaneko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalikaneko/subscriptions","organizations_url":"https://api.github.com/users/kalikaneko/orgs","repos_url":"https://api.github.com/users/kalikaneko/repos","events_url":"https://api.github.com/users/kalikaneko/events{/privacy}","received_events_url":"https://api.github.com/users/kalikaneko/received_events","type":"User","site_admin":false},"body":"Sure. The problem is that, in the client side, there's a message that says \"N Unread messages in your Inbox\"","created_at":"2015-02-25T18:06:26Z","updated_at":"2015-02-25T18:06:26Z","html_url":"https://github.com/leapcode/leap_mail/pull/173#discussion_r25362887","pull_request_url":"https://api.github.com/repos/leapcode/leap_mail/pulls/173","_links":{"self":{"href":"https://api.github.com/repos/leapcode/leap_mail/pulls/comments/25362887"},"html":{"href":"https://github.com/leapcode/leap_mail/pull/173#discussion_r25362887"},"pull_request":{"href":"https://api.github.com/repos/leapcode/leap_mail/pulls/173"}}},"pull_request":{"url":"https://api.github.com/repos/leapcode/leap_mail/pulls/173","id":29988560,"html_url":"https://github.com/leapcode/leap_mail/pull/173","diff_url":"https://github.com/leapcode/leap_mail/pull/173.diff","patch_url":"https://github.com/leapcode/leap_mail/pull/173.patch","issue_url":"https://api.github.com/repos/leapcode/leap_mail/issues/173","number":173,"state":"open","locked":false,"title":"Bug/inbox notifications to ui","user":{"login":"kalikaneko","id":3072993,"avatar_url":"https://avatars.githubusercontent.com/u/3072993?v=3","gravatar_id":"","url":"https://api.github.com/users/kalikaneko","html_url":"https://github.com/kalikaneko","followers_url":"https://api.github.com/users/kalikaneko/followers","following_url":"https://api.github.com/users/kalikaneko/following{/other_user}","gists_url":"https://api.github.com/users/kalikaneko/gists{/gist_id}","starred_url":"https://api.github.com/users/kalikaneko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalikaneko/subscriptions","organizations_url":"https://api.github.com/users/kalikaneko/orgs","repos_url":"https://api.github.com/users/kalikaneko/repos","events_url":"https://api.github.com/users/kalikaneko/events{/privacy}","received_events_url":"https://api.github.com/users/kalikaneko/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-25T13:59:04Z","updated_at":"2015-02-25T18:06:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34adc9358990da8863dec59ca934d1664eaa38b2","assignee":{"login":"meskio","id":475542,"avatar_url":"https://avatars.githubusercontent.com/u/475542?v=3","gravatar_id":"","url":"https://api.github.com/users/meskio","html_url":"https://github.com/meskio","followers_url":"https://api.github.com/users/meskio/followers","following_url":"https://api.github.com/users/meskio/following{/other_user}","gists_url":"https://api.github.com/users/meskio/gists{/gist_id}","starred_url":"https://api.github.com/users/meskio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meskio/subscriptions","organizations_url":"https://api.github.com/users/meskio/orgs","repos_url":"https://api.github.com/users/meskio/repos","events_url":"https://api.github.com/users/meskio/events{/privacy}","received_events_url":"https://api.github.com/users/meskio/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/leapcode/leap_mail/milestones/4","html_url":"https://github.com/leapcode/leap_mail/milestones/0.4.0","labels_url":"https://api.github.com/repos/leapcode/leap_mail/milestones/4/labels","id":551087,"number":4,"title":"0.4.0","description":"new public api, working against async soledad-client (0.7.0)","creator":{"login":"kalikaneko","id":3072993,"avatar_url":"https://avatars.githubusercontent.com/u/3072993?v=3","gravatar_id":"","url":"https://api.github.com/users/kalikaneko","html_url":"https://github.com/kalikaneko","followers_url":"https://api.github.com/users/kalikaneko/followers","following_url":"https://api.github.com/users/kalikaneko/following{/other_user}","gists_url":"https://api.github.com/users/kalikaneko/gists{/gist_id}","starred_url":"https://api.github.com/users/kalikaneko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalikaneko/subscriptions","organizations_url":"https://api.github.com/users/kalikaneko/orgs","repos_url":"https://api.github.com/users/kalikaneko/repos","events_url":"https://api.github.com/users/kalikaneko/events{/privacy}","received_events_url":"https://api.github.com/users/kalikaneko/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":21,"state":"open","created_at":"2014-01-28T23:43:40Z","updated_at":"2015-02-25T14:44:02Z","due_on":"2014-12-30T23:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/leapcode/leap_mail/pulls/173/commits","review_comments_url":"https://api.github.com/repos/leapcode/leap_mail/pulls/173/comments","review_comment_url":"https://api.github.com/repos/leapcode/leap_mail/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leapcode/leap_mail/issues/173/comments","statuses_url":"https://api.github.com/repos/leapcode/leap_mail/statuses/3b173aa3e7486a223f3364ba4cbec595b9f961c1","head":{"label":"kalikaneko:bug/inbox-notifications-to-ui","ref":"bug/inbox-notifications-to-ui","sha":"3b173aa3e7486a223f3364ba4cbec595b9f961c1","user":{"login":"kalikaneko","id":3072993,"avatar_url":"https://avatars.githubusercontent.com/u/3072993?v=3","gravatar_id":"","url":"https://api.github.com/users/kalikaneko","html_url":"https://github.com/kalikaneko","followers_url":"https://api.github.com/users/kalikaneko/followers","following_url":"https://api.github.com/users/kalikaneko/following{/other_user}","gists_url":"https://api.github.com/users/kalikaneko/gists{/gist_id}","starred_url":"https://api.github.com/users/kalikaneko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalikaneko/subscriptions","organizations_url":"https://api.github.com/users/kalikaneko/orgs","repos_url":"https://api.github.com/users/kalikaneko/repos","events_url":"https://api.github.com/users/kalikaneko/events{/privacy}","received_events_url":"https://api.github.com/users/kalikaneko/received_events","type":"User","site_admin":false},"repo":{"id":9322983,"name":"leap_mail","full_name":"kalikaneko/leap_mail","owner":{"login":"kalikaneko","id":3072993,"avatar_url":"https://avatars.githubusercontent.com/u/3072993?v=3","gravatar_id":"","url":"https://api.github.com/users/kalikaneko","html_url":"https://github.com/kalikaneko","followers_url":"https://api.github.com/users/kalikaneko/followers","following_url":"https://api.github.com/users/kalikaneko/following{/other_user}","gists_url":"https://api.github.com/users/kalikaneko/gists{/gist_id}","starred_url":"https://api.github.com/users/kalikaneko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalikaneko/subscriptions","organizations_url":"https://api.github.com/users/kalikaneko/orgs","repos_url":"https://api.github.com/users/kalikaneko/repos","events_url":"https://api.github.com/users/kalikaneko/events{/privacy}","received_events_url":"https://api.github.com/users/kalikaneko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kalikaneko/leap_mail","description":"","fork":true,"url":"https://api.github.com/repos/kalikaneko/leap_mail","forks_url":"https://api.github.com/repos/kalikaneko/leap_mail/forks","keys_url":"https://api.github.com/repos/kalikaneko/leap_mail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kalikaneko/leap_mail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kalikaneko/leap_mail/teams","hooks_url":"https://api.github.com/repos/kalikaneko/leap_mail/hooks","issue_events_url":"https://api.github.com/repos/kalikaneko/leap_mail/issues/events{/number}","events_url":"https://api.github.com/repos/kalikaneko/leap_mail/events","assignees_url":"https://api.github.com/repos/kalikaneko/leap_mail/assignees{/user}","branches_url":"https://api.github.com/repos/kalikaneko/leap_mail/branches{/branch}","tags_url":"https://api.github.com/repos/kalikaneko/leap_mail/tags","blobs_url":"https://api.github.com/repos/kalikaneko/leap_mail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kalikaneko/leap_mail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kalikaneko/leap_mail/git/refs{/sha}","trees_url":"https://api.github.com/repos/kalikaneko/leap_mail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kalikaneko/leap_mail/statuses/{sha}","languages_url":"https://api.github.com/repos/kalikaneko/leap_mail/languages","stargazers_url":"https://api.github.com/repos/kalikaneko/leap_mail/stargazers","contributors_url":"https://api.github.com/repos/kalikaneko/leap_mail/contributors","subscribers_url":"https://api.github.com/repos/kalikaneko/leap_mail/subscribers","subscription_url":"https://api.github.com/repos/kalikaneko/leap_mail/subscription","commits_url":"https://api.github.com/repos/kalikaneko/leap_mail/commits{/sha}","git_commits_url":"https://api.github.com/repos/kalikaneko/leap_mail/git/commits{/sha}","comments_url":"https://api.github.com/repos/kalikaneko/leap_mail/comments{/number}","issue_comment_url":"https://api.github.com/repos/kalikaneko/leap_mail/issues/comments{/number}","contents_url":"https://api.github.com/repos/kalikaneko/leap_mail/contents/{+path}","compare_url":"https://api.github.com/repos/kalikaneko/leap_mail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kalikaneko/leap_mail/merges","archive_url":"https://api.github.com/repos/kalikaneko/leap_mail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kalikaneko/leap_mail/downloads","issues_url":"https://api.github.com/repos/kalikaneko/leap_mail/issues{/number}","pulls_url":"https://api.github.com/repos/kalikaneko/leap_mail/pulls{/number}","milestones_url":"https://api.github.com/repos/kalikaneko/leap_mail/milestones{/number}","notifications_url":"https://api.github.com/repos/kalikaneko/leap_mail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kalikaneko/leap_mail/labels{/name}","releases_url":"https://api.github.com/repos/kalikaneko/leap_mail/releases{/id}","created_at":"2013-04-09T14:21:53Z","updated_at":"2014-04-11T16:55:47Z","pushed_at":"2015-02-25T13:56:50Z","git_url":"git://github.com/kalikaneko/leap_mail.git","ssh_url":"git@github.com:kalikaneko/leap_mail.git","clone_url":"https://github.com/kalikaneko/leap_mail.git","svn_url":"https://github.com/kalikaneko/leap_mail","homepage":null,"size":2800,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"leapcode:develop","ref":"develop","sha":"9a52e73518c0918ff8bb372127e9c6aab02b496d","user":{"login":"leapcode","id":1700464,"avatar_url":"https://avatars.githubusercontent.com/u/1700464?v=3","gravatar_id":"","url":"https://api.github.com/users/leapcode","html_url":"https://github.com/leapcode","followers_url":"https://api.github.com/users/leapcode/followers","following_url":"https://api.github.com/users/leapcode/following{/other_user}","gists_url":"https://api.github.com/users/leapcode/gists{/gist_id}","starred_url":"https://api.github.com/users/leapcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapcode/subscriptions","organizations_url":"https://api.github.com/users/leapcode/orgs","repos_url":"https://api.github.com/users/leapcode/repos","events_url":"https://api.github.com/users/leapcode/events{/privacy}","received_events_url":"https://api.github.com/users/leapcode/received_events","type":"Organization","site_admin":false},"repo":{"id":8909626,"name":"leap_mail","full_name":"leapcode/leap_mail","owner":{"login":"leapcode","id":1700464,"avatar_url":"https://avatars.githubusercontent.com/u/1700464?v=3","gravatar_id":"","url":"https://api.github.com/users/leapcode","html_url":"https://github.com/leapcode","followers_url":"https://api.github.com/users/leapcode/followers","following_url":"https://api.github.com/users/leapcode/following{/other_user}","gists_url":"https://api.github.com/users/leapcode/gists{/gist_id}","starred_url":"https://api.github.com/users/leapcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapcode/subscriptions","organizations_url":"https://api.github.com/users/leapcode/orgs","repos_url":"https://api.github.com/users/leapcode/repos","events_url":"https://api.github.com/users/leapcode/events{/privacy}","received_events_url":"https://api.github.com/users/leapcode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/leapcode/leap_mail","description":"The magick sauce for leap encrypted email!","fork":false,"url":"https://api.github.com/repos/leapcode/leap_mail","forks_url":"https://api.github.com/repos/leapcode/leap_mail/forks","keys_url":"https://api.github.com/repos/leapcode/leap_mail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leapcode/leap_mail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leapcode/leap_mail/teams","hooks_url":"https://api.github.com/repos/leapcode/leap_mail/hooks","issue_events_url":"https://api.github.com/repos/leapcode/leap_mail/issues/events{/number}","events_url":"https://api.github.com/repos/leapcode/leap_mail/events","assignees_url":"https://api.github.com/repos/leapcode/leap_mail/assignees{/user}","branches_url":"https://api.github.com/repos/leapcode/leap_mail/branches{/branch}","tags_url":"https://api.github.com/repos/leapcode/leap_mail/tags","blobs_url":"https://api.github.com/repos/leapcode/leap_mail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leapcode/leap_mail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leapcode/leap_mail/git/refs{/sha}","trees_url":"https://api.github.com/repos/leapcode/leap_mail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leapcode/leap_mail/statuses/{sha}","languages_url":"https://api.github.com/repos/leapcode/leap_mail/languages","stargazers_url":"https://api.github.com/repos/leapcode/leap_mail/stargazers","contributors_url":"https://api.github.com/repos/leapcode/leap_mail/contributors","subscribers_url":"https://api.github.com/repos/leapcode/leap_mail/subscribers","subscription_url":"https://api.github.com/repos/leapcode/leap_mail/subscription","commits_url":"https://api.github.com/repos/leapcode/leap_mail/commits{/sha}","git_commits_url":"https://api.github.com/repos/leapcode/leap_mail/git/commits{/sha}","comments_url":"https://api.github.com/repos/leapcode/leap_mail/comments{/number}","issue_comment_url":"https://api.github.com/repos/leapcode/leap_mail/issues/comments{/number}","contents_url":"https://api.github.com/repos/leapcode/leap_mail/contents/{+path}","compare_url":"https://api.github.com/repos/leapcode/leap_mail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leapcode/leap_mail/merges","archive_url":"https://api.github.com/repos/leapcode/leap_mail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leapcode/leap_mail/downloads","issues_url":"https://api.github.com/repos/leapcode/leap_mail/issues{/number}","pulls_url":"https://api.github.com/repos/leapcode/leap_mail/pulls{/number}","milestones_url":"https://api.github.com/repos/leapcode/leap_mail/milestones{/number}","notifications_url":"https://api.github.com/repos/leapcode/leap_mail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leapcode/leap_mail/labels{/name}","releases_url":"https://api.github.com/repos/leapcode/leap_mail/releases{/id}","created_at":"2013-03-20T17:00:41Z","updated_at":"2015-02-23T18:48:19Z","pushed_at":"2015-02-23T18:48:19Z","git_url":"git://github.com/leapcode/leap_mail.git","ssh_url":"git@github.com:leapcode/leap_mail.git","clone_url":"https://github.com/leapcode/leap_mail.git","svn_url":"https://github.com/leapcode/leap_mail","homepage":"","size":2464,"stargazers_count":16,"watchers_count":16,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":1,"forks":11,"open_issues":1,"watchers":16,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/leapcode/leap_mail/pulls/173"},"html":{"href":"https://github.com/leapcode/leap_mail/pull/173"},"issue":{"href":"https://api.github.com/repos/leapcode/leap_mail/issues/173"},"comments":{"href":"https://api.github.com/repos/leapcode/leap_mail/issues/173/comments"},"review_comments":{"href":"https://api.github.com/repos/leapcode/leap_mail/pulls/173/comments"},"review_comment":{"href":"https://api.github.com/repos/leapcode/leap_mail/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leapcode/leap_mail/pulls/173/commits"},"statuses":{"href":"https://api.github.com/repos/leapcode/leap_mail/statuses/3b173aa3e7486a223f3364ba4cbec595b9f961c1"}}}}