{"action":"created","issue":{"url":"https://api.github.com/repos/jens-maus/yam/issues/460","repository_url":"https://api.github.com/repos/jens-maus/yam","labels_url":"https://api.github.com/repos/jens-maus/yam/issues/460/labels{/name}","comments_url":"https://api.github.com/repos/jens-maus/yam/issues/460/comments","events_url":"https://api.github.com/repos/jens-maus/yam/issues/460/events","html_url":"https://github.com/jens-maus/yam/issues/460","id":148147810,"number":460,"title":"Discarding changes in an edited draft mail deletes the mail","user":{"login":"jens-maus","id":5887769,"avatar_url":"https://avatars.githubusercontent.com/u/5887769?v=3","gravatar_id":"","url":"https://api.github.com/users/jens-maus","html_url":"https://github.com/jens-maus","followers_url":"https://api.github.com/users/jens-maus/followers","following_url":"https://api.github.com/users/jens-maus/following{/other_user}","gists_url":"https://api.github.com/users/jens-maus/gists{/gist_id}","starred_url":"https://api.github.com/users/jens-maus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jens-maus/subscriptions","organizations_url":"https://api.github.com/users/jens-maus/orgs","repos_url":"https://api.github.com/users/jens-maus/repos","events_url":"https://api.github.com/users/jens-maus/events{/privacy}","received_events_url":"https://api.github.com/users/jens-maus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jens-maus/yam/labels/@undecided","name":"@undecided","color":"ededed"},{"url":"https://api.github.com/repos/jens-maus/yam/labels/bug","name":"bug","color":"ee0701"},{"url":"https://api.github.com/repos/jens-maus/yam/labels/fixed","name":"fixed","color":"ededed"},{"url":"https://api.github.com/repos/jens-maus/yam/labels/nightly%20build","name":"nightly build","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"jens-maus","id":5887769,"avatar_url":"https://avatars.githubusercontent.com/u/5887769?v=3","gravatar_id":"","url":"https://api.github.com/users/jens-maus","html_url":"https://github.com/jens-maus","followers_url":"https://api.github.com/users/jens-maus/followers","following_url":"https://api.github.com/users/jens-maus/following{/other_user}","gists_url":"https://api.github.com/users/jens-maus/gists{/gist_id}","starred_url":"https://api.github.com/users/jens-maus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jens-maus/subscriptions","organizations_url":"https://api.github.com/users/jens-maus/orgs","repos_url":"https://api.github.com/users/jens-maus/repos","events_url":"https://api.github.com/users/jens-maus/events{/privacy}","received_events_url":"https://api.github.com/users/jens-maus/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/jens-maus/yam/milestones/5","html_url":"https://github.com/jens-maus/yam/milestones/YAM%202.9","labels_url":"https://api.github.com/repos/jens-maus/yam/milestones/5/labels","id":1703658,"number":5,"title":"YAM 2.9","description":"[[TicketQuery(milestone=YAM 2.9, order=resolution, desc=1, format=table, col=id|type|status|resolution|priority|summary)]]","creator":{"login":"jens-maus","id":5887769,"avatar_url":"https://avatars.githubusercontent.com/u/5887769?v=3","gravatar_id":"","url":"https://api.github.com/users/jens-maus","html_url":"https://github.com/jens-maus","followers_url":"https://api.github.com/users/jens-maus/followers","following_url":"https://api.github.com/users/jens-maus/following{/other_user}","gists_url":"https://api.github.com/users/jens-maus/gists{/gist_id}","starred_url":"https://api.github.com/users/jens-maus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jens-maus/subscriptions","organizations_url":"https://api.github.com/users/jens-maus/orgs","repos_url":"https://api.github.com/users/jens-maus/repos","events_url":"https://api.github.com/users/jens-maus/events{/privacy}","received_events_url":"https://api.github.com/users/jens-maus/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":91,"state":"closed","created_at":"2016-04-13T12:36:55Z","updated_at":"2016-04-13T18:42:01Z","due_on":"2013-12-19T23:00:00Z","closed_at":"2016-04-13T12:36:55Z"},"comments":1,"created_at":"2016-04-13T18:41:55Z","updated_at":"2016-04-13T18:42:03Z","closed_at":"2016-04-13T18:42:01Z","body":"**:bust_in_silhouette: Originally by @tboeckel on 2013-11-24 13:14:33 +0100**\n<hr>\n## Summary\nEditing a mail in the drafts folder a second time will delete the mail if there are yet unsaved changes and the user closes the write window and chooses \"\n\n## Steps to reproduce\n 1. Write a new mail\n 2. Save it as draft and close the write window\n 3. Edit the draft mail again and make some changes\n 4. Close the write window and choose \"Discard\" in the confirmation requester\n\n## Expected results\nThe former draft mail should be kept, at least in the state in which the second edit action started. Later changes being made permanent by the auto save feature should of course be kept, too.\n\n## Actual results\nThe mail is deleted."},"comment":{"url":"https://api.github.com/repos/jens-maus/yam/issues/comments/209589138","html_url":"https://github.com/jens-maus/yam/issues/460#issuecomment-209589138","issue_url":"https://api.github.com/repos/jens-maus/yam/issues/460","id":209589138,"user":{"login":"jens-maus","id":5887769,"avatar_url":"https://avatars.githubusercontent.com/u/5887769?v=3","gravatar_id":"","url":"https://api.github.com/users/jens-maus","html_url":"https://github.com/jens-maus","followers_url":"https://api.github.com/users/jens-maus/followers","following_url":"https://api.github.com/users/jens-maus/following{/other_user}","gists_url":"https://api.github.com/users/jens-maus/gists{/gist_id}","starred_url":"https://api.github.com/users/jens-maus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jens-maus/subscriptions","organizations_url":"https://api.github.com/users/jens-maus/orgs","repos_url":"https://api.github.com/users/jens-maus/repos","events_url":"https://api.github.com/users/jens-maus/events{/privacy}","received_events_url":"https://api.github.com/users/jens-maus/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T18:42:03Z","updated_at":"2016-04-13T18:42:03Z","body":"**:bust_in_silhouette: Originally by @tboeckel on 2013-11-24 13:25:02 +0100**\n<hr>\n(In [7347]) * mui/WriteWindow.c: draft mails being edited a second time are no longer deleted when the user did some changes and closes the write window to discard the changes. This closes #460."}}