I'm trying to move an email between Mailboxes, but am getting an error but not sure how to resolve?
where uid contains a valid uid and sMailbox contains a mailbox name checked to exist.
Not sure what 'Not in the selected state' means?
asked Nov 20 '14 at 07:17
Make sure to read the online reference documentation for the Copy method:
bool Copy(int msgId, bool bUid, const char *copyToMailbox);
You need to select the source mailbox. The "Not in the selected state" means you are connected and authenticated with an IMAP server, but you have no mailbox selected..