{"action":"created","issue":{"url":"https://api.github.com/repos/sup-heliotrope/sup/issues/512","repository_url":"https://api.github.com/repos/sup-heliotrope/sup","labels_url":"https://api.github.com/repos/sup-heliotrope/sup/issues/512/labels{/name}","comments_url":"https://api.github.com/repos/sup-heliotrope/sup/issues/512/comments","events_url":"https://api.github.com/repos/sup-heliotrope/sup/issues/512/events","html_url":"https://github.com/sup-heliotrope/sup/issues/512","id":149994962,"number":512,"title":"How can I move emails to another folder when archiving?","user":{"login":"guillaumecherel","id":6168820,"avatar_url":"https://avatars.githubusercontent.com/u/6168820?v=3","gravatar_id":"","url":"https://api.github.com/users/guillaumecherel","html_url":"https://github.com/guillaumecherel","followers_url":"https://api.github.com/users/guillaumecherel/followers","following_url":"https://api.github.com/users/guillaumecherel/following{/other_user}","gists_url":"https://api.github.com/users/guillaumecherel/gists{/gist_id}","starred_url":"https://api.github.com/users/guillaumecherel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guillaumecherel/subscriptions","organizations_url":"https://api.github.com/users/guillaumecherel/orgs","repos_url":"https://api.github.com/users/guillaumecherel/repos","events_url":"https://api.github.com/users/guillaumecherel/events{/privacy}","received_events_url":"https://api.github.com/users/guillaumecherel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-21T07:51:01Z","updated_at":"2016-04-28T00:37:23Z","closed_at":null,"body":"My IMAP server has quotas and I wont be able to store all my mails there as their quantity will grow. I use offlineimap to sync it to a local maildir and use sup on this maildir. I would like to create another separate \"archive\" maildir, which won't be synchronized with a server. How can I move emails that I'm archiving in sup to this separate maildir? I've thought of a couple of ways but I couldn't figure out how to realize them:\r\n\r\n- Interactive way: use a hook to automatically move emails when they are archived (I couldn't find an appropriate hook).\r\n- Batch way: get the list of messages that don't containt the label \"inbox\" and that are in the first maildir (the one which is synced with the server), get their corresponding filenames, and move them.\r\n\r\nI think the first approach is the best. Is there any way I could make it work, with hooks or another approach (maybe writing a function that does archive & move and rebind the 'a' key to it)?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/sup-heliotrope/sup/issues/comments/215273662","html_url":"https://github.com/sup-heliotrope/sup/issues/512#issuecomment-215273662","issue_url":"https://api.github.com/repos/sup-heliotrope/sup/issues/512","id":215273662,"user":{"login":"ppwwyyxx","id":1381301,"avatar_url":"https://avatars.githubusercontent.com/u/1381301?v=3","gravatar_id":"","url":"https://api.github.com/users/ppwwyyxx","html_url":"https://github.com/ppwwyyxx","followers_url":"https://api.github.com/users/ppwwyyxx/followers","following_url":"https://api.github.com/users/ppwwyyxx/following{/other_user}","gists_url":"https://api.github.com/users/ppwwyyxx/gists{/gist_id}","starred_url":"https://api.github.com/users/ppwwyyxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppwwyyxx/subscriptions","organizations_url":"https://api.github.com/users/ppwwyyxx/orgs","repos_url":"https://api.github.com/users/ppwwyyxx/repos","events_url":"https://api.github.com/users/ppwwyyxx/events{/privacy}","received_events_url":"https://api.github.com/users/ppwwyyxx/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T00:37:23Z","updated_at":"2016-04-28T00:37:23Z","body":"Are you suggesting that we use the console for a custom archive method?\r\nIs it possible to simply move the thread file to a different maildir folder, while sup is still running? Are there any synchronization issues I need to take care, or how do I notice sup of these changes?"}}