50 const string &srcmailbox = command.
getMailbox();
56 if (canonmailbox ==
"INBOX") {
57 session.
setLastError(
"Sorry, renaming INBOX is not yet supported"
58 " by this IMAP server. Try copying the messages"
63 if (canondestmailbox ==
"INBOX") {
64 session.
setLastError(
"It is not allowed to rename a mailbox to INBOX");
90 session.
setLastError(
"Expected mailbox after RENAME SPACE");
95 session.
setLastError(
"Expected SPACE after RENAME SPACE mailbox");
101 session.
setLastError(
"Expected mailbox after RENAME SPACE"
108 " mailbox SPACE mailbox");
virtual bool renameMailbox(const std::string &m, const std::string &n) const
virtual ParseResult parse(Request &) const
ProcessResult process(Depot &, Request &)
const std::string getName(void) const
void setNewMailbox(const std::string &s_in)
void setMailbox(const std::string &s_in)
void setName(const std::string &s_in)
const std::string & getMailbox(void) const
bool getUidMode(void) const
const std::string & getNewMailbox(void) const
void setLastError(const std::string &error) const
static Session & getInstance(void)
Declaration of miscellaneous convertion functions.
Declaration of the Mailbox class (Mailbox is logical container)
Operator::ParseResult expectSPACE(void)
std::string toCanonMailbox(const std::string &s_in)
Operator::ParseResult expectCRLF(void)
Operator::ParseResult expectMailbox(std::string &s_in)
Declaration of all operators.
Declaration of a recursive descent IMAP command parser.