{"action":"created","issue":{"url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5466","repository_url":"https://api.github.com/repos/roundcube/roundcubemail","labels_url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5466/labels{/name}","comments_url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5466/comments","events_url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5466/events","html_url":"https://github.com/roundcube/roundcubemail/issues/5466","id":181915954,"number":5466,"title":"rcube_imap.delete_folder(): proper sequence","user":{"login":"Andrei-Pozolotin","id":1622151,"avatar_url":"https://avatars.githubusercontent.com/u/1622151?v=3","gravatar_id":"","url":"https://api.github.com/users/Andrei-Pozolotin","html_url":"https://github.com/Andrei-Pozolotin","followers_url":"https://api.github.com/users/Andrei-Pozolotin/followers","following_url":"https://api.github.com/users/Andrei-Pozolotin/following{/other_user}","gists_url":"https://api.github.com/users/Andrei-Pozolotin/gists{/gist_id}","starred_url":"https://api.github.com/users/Andrei-Pozolotin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andrei-Pozolotin/subscriptions","organizations_url":"https://api.github.com/users/Andrei-Pozolotin/orgs","repos_url":"https://api.github.com/users/Andrei-Pozolotin/repos","events_url":"https://api.github.com/users/Andrei-Pozolotin/events{/privacy}","received_events_url":"https://api.github.com/users/Andrei-Pozolotin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/roundcube/roundcubemail/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/roundcube/roundcubemail/labels/C:%20IMAP%20connection","name":"C: IMAP connection","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/roundcube/roundcubemail/milestones/64","html_url":"https://github.com/roundcube/roundcubemail/milestones/1.2.3","labels_url":"https://api.github.com/repos/roundcube/roundcubemail/milestones/64/labels","id":2034257,"number":64,"title":"1.2.3","description":"Service release.","creator":{"login":"alecpl","id":546788,"avatar_url":"https://avatars.githubusercontent.com/u/546788?v=3","gravatar_id":"","url":"https://api.github.com/users/alecpl","html_url":"https://github.com/alecpl","followers_url":"https://api.github.com/users/alecpl/followers","following_url":"https://api.github.com/users/alecpl/following{/other_user}","gists_url":"https://api.github.com/users/alecpl/gists{/gist_id}","starred_url":"https://api.github.com/users/alecpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecpl/subscriptions","organizations_url":"https://api.github.com/users/alecpl/orgs","repos_url":"https://api.github.com/users/alecpl/repos","events_url":"https://api.github.com/users/alecpl/events{/privacy}","received_events_url":"https://api.github.com/users/alecpl/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":9,"state":"open","created_at":"2016-09-28T09:15:43Z","updated_at":"2016-10-15T06:19:58Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-10-09T22:24:08Z","updated_at":"2016-10-15T19:46:22Z","closed_at":"2016-10-14T06:50:35Z","body":"currently `rcube_imap.delete_folder()`:\r\nhttps://github.com/roundcube/roundcubemail/blob/master/program/lib/Roundcube/rcube_imap.php#L3295\r\n\r\nwhen used for deleting in the middle of the branch, produces errors with dovecot v 2.2.25, and leaves empty 'lost' directories in server file system hierarchy, due to `leaf` delete happening after `stem` delete;\r\n\r\nproper sequence is \"recursive delete tree bottom up\" or `leaf` before `stem`, i.e.:\r\nhttps://github.com/random-cuber/contextmenu_folder/blob/master/contextmenu_folder.php#L595\r\n"},"comment":{"url":"https://api.github.com/repos/roundcube/roundcubemail/issues/comments/254006755","html_url":"https://github.com/roundcube/roundcubemail/issues/5466#issuecomment-254006755","issue_url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5466","id":254006755,"user":{"login":"Andrei-Pozolotin","id":1622151,"avatar_url":"https://avatars.githubusercontent.com/u/1622151?v=3","gravatar_id":"","url":"https://api.github.com/users/Andrei-Pozolotin","html_url":"https://github.com/Andrei-Pozolotin","followers_url":"https://api.github.com/users/Andrei-Pozolotin/followers","following_url":"https://api.github.com/users/Andrei-Pozolotin/following{/other_user}","gists_url":"https://api.github.com/users/Andrei-Pozolotin/gists{/gist_id}","starred_url":"https://api.github.com/users/Andrei-Pozolotin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andrei-Pozolotin/subscriptions","organizations_url":"https://api.github.com/users/Andrei-Pozolotin/orgs","repos_url":"https://api.github.com/users/Andrei-Pozolotin/repos","events_url":"https://api.github.com/users/Andrei-Pozolotin/events{/privacy}","received_events_url":"https://api.github.com/users/Andrei-Pozolotin/received_events","type":"User","site_admin":false},"created_at":"2016-10-15T19:46:22Z","updated_at":"2016-10-15T19:46:22Z","body":"it seems there is still a problem (did not test):\r\n`conn->unsubscribe` happens **after** 'conn->deleteFolder'\r\nhttps://github.com/roundcube/roundcubemail/blob/master/program/lib/Roundcube/rcube_imap.php#L3322"}}
{"actor":{"display_login":"Andrei-Pozolotin"}}