{"action":"created","issue":{"url":"https://api.github.com/repos/mxk/go-imap/issues/22","repository_url":"https://api.github.com/repos/mxk/go-imap","labels_url":"https://api.github.com/repos/mxk/go-imap/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/mxk/go-imap/issues/22/comments","events_url":"https://api.github.com/repos/mxk/go-imap/issues/22/events","html_url":"https://github.com/mxk/go-imap/issues/22","id":169378317,"number":22,"title":"How do you set mailbox flags","user":{"login":"ross-williams","id":5669313,"avatar_url":"https://avatars.githubusercontent.com/u/5669313?v=3","gravatar_id":"","url":"https://api.github.com/users/ross-williams","html_url":"https://github.com/ross-williams","followers_url":"https://api.github.com/users/ross-williams/followers","following_url":"https://api.github.com/users/ross-williams/following{/other_user}","gists_url":"https://api.github.com/users/ross-williams/gists{/gist_id}","starred_url":"https://api.github.com/users/ross-williams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ross-williams/subscriptions","organizations_url":"https://api.github.com/users/ross-williams/orgs","repos_url":"https://api.github.com/users/ross-williams/repos","events_url":"https://api.github.com/users/ross-williams/events{/privacy}","received_events_url":"https://api.github.com/users/ross-williams/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-04T13:47:09Z","updated_at":"2016-08-06T13:52:00Z","closed_at":null,"body":"I have written a Go program that uses mxk/go-imap to copy an IMAP email account\r\nto another IMAP email account and to compare two IMAP accounts. It all works fine,\r\nincluding the copying of message flags and the comparing of mailbox flags.\r\n\r\nHowever, I can't find anything in the mxk/go-imap interface that enables me to WRITE\r\nmailbox flags. I can read them by examining mailboxinfo.attrs which I can obtain\r\nby calling func (rsp *Response) MailboxInfo() *MailboxInfo but I can't see anything\r\nin the interface that allows me to write them. The method\r\n   func (c *Client) Create(mbox string) (cmd *Command, err error)\r\ndoes not allow me to specify a set of flags, and there seems to be no additional\r\nmethod to allow me to do so.\r\n\r\nI would really appreciate some help here because this is the last missing piece\r\nfor an IMAP copy program that is otherwise copying and comparing everything\r\nelse in an IMAP account perfectly. The mailbox flags is the only thing it doesn't\r\ncopy correctly.\r\n\r\nRoss Williams"},"comment":{"url":"https://api.github.com/repos/mxk/go-imap/issues/comments/238024255","html_url":"https://github.com/mxk/go-imap/issues/22#issuecomment-238024255","issue_url":"https://api.github.com/repos/mxk/go-imap/issues/22","id":238024255,"user":{"login":"emersion","id":506932,"avatar_url":"https://avatars.githubusercontent.com/u/506932?v=3","gravatar_id":"","url":"https://api.github.com/users/emersion","html_url":"https://github.com/emersion","followers_url":"https://api.github.com/users/emersion/followers","following_url":"https://api.github.com/users/emersion/following{/other_user}","gists_url":"https://api.github.com/users/emersion/gists{/gist_id}","starred_url":"https://api.github.com/users/emersion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emersion/subscriptions","organizations_url":"https://api.github.com/users/emersion/orgs","repos_url":"https://api.github.com/users/emersion/repos","events_url":"https://api.github.com/users/emersion/events{/privacy}","received_events_url":"https://api.github.com/users/emersion/received_events","type":"User","site_admin":false},"created_at":"2016-08-06T13:52:00Z","updated_at":"2016-08-06T13:52:00Z","body":"You can only specify mailbox flags if your server supports the `CREATE-SPECIAL-USE` capability (see https://tools.ietf.org/html/rfc6154#section-3). In this case, it would be possible to implement a `CreateWithUses(name string, uses []string)` func that creates a mailbox with the specified special-use flags."}}
{"actor":{"display_login":"emersion"}}