24 string curpath = path +
"/cur/";
25 DIR *pdir = opendir(curpath.c_str());
28 + path +
"\": " +
string(strerror(errno)));
35 struct dirent *pdirent;
36 while ((pdirent = readdir(pdir)) != 0) {
37 if (!isdigit(pdirent->d_name[0]))
continue;
39 string filename = pdirent->d_name;
42 string::size_type pos;
43 if ((pos = filename.find(
':')) == string::npos)
44 uniquename = filename;
46 uniquename = filename.substr(0, pos);
48 index.
insert(uniquename, 0, pdirent->d_name);
void setLastError(const std::string &error) const
const std::string & getLastError(void) const
bool scanFileNames(void) const
void clearFileNames(void)
void insert(const std::string &unique, unsigned int uid, const std::string &fileName="")
Declaration of the IODevice class.
Declaration of the IOFactory class.
Declaration of the Maildir class.