{"action":"created","issue":{"url":"https://api.github.com/repos/frappe/frappe/issues/5114","repository_url":"https://api.github.com/repos/frappe/frappe","labels_url":"https://api.github.com/repos/frappe/frappe/issues/5114/labels{/name}","comments_url":"https://api.github.com/repos/frappe/frappe/issues/5114/comments","events_url":"https://api.github.com/repos/frappe/frappe/issues/5114/events","html_url":"https://github.com/frappe/frappe/issues/5114","id":302217712,"number":5114,"title":"Open email counter exceeds the number of listed items by the number of sent emails","user":{"login":"aleksas","id":594470,"avatar_url":"https://avatars1.githubusercontent.com/u/594470?v=4","gravatar_id":"","url":"https://api.github.com/users/aleksas","html_url":"https://github.com/aleksas","followers_url":"https://api.github.com/users/aleksas/followers","following_url":"https://api.github.com/users/aleksas/following{/other_user}","gists_url":"https://api.github.com/users/aleksas/gists{/gist_id}","starred_url":"https://api.github.com/users/aleksas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleksas/subscriptions","organizations_url":"https://api.github.com/users/aleksas/orgs","repos_url":"https://api.github.com/users/aleksas/repos","events_url":"https://api.github.com/users/aleksas/events{/privacy}","received_events_url":"https://api.github.com/users/aleksas/received_events","type":"User","site_admin":false},"labels":[{"id":756060989,"url":"https://api.github.com/repos/frappe/frappe/labels/CRM","name":"CRM","color":"fbca04","default":false},{"id":821756575,"url":"https://api.github.com/repos/frappe/frappe/labels/email","name":"email","color":"d7f23e","default":false}],"state":"open","locked":false,"assignee":{"login":"achillesrasquinha","id":9742568,"avatar_url":"https://avatars1.githubusercontent.com/u/9742568?v=4","gravatar_id":"","url":"https://api.github.com/users/achillesrasquinha","html_url":"https://github.com/achillesrasquinha","followers_url":"https://api.github.com/users/achillesrasquinha/followers","following_url":"https://api.github.com/users/achillesrasquinha/following{/other_user}","gists_url":"https://api.github.com/users/achillesrasquinha/gists{/gist_id}","starred_url":"https://api.github.com/users/achillesrasquinha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achillesrasquinha/subscriptions","organizations_url":"https://api.github.com/users/achillesrasquinha/orgs","repos_url":"https://api.github.com/users/achillesrasquinha/repos","events_url":"https://api.github.com/users/achillesrasquinha/events{/privacy}","received_events_url":"https://api.github.com/users/achillesrasquinha/received_events","type":"User","site_admin":false},"assignees":[{"login":"achillesrasquinha","id":9742568,"avatar_url":"https://avatars1.githubusercontent.com/u/9742568?v=4","gravatar_id":"","url":"https://api.github.com/users/achillesrasquinha","html_url":"https://github.com/achillesrasquinha","followers_url":"https://api.github.com/users/achillesrasquinha/followers","following_url":"https://api.github.com/users/achillesrasquinha/following{/other_user}","gists_url":"https://api.github.com/users/achillesrasquinha/gists{/gist_id}","starred_url":"https://api.github.com/users/achillesrasquinha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achillesrasquinha/subscriptions","organizations_url":"https://api.github.com/users/achillesrasquinha/orgs","repos_url":"https://api.github.com/users/achillesrasquinha/repos","events_url":"https://api.github.com/users/achillesrasquinha/events{/privacy}","received_events_url":"https://api.github.com/users/achillesrasquinha/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-03-05T09:01:04Z","updated_at":"2018-03-20T08:36:44Z","closed_at":null,"author_association":"NONE","body":"[Related Discussion](https://discuss.erpnext.com/t/communication-counter-exceeds-the-number-of-listed-items/34112)\r\n[Related issue](https://github.com/frappe/erpnext/issues/12716)\r\n\r\n#### Expected Behavior\r\nConter corresponds to open email/communication items shown in the list.\r\n\r\n#### Actual Behavior\r\nUPDATE: Likely culprit - sent mail is counted as open, because the email counter offset corresponds to a number of sent emails.\r\n\r\nMore often than not either email or communication  or both counters show numbers that do not correspond to number of elements in the list. See following example:\r\n\r\nAn actual single user of the system sees this (BAD):\r\n(Received)\r\n![image](https://user-images.githubusercontent.com/594470/37141147-cb41863a-22bc-11e8-8207-b68fbd96ee6c.png)\r\n\r\n(Sent)\r\n![image](https://user-images.githubusercontent.com/594470/37140995-5019bc2a-22bc-11e8-9520-ace3bd76c4be.png)\r\n\r\nAdministrator sees this (OK, contrary to what was demonstrated [here](https://discuss.erpnext.com/t/communication-counter-exceeds-the-number-of-listed-items/34112)):\r\n\r\n(Received)\r\n![image](https://user-images.githubusercontent.com/594470/37140886-e0cd5d2c-22bb-11e8-9a36-b2b497fae56b.png)\r\n\r\n(Sent)\r\n![image](https://user-images.githubusercontent.com/594470/37140877-d9a218da-22bb-11e8-8673-46fa594f6ce0.png)\r\n\r\n\r\n\r\n\r\n\r\n#### Steps to reproduce:\r\n\r\n1. Send emails to an account registered in erpnext.\r\n2. Reply to received emails (inline and via Details -> reply or replay all).\r\n3. at some point the counter should diverge from number of communication list entries.\r\n\r\nFrappé version: \r\n* ERPNext: **v10.1.4 (master)**\r\n* Frappe Framework: **v10.1.1 (master)**"},"comment":{"url":"https://api.github.com/repos/frappe/frappe/issues/comments/374515765","html_url":"https://github.com/frappe/frappe/issues/5114#issuecomment-374515765","issue_url":"https://api.github.com/repos/frappe/frappe/issues/5114","id":374515765,"user":{"login":"achillesrasquinha","id":9742568,"avatar_url":"https://avatars1.githubusercontent.com/u/9742568?v=4","gravatar_id":"","url":"https://api.github.com/users/achillesrasquinha","html_url":"https://github.com/achillesrasquinha","followers_url":"https://api.github.com/users/achillesrasquinha/followers","following_url":"https://api.github.com/users/achillesrasquinha/following{/other_user}","gists_url":"https://api.github.com/users/achillesrasquinha/gists{/gist_id}","starred_url":"https://api.github.com/users/achillesrasquinha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achillesrasquinha/subscriptions","organizations_url":"https://api.github.com/users/achillesrasquinha/orgs","repos_url":"https://api.github.com/users/achillesrasquinha/repos","events_url":"https://api.github.com/users/achillesrasquinha/events{/privacy}","received_events_url":"https://api.github.com/users/achillesrasquinha/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T08:36:44Z","updated_at":"2018-03-20T08:36:44Z","author_association":"COLLABORATOR","body":"Have a look [here](https://github.com/frappe/frappe/blob/develop/frappe/core/notifications.py#L55)!\r\n\r\nMostly self explanatory. What do you suggest should be the recommended conditions?"}}
{"actor":{"display_login":"achillesrasquinha"}}