{"action":"closed","number":819,"pull_request":{"url":"https://api.github.com/repos/owncloud/mail/pulls/819","id":38262750,"html_url":"https://github.com/owncloud/mail/pull/819","diff_url":"https://github.com/owncloud/mail/pull/819.diff","patch_url":"https://github.com/owncloud/mail/pull/819.patch","issue_url":"https://api.github.com/repos/owncloud/mail/issues/819","number":819,"state":"closed","locked":false,"title":"make composer view reusable, reply IMAP drafts, mailto IMAP drafts, reply attachment","user":{"login":"ChristophWurst","id":1374172,"avatar_url":"https://avatars.githubusercontent.com/u/1374172?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristophWurst","html_url":"https://github.com/ChristophWurst","followers_url":"https://api.github.com/users/ChristophWurst/followers","following_url":"https://api.github.com/users/ChristophWurst/following{/other_user}","gists_url":"https://api.github.com/users/ChristophWurst/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristophWurst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristophWurst/subscriptions","organizations_url":"https://api.github.com/users/ChristophWurst/orgs","repos_url":"https://api.github.com/users/ChristophWurst/repos","events_url":"https://api.github.com/users/ChristophWurst/events{/privacy}","received_events_url":"https://api.github.com/users/ChristophWurst/received_events","type":"User","site_admin":false},"body":"~~first step towards #795~~ this is #795 :rocket: \r\n\r\n~~My intention is to neither change nor break any functionality with this PR, I only want to make the new-message-composer view ready for using it as reply composer too (and then implement #602)~~\r\nAs this is much harder than I thought in the first place, I'll focus on not breaking the _new message composer_ functionality, other composers (e.g. mailto, reply) will be removed/replaced anyway.\r\n\r\nThings to do:\r\n- [x] init\r\n- [x] reset\r\n- [x] send mail\r\n- [x] save IMAP draft\r\n- [x] HTML classes/IDs\r\n- [x] use backbone [$-selector](http://backbonejs.org/#View-dollar)\r\n- [x] fix autocompletion\r\n- [x] add draft UID when sending the message\r\n- [x] hide subject when opening replies\r\n- [x] send replies\r\n- [x] create IMAP reply drafts\r\n- [x] fix reply composer message body size\r\n- [x] expand reply body on click\r\n- [x] reply to/cc not filled correctly\r\n- [x] submit button name is 'Send' for both new messages and replies\r\n- [x] reply cc/bcc toggle slides down and up again (after opening cc/bcc in the new-message-composer)\r\n- [x] fix attachment\r\n- [x] test and fix mailto composer\r\n- [x] add missing reply subject\r\n- [ ] mailto composer does not show attachment names, ``{{displayName}}``is shown instead\r\n\r\nfixes #795, #460, #602, #568","created_at":"2015-06-22T18:44:18Z","updated_at":"2015-07-06T20:08:02Z","closed_at":"2015-07-06T20:08:02Z","merged_at":"2015-07-06T20:08:02Z","merge_commit_sha":"efe0f5cec129759a8ff7bbc72eb603712151261c","assignee":{"login":"ChristophWurst","id":1374172,"avatar_url":"https://avatars.githubusercontent.com/u/1374172?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristophWurst","html_url":"https://github.com/ChristophWurst","followers_url":"https://api.github.com/users/ChristophWurst/followers","following_url":"https://api.github.com/users/ChristophWurst/following{/other_user}","gists_url":"https://api.github.com/users/ChristophWurst/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristophWurst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristophWurst/subscriptions","organizations_url":"https://api.github.com/users/ChristophWurst/orgs","repos_url":"https://api.github.com/users/ChristophWurst/repos","events_url":"https://api.github.com/users/ChristophWurst/events{/privacy}","received_events_url":"https://api.github.com/users/ChristophWurst/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/owncloud/mail/milestones/5","html_url":"https://github.com/owncloud/mail/milestones/0.2","labels_url":"https://api.github.com/repos/owncloud/mail/milestones/5/labels","id":1108267,"number":5,"title":"0.2","description":"Next one! :rocket: 2 years, 4 months and 8 days after the initial commit. ;)","creator":{"login":"jancborchardt","id":925062,"avatar_url":"https://avatars.githubusercontent.com/u/925062?v=3","gravatar_id":"","url":"https://api.github.com/users/jancborchardt","html_url":"https://github.com/jancborchardt","followers_url":"https://api.github.com/users/jancborchardt/followers","following_url":"https://api.github.com/users/jancborchardt/following{/other_user}","gists_url":"https://api.github.com/users/jancborchardt/gists{/gist_id}","starred_url":"https://api.github.com/users/jancborchardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jancborchardt/subscriptions","organizations_url":"https://api.github.com/users/jancborchardt/orgs","repos_url":"https://api.github.com/users/jancborchardt/repos","events_url":"https://api.github.com/users/jancborchardt/events{/privacy}","received_events_url":"https://api.github.com/users/jancborchardt/received_events","type":"User","site_admin":false},"open_issues":41,"closed_issues":119,"state":"open","created_at":"2015-05-13T09:28:21Z","updated_at":"2015-07-06T20:08:02Z","due_on":"2015-07-13T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/owncloud/mail/pulls/819/commits","review_comments_url":"https://api.github.com/repos/owncloud/mail/pulls/819/comments","review_comment_url":"https://api.github.com/repos/owncloud/mail/pulls/comments{/number}","comments_url":"https://api.github.com/repos/owncloud/mail/issues/819/comments","statuses_url":"https://api.github.com/repos/owncloud/mail/statuses/7b88e892fba4f21309ebcba287091e9188831b49","head":{"label":"owncloud:unified-composer","ref":"unified-composer","sha":"7b88e892fba4f21309ebcba287091e9188831b49","user":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"repo":{"id":8604367,"name":"mail","full_name":"owncloud/mail","owner":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/owncloud/mail","description":"ownCloud Mail app","fork":false,"url":"https://api.github.com/repos/owncloud/mail","forks_url":"https://api.github.com/repos/owncloud/mail/forks","keys_url":"https://api.github.com/repos/owncloud/mail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owncloud/mail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owncloud/mail/teams","hooks_url":"https://api.github.com/repos/owncloud/mail/hooks","issue_events_url":"https://api.github.com/repos/owncloud/mail/issues/events{/number}","events_url":"https://api.github.com/repos/owncloud/mail/events","assignees_url":"https://api.github.com/repos/owncloud/mail/assignees{/user}","branches_url":"https://api.github.com/repos/owncloud/mail/branches{/branch}","tags_url":"https://api.github.com/repos/owncloud/mail/tags","blobs_url":"https://api.github.com/repos/owncloud/mail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owncloud/mail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owncloud/mail/git/refs{/sha}","trees_url":"https://api.github.com/repos/owncloud/mail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owncloud/mail/statuses/{sha}","languages_url":"https://api.github.com/repos/owncloud/mail/languages","stargazers_url":"https://api.github.com/repos/owncloud/mail/stargazers","contributors_url":"https://api.github.com/repos/owncloud/mail/contributors","subscribers_url":"https://api.github.com/repos/owncloud/mail/subscribers","subscription_url":"https://api.github.com/repos/owncloud/mail/subscription","commits_url":"https://api.github.com/repos/owncloud/mail/commits{/sha}","git_commits_url":"https://api.github.com/repos/owncloud/mail/git/commits{/sha}","comments_url":"https://api.github.com/repos/owncloud/mail/comments{/number}","issue_comment_url":"https://api.github.com/repos/owncloud/mail/issues/comments{/number}","contents_url":"https://api.github.com/repos/owncloud/mail/contents/{+path}","compare_url":"https://api.github.com/repos/owncloud/mail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owncloud/mail/merges","archive_url":"https://api.github.com/repos/owncloud/mail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owncloud/mail/downloads","issues_url":"https://api.github.com/repos/owncloud/mail/issues{/number}","pulls_url":"https://api.github.com/repos/owncloud/mail/pulls{/number}","milestones_url":"https://api.github.com/repos/owncloud/mail/milestones{/number}","notifications_url":"https://api.github.com/repos/owncloud/mail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owncloud/mail/labels{/name}","releases_url":"https://api.github.com/repos/owncloud/mail/releases{/id}","created_at":"2013-03-06T13:51:00Z","updated_at":"2015-07-03T12:18:12Z","pushed_at":"2015-07-06T20:08:02Z","git_url":"git://github.com/owncloud/mail.git","ssh_url":"git@github.com:owncloud/mail.git","clone_url":"https://github.com/owncloud/mail.git","svn_url":"https://github.com/owncloud/mail","homepage":"https://apps.owncloud.com/content/show.php/Mail?content=169914","size":12377,"stargazers_count":148,"watchers_count":148,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":132,"forks":44,"open_issues":132,"watchers":148,"default_branch":"master"}},"base":{"label":"owncloud:master","ref":"master","sha":"956428925d8089c8b3670eeedf34f52e70dd0b44","user":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"repo":{"id":8604367,"name":"mail","full_name":"owncloud/mail","owner":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/owncloud/mail","description":"ownCloud Mail app","fork":false,"url":"https://api.github.com/repos/owncloud/mail","forks_url":"https://api.github.com/repos/owncloud/mail/forks","keys_url":"https://api.github.com/repos/owncloud/mail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owncloud/mail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owncloud/mail/teams","hooks_url":"https://api.github.com/repos/owncloud/mail/hooks","issue_events_url":"https://api.github.com/repos/owncloud/mail/issues/events{/number}","events_url":"https://api.github.com/repos/owncloud/mail/events","assignees_url":"https://api.github.com/repos/owncloud/mail/assignees{/user}","branches_url":"https://api.github.com/repos/owncloud/mail/branches{/branch}","tags_url":"https://api.github.com/repos/owncloud/mail/tags","blobs_url":"https://api.github.com/repos/owncloud/mail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owncloud/mail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owncloud/mail/git/refs{/sha}","trees_url":"https://api.github.com/repos/owncloud/mail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owncloud/mail/statuses/{sha}","languages_url":"https://api.github.com/repos/owncloud/mail/languages","stargazers_url":"https://api.github.com/repos/owncloud/mail/stargazers","contributors_url":"https://api.github.com/repos/owncloud/mail/contributors","subscribers_url":"https://api.github.com/repos/owncloud/mail/subscribers","subscription_url":"https://api.github.com/repos/owncloud/mail/subscription","commits_url":"https://api.github.com/repos/owncloud/mail/commits{/sha}","git_commits_url":"https://api.github.com/repos/owncloud/mail/git/commits{/sha}","comments_url":"https://api.github.com/repos/owncloud/mail/comments{/number}","issue_comment_url":"https://api.github.com/repos/owncloud/mail/issues/comments{/number}","contents_url":"https://api.github.com/repos/owncloud/mail/contents/{+path}","compare_url":"https://api.github.com/repos/owncloud/mail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owncloud/mail/merges","archive_url":"https://api.github.com/repos/owncloud/mail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owncloud/mail/downloads","issues_url":"https://api.github.com/repos/owncloud/mail/issues{/number}","pulls_url":"https://api.github.com/repos/owncloud/mail/pulls{/number}","milestones_url":"https://api.github.com/repos/owncloud/mail/milestones{/number}","notifications_url":"https://api.github.com/repos/owncloud/mail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owncloud/mail/labels{/name}","releases_url":"https://api.github.com/repos/owncloud/mail/releases{/id}","created_at":"2013-03-06T13:51:00Z","updated_at":"2015-07-03T12:18:12Z","pushed_at":"2015-07-06T20:08:02Z","git_url":"git://github.com/owncloud/mail.git","ssh_url":"git@github.com:owncloud/mail.git","clone_url":"https://github.com/owncloud/mail.git","svn_url":"https://github.com/owncloud/mail","homepage":"https://apps.owncloud.com/content/show.php/Mail?content=169914","size":12377,"stargazers_count":148,"watchers_count":148,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":132,"forks":44,"open_issues":132,"watchers":148,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/owncloud/mail/pulls/819"},"html":{"href":"https://github.com/owncloud/mail/pull/819"},"issue":{"href":"https://api.github.com/repos/owncloud/mail/issues/819"},"comments":{"href":"https://api.github.com/repos/owncloud/mail/issues/819/comments"},"review_comments":{"href":"https://api.github.com/repos/owncloud/mail/pulls/819/comments"},"review_comment":{"href":"https://api.github.com/repos/owncloud/mail/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/owncloud/mail/pulls/819/commits"},"statuses":{"href":"https://api.github.com/repos/owncloud/mail/statuses/7b88e892fba4f21309ebcba287091e9188831b49"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"DeepDiver1975","id":1005065,"avatar_url":"https://avatars.githubusercontent.com/u/1005065?v=3","gravatar_id":"","url":"https://api.github.com/users/DeepDiver1975","html_url":"https://github.com/DeepDiver1975","followers_url":"https://api.github.com/users/DeepDiver1975/followers","following_url":"https://api.github.com/users/DeepDiver1975/following{/other_user}","gists_url":"https://api.github.com/users/DeepDiver1975/gists{/gist_id}","starred_url":"https://api.github.com/users/DeepDiver1975/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeepDiver1975/subscriptions","organizations_url":"https://api.github.com/users/DeepDiver1975/orgs","repos_url":"https://api.github.com/users/DeepDiver1975/repos","events_url":"https://api.github.com/users/DeepDiver1975/events{/privacy}","received_events_url":"https://api.github.com/users/DeepDiver1975/received_events","type":"User","site_admin":false},"comments":10,"review_comments":1,"commits":4,"additions":838,"deletions":759,"changed_files":16}}