{"action":"created","issue":{"url":"https://api.github.com/repos/haystack/murmur/issues/59","repository_url":"https://api.github.com/repos/haystack/murmur","labels_url":"https://api.github.com/repos/haystack/murmur/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/haystack/murmur/issues/59/comments","events_url":"https://api.github.com/repos/haystack/murmur/issues/59/events","html_url":"https://github.com/haystack/murmur/issues/59","id":127620827,"number":59,"title":"problem with Gmail hiding","user":{"login":"amyxzhang","id":1301962,"avatar_url":"https://avatars.githubusercontent.com/u/1301962?v=3","gravatar_id":"","url":"https://api.github.com/users/amyxzhang","html_url":"https://github.com/amyxzhang","followers_url":"https://api.github.com/users/amyxzhang/followers","following_url":"https://api.github.com/users/amyxzhang/following{/other_user}","gists_url":"https://api.github.com/users/amyxzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/amyxzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amyxzhang/subscriptions","organizations_url":"https://api.github.com/users/amyxzhang/orgs","repos_url":"https://api.github.com/users/amyxzhang/repos","events_url":"https://api.github.com/users/amyxzhang/events{/privacy}","received_events_url":"https://api.github.com/users/amyxzhang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/haystack/murmur/milestones/1","html_url":"https://github.com/haystack/murmur/milestones/Minimum%20Product%20for%20testers","labels_url":"https://api.github.com/repos/haystack/murmur/milestones/1/labels","id":1341572,"number":1,"title":"Minimum Product for testers","description":"Want basic features of Thread Follow, Thread Mute, and Post Upvote implemented.\r\n\r\nFix issues with Gmail and Apple Mail + other large clients.\r\n\r\nWeb interface has all important parts done.","creator":{"login":"amyxzhang","id":1301962,"avatar_url":"https://avatars.githubusercontent.com/u/1301962?v=3","gravatar_id":"","url":"https://api.github.com/users/amyxzhang","html_url":"https://github.com/amyxzhang","followers_url":"https://api.github.com/users/amyxzhang/followers","following_url":"https://api.github.com/users/amyxzhang/following{/other_user}","gists_url":"https://api.github.com/users/amyxzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/amyxzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amyxzhang/subscriptions","organizations_url":"https://api.github.com/users/amyxzhang/orgs","repos_url":"https://api.github.com/users/amyxzhang/repos","events_url":"https://api.github.com/users/amyxzhang/events{/privacy}","received_events_url":"https://api.github.com/users/amyxzhang/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":12,"state":"open","created_at":"2015-10-06T22:54:32Z","updated_at":"2016-03-08T21:27:18Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-01-20T07:16:53Z","updated_at":"2016-04-21T05:49:16Z","closed_at":null,"body":"prior emails in the chain do not get hidden inside the three ellipses. this only happens *sometimes*, not sure why, though I've noticed odd things in old quotes like random </div> tags and sometimes extra spaces that may be triggering gmail to think this is new content so not putting it inside the ellipse. need some testing to figure out exactly why this happens."},"comment":{"url":"https://api.github.com/repos/haystack/murmur/issues/comments/212753344","html_url":"https://github.com/haystack/murmur/issues/59#issuecomment-212753344","issue_url":"https://api.github.com/repos/haystack/murmur/issues/59","id":212753344,"user":{"login":"amyxzhang","id":1301962,"avatar_url":"https://avatars.githubusercontent.com/u/1301962?v=3","gravatar_id":"","url":"https://api.github.com/users/amyxzhang","html_url":"https://github.com/amyxzhang","followers_url":"https://api.github.com/users/amyxzhang/followers","following_url":"https://api.github.com/users/amyxzhang/following{/other_user}","gists_url":"https://api.github.com/users/amyxzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/amyxzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amyxzhang/subscriptions","organizations_url":"https://api.github.com/users/amyxzhang/orgs","repos_url":"https://api.github.com/users/amyxzhang/repos","events_url":"https://api.github.com/users/amyxzhang/events{/privacy}","received_events_url":"https://api.github.com/users/amyxzhang/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T05:49:16Z","updated_at":"2016-04-21T05:49:16Z","body":"Keeping this open for a little while to see if the problem is truly fixed.\r\n\r\nPost mortem of the issue: \r\nMurmur was breaking proper protocol by having lines longer than the line limit for an email. Python's email library was injecting newlines therefore, which sometimes broke up words or even HTML code. This change in content of the emails was triggering Gmail's auto-hide detection because it saw the change and therefore did not hide older replies.\r\n\r\nOur initial fix was to inject newlines ourselves in proper places. However, this caused Gmail to continually add empty DIV tags around the newlines (not sure why), leading to rather ugly and long emails the longer the thread got.\r\n\r\nOur final solution was to switch to quoted-printable encoding. Idea for this came from Google Groups. This allows us to keep emails at a fixed line length without breaking anything and also does not seem to trip up Gmail or Gmail's auto-hider. Sometimes we still see the latest 1 or 2 replies as not hidden but these seem to be edge cases (and I observe that happening all the time in other settings). It looks to be way, way better than it was before."}}