55 if (destMailbox == 0) {
67 for (; success && i != srcMailbox->
end(); ++i) {
70 if (srcMailbox->
fastCopy(source, *destMailbox,
94 if (readSize == 0)
break;
95 else if (readSize == -1) {
98 <<
" in \"" << srcMailbox->
getName() <<
"\": "
103 << dmailbox <<
"\": "
113 session.
setLastError(
"Failed to rollback after unsuccessful copy: "
120 session.
setLastError(
"Failed to commit after successful copy: "
126 session.
setLastError(
"The transaction was unrolled. Please "
127 "contant your system administrator for "
128 "more information.");
130 return success ?
OK :
NO;
145 session.
setLastError(
"Expected sequence set after COPY SPACE");
150 session.
setLastError(
"Expected SPACE after COPY SPACE set");
156 session.
setLastError(
"Expected mailbox after COPY SPACE set SPACE");
161 session.
setLastError(
"Expected CRLF after COPY SPACE set SPACE mailbox");
virtual ParseResult parse(Request &) const
ProcessResult process(Depot &, Request &)
const std::string getName(void) const
virtual Mailbox * get(const std::string &path) const
virtual std::string mailboxToFilename(const std::string &m) const =0
virtual Mailbox * getSelected(void) const
unsigned int getSqnr() const
virtual bool rollBackNewMessages(void)=0
const std::string & getLastError(void) const
virtual iterator begin(const SequenceSet &bset, unsigned int mod=INCLUDE_EXPUNGED|SQNR_MODE) const =0
virtual bool commitNewMessages(const std::string &mbox)=0
virtual iterator end(void) const =0
virtual bool fastCopy(Message &source, Mailbox &desttype, const std::string &destname)=0
virtual Message * createMessage(const std::string &mbox, time_t idate=0)=0
const std::string getName(void) const
The Message class provides an interface for IMAP messages.
virtual void setInternalDate(time_t)=0
virtual time_t getInternalDate(void) const =0
virtual void close(void)=0
virtual unsigned int getUID(void) const =0
virtual void setStdFlag(unsigned char)=0
virtual bool appendChunk(const std::string &)=0
virtual unsigned char getStdFlags(void) const =0
virtual int readChunk(std::string &)=0
const std::string & getLastError(void) const
void setMailbox(const std::string &s_in)
void setName(const std::string &s_in)
const std::string & getMailbox(void) const
bool getUidMode(void) const
SequenceSet & getSet(void)
void setLastError(const std::string &error) const
void setResponseCode(const std::string &error) const
static Session & getInstance(void)
Declaration of miscellaneous convertion functions.
Declaration of the IODevice class.
Declaration of the IOFactory class.
Declaration of the Maildir class.
std::string toImapString(const std::string &s_in)
Operator::ParseResult expectSPACE(void)
std::string toCanonMailbox(const std::string &s_in)
Operator::ParseResult expectSet(SequenceSet &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.