{"action":"created","comment":{"url":"https://api.github.com/repos/ultrabug/py3status/pulls/comments/26837203","id":26837203,"diff_hunk":"@@ -27,17 +29,24 @@ def check_mail(self, i3s_output_list, i3s_config):\n         mail_count = self._get_mail_count()\n \n         response = {\n-            'cached_until': time() + self.cache_timeout,\n-            'full_text': '{}: {}'.format(self.name, mail_count)\n+            'cached_until': time() + self.cache_timeout\n         }\n \n-        new_mail_color = i3s_config['color_good']\n-        check_failed_color = i3s_config['color_bad']\n+        if not self.new_mail_color:\n+            self.new_mail_color = i3s_config['color_bad']","path":"py3status/modules/imap.py","position":25,"original_position":25,"commit_id":"cb0170e3d4ac700211d3e2a69ef3c2556fdbc3b9","original_commit_id":"cb0170e3d4ac700211d3e2a69ef3c2556fdbc3b9","user":{"login":"rixx","id":2657547,"avatar_url":"https://avatars.githubusercontent.com/u/2657547?v=3","gravatar_id":"","url":"https://api.github.com/users/rixx","html_url":"https://github.com/rixx","followers_url":"https://api.github.com/users/rixx/followers","following_url":"https://api.github.com/users/rixx/following{/other_user}","gists_url":"https://api.github.com/users/rixx/gists{/gist_id}","starred_url":"https://api.github.com/users/rixx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rixx/subscriptions","organizations_url":"https://api.github.com/users/rixx/orgs","repos_url":"https://api.github.com/users/rixx/repos","events_url":"https://api.github.com/users/rixx/events{/privacy}","received_events_url":"https://api.github.com/users/rixx/received_events","type":"User","site_admin":false},"body":"Feel free to change it -- I used it this way because I like to be highlighted when there are new mails, and I only actively notice things when they indicate a problem :D","created_at":"2015-03-20T13:01:57Z","updated_at":"2015-03-20T13:01:57Z","html_url":"https://github.com/ultrabug/py3status/pull/78#discussion_r26837203","pull_request_url":"https://api.github.com/repos/ultrabug/py3status/pulls/78","_links":{"self":{"href":"https://api.github.com/repos/ultrabug/py3status/pulls/comments/26837203"},"html":{"href":"https://github.com/ultrabug/py3status/pull/78#discussion_r26837203"},"pull_request":{"href":"https://api.github.com/repos/ultrabug/py3status/pulls/78"}}},"pull_request":{"url":"https://api.github.com/repos/ultrabug/py3status/pulls/78","id":31225619,"html_url":"https://github.com/ultrabug/py3status/pull/78","diff_url":"https://github.com/ultrabug/py3status/pull/78.diff","patch_url":"https://github.com/ultrabug/py3status/pull/78.patch","issue_url":"https://api.github.com/repos/ultrabug/py3status/issues/78","number":78,"state":"closed","locked":false,"title":"Free output format for unread mails","user":{"login":"rixx","id":2657547,"avatar_url":"https://avatars.githubusercontent.com/u/2657547?v=3","gravatar_id":"","url":"https://api.github.com/users/rixx","html_url":"https://github.com/rixx","followers_url":"https://api.github.com/users/rixx/followers","following_url":"https://api.github.com/users/rixx/following{/other_user}","gists_url":"https://api.github.com/users/rixx/gists{/gist_id}","starred_url":"https://api.github.com/users/rixx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rixx/subscriptions","organizations_url":"https://api.github.com/users/rixx/orgs","repos_url":"https://api.github.com/users/rixx/repos","events_url":"https://api.github.com/users/rixx/events{/privacy}","received_events_url":"https://api.github.com/users/rixx/received_events","type":"User","site_admin":false},"body":"Gives the user the choice of formatting the mail notification (including where to put the number of unread mails). Additionally provides the option to just not show the mail notification if there are no unread mails.\r\n\r\nDefault behaviour doesn't change.","created_at":"2015-03-16T08:57:00Z","updated_at":"2015-03-20T13:01:57Z","closed_at":"2015-03-17T22:23:46Z","merged_at":"2015-03-17T22:23:46Z","merge_commit_sha":"38df2aecfed3a9bbed84af535d9526a049854cdf","assignee":{"login":"ultrabug","id":474389,"avatar_url":"https://avatars.githubusercontent.com/u/474389?v=3","gravatar_id":"","url":"https://api.github.com/users/ultrabug","html_url":"https://github.com/ultrabug","followers_url":"https://api.github.com/users/ultrabug/followers","following_url":"https://api.github.com/users/ultrabug/following{/other_user}","gists_url":"https://api.github.com/users/ultrabug/gists{/gist_id}","starred_url":"https://api.github.com/users/ultrabug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultrabug/subscriptions","organizations_url":"https://api.github.com/users/ultrabug/orgs","repos_url":"https://api.github.com/users/ultrabug/repos","events_url":"https://api.github.com/users/ultrabug/events{/privacy}","received_events_url":"https://api.github.com/users/ultrabug/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ultrabug/py3status/pulls/78/commits","review_comments_url":"https://api.github.com/repos/ultrabug/py3status/pulls/78/comments","review_comment_url":"https://api.github.com/repos/ultrabug/py3status/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ultrabug/py3status/issues/78/comments","statuses_url":"https://api.github.com/repos/ultrabug/py3status/statuses/cb0170e3d4ac700211d3e2a69ef3c2556fdbc3b9","head":{"label":"rixx:master","ref":"master","sha":"cb0170e3d4ac700211d3e2a69ef3c2556fdbc3b9","user":{"login":"rixx","id":2657547,"avatar_url":"https://avatars.githubusercontent.com/u/2657547?v=3","gravatar_id":"","url":"https://api.github.com/users/rixx","html_url":"https://github.com/rixx","followers_url":"https://api.github.com/users/rixx/followers","following_url":"https://api.github.com/users/rixx/following{/other_user}","gists_url":"https://api.github.com/users/rixx/gists{/gist_id}","starred_url":"https://api.github.com/users/rixx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rixx/subscriptions","organizations_url":"https://api.github.com/users/rixx/orgs","repos_url":"https://api.github.com/users/rixx/repos","events_url":"https://api.github.com/users/rixx/events{/privacy}","received_events_url":"https://api.github.com/users/rixx/received_events","type":"User","site_admin":false},"repo":{"id":32225211,"name":"py3status","full_name":"rixx/py3status","owner":{"login":"rixx","id":2657547,"avatar_url":"https://avatars.githubusercontent.com/u/2657547?v=3","gravatar_id":"","url":"https://api.github.com/users/rixx","html_url":"https://github.com/rixx","followers_url":"https://api.github.com/users/rixx/followers","following_url":"https://api.github.com/users/rixx/following{/other_user}","gists_url":"https://api.github.com/users/rixx/gists{/gist_id}","starred_url":"https://api.github.com/users/rixx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rixx/subscriptions","organizations_url":"https://api.github.com/users/rixx/orgs","repos_url":"https://api.github.com/users/rixx/repos","events_url":"https://api.github.com/users/rixx/events{/privacy}","received_events_url":"https://api.github.com/users/rixx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rixx/py3status","description":"py3status is an extensible i3status wrapper written in python","fork":true,"url":"https://api.github.com/repos/rixx/py3status","forks_url":"https://api.github.com/repos/rixx/py3status/forks","keys_url":"https://api.github.com/repos/rixx/py3status/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rixx/py3status/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rixx/py3status/teams","hooks_url":"https://api.github.com/repos/rixx/py3status/hooks","issue_events_url":"https://api.github.com/repos/rixx/py3status/issues/events{/number}","events_url":"https://api.github.com/repos/rixx/py3status/events","assignees_url":"https://api.github.com/repos/rixx/py3status/assignees{/user}","branches_url":"https://api.github.com/repos/rixx/py3status/branches{/branch}","tags_url":"https://api.github.com/repos/rixx/py3status/tags","blobs_url":"https://api.github.com/repos/rixx/py3status/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rixx/py3status/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rixx/py3status/git/refs{/sha}","trees_url":"https://api.github.com/repos/rixx/py3status/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rixx/py3status/statuses/{sha}","languages_url":"https://api.github.com/repos/rixx/py3status/languages","stargazers_url":"https://api.github.com/repos/rixx/py3status/stargazers","contributors_url":"https://api.github.com/repos/rixx/py3status/contributors","subscribers_url":"https://api.github.com/repos/rixx/py3status/subscribers","subscription_url":"https://api.github.com/repos/rixx/py3status/subscription","commits_url":"https://api.github.com/repos/rixx/py3status/commits{/sha}","git_commits_url":"https://api.github.com/repos/rixx/py3status/git/commits{/sha}","comments_url":"https://api.github.com/repos/rixx/py3status/comments{/number}","issue_comment_url":"https://api.github.com/repos/rixx/py3status/issues/comments{/number}","contents_url":"https://api.github.com/repos/rixx/py3status/contents/{+path}","compare_url":"https://api.github.com/repos/rixx/py3status/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rixx/py3status/merges","archive_url":"https://api.github.com/repos/rixx/py3status/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rixx/py3status/downloads","issues_url":"https://api.github.com/repos/rixx/py3status/issues{/number}","pulls_url":"https://api.github.com/repos/rixx/py3status/pulls{/number}","milestones_url":"https://api.github.com/repos/rixx/py3status/milestones{/number}","notifications_url":"https://api.github.com/repos/rixx/py3status/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rixx/py3status/labels{/name}","releases_url":"https://api.github.com/repos/rixx/py3status/releases{/id}","created_at":"2015-03-14T18:08:22Z","updated_at":"2015-03-19T14:44:02Z","pushed_at":"2015-03-19T14:44:02Z","git_url":"git://github.com/rixx/py3status.git","ssh_url":"git@github.com:rixx/py3status.git","clone_url":"https://github.com/rixx/py3status.git","svn_url":"https://github.com/rixx/py3status","homepage":"","size":471,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ultrabug:master","ref":"master","sha":"4fd8bbb9083beb3c939b10bf9c2378fc517c3cbd","user":{"login":"ultrabug","id":474389,"avatar_url":"https://avatars.githubusercontent.com/u/474389?v=3","gravatar_id":"","url":"https://api.github.com/users/ultrabug","html_url":"https://github.com/ultrabug","followers_url":"https://api.github.com/users/ultrabug/followers","following_url":"https://api.github.com/users/ultrabug/following{/other_user}","gists_url":"https://api.github.com/users/ultrabug/gists{/gist_id}","starred_url":"https://api.github.com/users/ultrabug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultrabug/subscriptions","organizations_url":"https://api.github.com/users/ultrabug/orgs","repos_url":"https://api.github.com/users/ultrabug/repos","events_url":"https://api.github.com/users/ultrabug/events{/privacy}","received_events_url":"https://api.github.com/users/ultrabug/received_events","type":"User","site_admin":false},"repo":{"id":8292338,"name":"py3status","full_name":"ultrabug/py3status","owner":{"login":"ultrabug","id":474389,"avatar_url":"https://avatars.githubusercontent.com/u/474389?v=3","gravatar_id":"","url":"https://api.github.com/users/ultrabug","html_url":"https://github.com/ultrabug","followers_url":"https://api.github.com/users/ultrabug/followers","following_url":"https://api.github.com/users/ultrabug/following{/other_user}","gists_url":"https://api.github.com/users/ultrabug/gists{/gist_id}","starred_url":"https://api.github.com/users/ultrabug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultrabug/subscriptions","organizations_url":"https://api.github.com/users/ultrabug/orgs","repos_url":"https://api.github.com/users/ultrabug/repos","events_url":"https://api.github.com/users/ultrabug/events{/privacy}","received_events_url":"https://api.github.com/users/ultrabug/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ultrabug/py3status","description":"py3status is an extensible i3status wrapper written in python","fork":false,"url":"https://api.github.com/repos/ultrabug/py3status","forks_url":"https://api.github.com/repos/ultrabug/py3status/forks","keys_url":"https://api.github.com/repos/ultrabug/py3status/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ultrabug/py3status/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ultrabug/py3status/teams","hooks_url":"https://api.github.com/repos/ultrabug/py3status/hooks","issue_events_url":"https://api.github.com/repos/ultrabug/py3status/issues/events{/number}","events_url":"https://api.github.com/repos/ultrabug/py3status/events","assignees_url":"https://api.github.com/repos/ultrabug/py3status/assignees{/user}","branches_url":"https://api.github.com/repos/ultrabug/py3status/branches{/branch}","tags_url":"https://api.github.com/repos/ultrabug/py3status/tags","blobs_url":"https://api.github.com/repos/ultrabug/py3status/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ultrabug/py3status/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ultrabug/py3status/git/refs{/sha}","trees_url":"https://api.github.com/repos/ultrabug/py3status/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ultrabug/py3status/statuses/{sha}","languages_url":"https://api.github.com/repos/ultrabug/py3status/languages","stargazers_url":"https://api.github.com/repos/ultrabug/py3status/stargazers","contributors_url":"https://api.github.com/repos/ultrabug/py3status/contributors","subscribers_url":"https://api.github.com/repos/ultrabug/py3status/subscribers","subscription_url":"https://api.github.com/repos/ultrabug/py3status/subscription","commits_url":"https://api.github.com/repos/ultrabug/py3status/commits{/sha}","git_commits_url":"https://api.github.com/repos/ultrabug/py3status/git/commits{/sha}","comments_url":"https://api.github.com/repos/ultrabug/py3status/comments{/number}","issue_comment_url":"https://api.github.com/repos/ultrabug/py3status/issues/comments{/number}","contents_url":"https://api.github.com/repos/ultrabug/py3status/contents/{+path}","compare_url":"https://api.github.com/repos/ultrabug/py3status/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ultrabug/py3status/merges","archive_url":"https://api.github.com/repos/ultrabug/py3status/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ultrabug/py3status/downloads","issues_url":"https://api.github.com/repos/ultrabug/py3status/issues{/number}","pulls_url":"https://api.github.com/repos/ultrabug/py3status/pulls{/number}","milestones_url":"https://api.github.com/repos/ultrabug/py3status/milestones{/number}","notifications_url":"https://api.github.com/repos/ultrabug/py3status/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ultrabug/py3status/labels{/name}","releases_url":"https://api.github.com/repos/ultrabug/py3status/releases{/id}","created_at":"2013-02-19T14:59:13Z","updated_at":"2015-03-20T11:28:57Z","pushed_at":"2015-03-20T12:29:54Z","git_url":"git://github.com/ultrabug/py3status.git","ssh_url":"git@github.com:ultrabug/py3status.git","clone_url":"https://github.com/ultrabug/py3status.git","svn_url":"https://github.com/ultrabug/py3status","homepage":"","size":1777,"stargazers_count":129,"watchers_count":129,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":5,"forks":36,"open_issues":5,"watchers":129,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ultrabug/py3status/pulls/78"},"html":{"href":"https://github.com/ultrabug/py3status/pull/78"},"issue":{"href":"https://api.github.com/repos/ultrabug/py3status/issues/78"},"comments":{"href":"https://api.github.com/repos/ultrabug/py3status/issues/78/comments"},"review_comments":{"href":"https://api.github.com/repos/ultrabug/py3status/pulls/78/comments"},"review_comment":{"href":"https://api.github.com/repos/ultrabug/py3status/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ultrabug/py3status/pulls/78/commits"},"statuses":{"href":"https://api.github.com/repos/ultrabug/py3status/statuses/cb0170e3d4ac700211d3e2a69ef3c2556fdbc3b9"}}}}