51 vector<string> newCustomFlags;
52 vector<string>::const_iterator f_i = command.
flags.begin();
53 while (f_i != command.
flags.end()) {
59 else newCustomFlags.push_back(*f_i);
71 for (; i != mailbox->
end(); ++i) {
75 unsigned int flags = (
unsigned int) message.
getStdFlags();
84 for (vector<string>::const_iterator it = newCustomFlags.begin();
85 it != newCustomFlags.end(); ++it)
90 for (vector<string>::const_iterator it = newCustomFlags.begin();
91 it != newCustomFlags.end(); ++it)
97 for (vector<string>::const_iterator it = newCustomFlags.begin();
98 it != newCustomFlags.end(); ++it)
113 if (command.
getMode().find(
".SILENT") != string::npos)
virtual Mailbox * getSelected(void) const
virtual void updateFlags(void)=0
virtual iterator begin(const SequenceSet &bset, unsigned int mod=INCLUDE_EXPUNGED|SQNR_MODE) const =0
virtual iterator end(void) const =0
The Message class provides an interface for IMAP messages.
virtual void setCustomFlag(const std::string &flag)=0
virtual void resetStdFlags(void)=0
virtual void setStdFlag(unsigned char)=0
virtual unsigned char getStdFlags(void) const =0
virtual void resetCustomFlags(void)=0
virtual void removeCustomFlag(const std::string &flag)=0
std::vector< std::string > & getFlags(void)
const std::string & getMode(void) const
void setMode(const std::string &m_in)
std::vector< std::string > flags
bool getUidMode(void) const
SequenceSet & getSet(void)
void setLastError(const std::string &error) const
static Session & getInstance(void)
virtual ParseResult parse(Request &) const
ProcessResult process(Depot &, Request &)
const std::string getName(void) const
Declaration of the common items for parsing IMAP input.
Declaration of the Mailbox class (Mailbox is logical container)
Operator::ParseResult expectFlag(std::vector< std::string > &v_in)
Operator::ParseResult expectSPACE(void)
Operator::ParseResult expectThisString(const std::string &s_in)
bool pendingUpdates(Mailbox *, int type, bool rescan, bool showAll=false, bool forceScan=false, bool uidfetchflags=false)
Operator::ParseResult expectSet(SequenceSet &s_in)
Operator::ParseResult expectCRLF(void)
Declaration of all operators.
Declaration of a recursive descent IMAP command parser.