{"action":"reopened","issue":{"url":"https://api.github.com/repos/mscdex/node-imap/issues/449","labels_url":"https://api.github.com/repos/mscdex/node-imap/issues/449/labels{/name}","comments_url":"https://api.github.com/repos/mscdex/node-imap/issues/449/comments","events_url":"https://api.github.com/repos/mscdex/node-imap/issues/449/events","html_url":"https://github.com/mscdex/node-imap/issues/449","id":57254334,"number":449,"title":"Moving thread out of inbox","user":{"login":"ewein","id":2450286,"avatar_url":"https://avatars.githubusercontent.com/u/2450286?v=3","gravatar_id":"","url":"https://api.github.com/users/ewein","html_url":"https://github.com/ewein","followers_url":"https://api.github.com/users/ewein/followers","following_url":"https://api.github.com/users/ewein/following{/other_user}","gists_url":"https://api.github.com/users/ewein/gists{/gist_id}","starred_url":"https://api.github.com/users/ewein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewein/subscriptions","organizations_url":"https://api.github.com/users/ewein/orgs","repos_url":"https://api.github.com/users/ewein/repos","events_url":"https://api.github.com/users/ewein/events{/privacy}","received_events_url":"https://api.github.com/users/ewein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-10T23:26:57Z","updated_at":"2015-02-11T18:21:50Z","closed_at":null,"body":"I am trying to move a thread out of the inbox and into a different folder. When I do this the new label is applied to the thread and the thread shows up in the folder but it also stays in the inbox. \r\n\r\n```\r\nimap.move(msgID, 'folder name', function (err) {\r\n    if (err) {\r\n        imap.addBox('folder name', function (err) {\r\n           if (err) return callback(err);\r\n\r\n           imap.move(msgID, 'folder name', function (err) {\r\n                if (err) return callback(err);\r\n\r\n                imap.end();\r\n                callback();\r\n            });\r\n        });\r\n    } else {\r\n        imap.end();\r\n        callback();\r\n    }\r\n});\r\n```"}}