22 : extra(0), flags(), statuses(), bset(), searchkey(), fatt()
227 : limited(copy.limited), nullSet(copy.nullSet), internal(copy.internal)
234 limited = copy.limited;
235 nullSet = copy.nullSet;
236 internal = copy.internal;
263 static bool initialized =
false;
275SequenceSet::Range::Range(
unsigned int a,
unsigned int b)
289 if (a == (
unsigned int)-1 || b == (
unsigned int)-1) limited =
false;
290 internal.push_back(Range(a, b));
296 if (a == (
unsigned int)-1) limited =
false;
297 internal.push_back(Range(a, a));
303 unsigned int maxvalue = 0;
304 for (vector<Range>::const_iterator i = internal.begin();
305 i != internal.end(); ++i) {
307 if (r.from > maxvalue) maxvalue = r.from;
308 else if (r.to > maxvalue) maxvalue = r.to;
310 if (n >= (*i).from && n <= (*i).to) {
315 return (n > maxvalue && !limited);
331 if (
type ==
"BODY.PEEK")
336 if (
type ==
"BODY" ||
type ==
"BODY.PEEK") {
347 for (vector<string>::iterator i =
headerlist.begin();
std::vector< std::string > headerlist
unsigned int offsetlength
BincImapParserFetchAtt(const std::string &typeName="")
std::string toString(void)
const SequenceSet & getSet(void) const
BincImapParserSearchKey(void)
const std::string & getTag(void) const
const std::string & getDate(void) const
const std::string & getName(void) const
void setNewMailbox(const std::string &s_in)
void setCharSet(const std::string &s_in)
void setDate(const std::string &s_in)
void setMailbox(const std::string &s_in)
void setTag(std::string &t_in)
std::vector< std::string > & getFlags(void)
const std::string & getUserID(void) const
void setPassword(const std::string &s_in)
const std::string & getMode(void) const
void setName(const std::string &s_in)
void setLiteral(const std::string &s_in)
const std::string & getListMailbox(void) const
const std::string & getMailbox(void) const
void setMode(const std::string &m_in)
const std::string & getPassword(void) const
void setUserID(const std::string &s_in)
std::vector< std::string > flags
BincImapParserData * extra
bool getUidMode(void) const
const std::string & getContextInfo(void) const
std::vector< std::string > statuses
void setContextInfo(const std::string &s_in)
void setAuthType(const std::string &s_in)
std::vector< std::string > & getStatuses(void)
void setListMailbox(const std::string &s_in)
SequenceSet & getSet(void)
const std::string & getNewMailbox(void) const
const std::string & getAuthType(void) const
const std::string & getLiteral(void) const
const std::string & getCharSet(void) const
static SequenceSet & all(void)
SequenceSet & operator=(const SequenceSet ©)
void addRange(unsigned int a_in, unsigned int b_in)
bool isInSet(unsigned int n) const
void addNumber(unsigned int a_in)
static SequenceSet & null(void)
Declaration of miscellaneous convertion functions.
Declaration of the common items for parsing IMAP input.
std::string toImapString(const std::string &s_in)
std::string toString(int i_in)
void uppercase(std::string &input)