39 expunges.push_back(uid);
44 unsigned int flags,
const vector<string> &cflags)
46 flagupdates[sqnr] = flags;
47 sqnrtouid[sqnr] = uid;
48 sqnrtocflags[sqnr] = cflags;
114 return internal == i.internal;
120 return internal != i.internal;
142 map<unsigned int, unsigned int>::iterator i,
143 map<
unsigned int, vector<string> > *j,
144 map<unsigned int, unsigned int> *sqnrmap) : internal(i), sqnrtocflags(j)
158 return internal != i.internal;
176 return internal->first;
182 return internal->second;
188 return (*sqnrtocflags)[internal->first];
194 return (*sqnrtouid)[internal->first];
199 bool forceScan,
bool uidfetchflags)
207 if (!mailbox->
getUpdates(rescan, type, p, forceScan)) {
217 bincClient <<
"* " << *i <<
" EXPUNGE" << endl;
235 vector<string> flagv;
244 for (vector<string>::const_iterator k
245 = flagv.begin(); k != flagv.end(); ++k) {
251 for (vector<string>::const_iterator it = customFlags.begin();
252 it != customFlags.end(); ++it) {
253 if (flagv.size() > 0 || it != customFlags.begin())
bincClient <<
" ";
const std::string & getLastError(void) const
virtual bool getUpdates(bool scan, unsigned int type, PendingUpdates &updates, bool forceScan)=0
bool operator!=(expunged_const_iterator) const
bool operator==(expunged_const_iterator) const
unsigned int operator*(void) const
expunged_const_iterator(void)
unsigned int first(void) const
std::vector< std::string > getCustomFlags(void) const
unsigned int second(void) const
unsigned int getUID(void) const
flagupdates_const_iterator(void)
bool operator!=(flagupdates_const_iterator) const
expunged_const_iterator beginExpunged(void)
bool newRecent(void) const
void addFlagUpdates(unsigned int sqnr, unsigned int uid, unsigned int flags, const std::vector< std::string > &cflags)
unsigned int getExists(void) const
flagupdates_const_iterator endFlagUpdates(void)
bool newExists(void) const
void setExists(unsigned int n)
void addExpunged(unsigned int uid)
unsigned int getRecent(void) const
void setRecent(unsigned int n)
flagupdates_const_iterator beginFlagUpdates(void)
expunged_const_iterator endExpunged(void)
void setLastError(const std::string &error) const
static Session & getInstance(void)
Declaration of the IODevice class.
Declaration of the IOFactory class.
Declaration of the Mailbox class (Mailbox is logical container)
Declaration of the Message class.
bool pendingUpdates(Mailbox *, int type, bool rescan, bool showAll=false, bool forceScan=false, bool uidfetchflags=false)