store: expose maildirs() method

This gets the current list of maildirs by asking the scanner to do a
file-system search.
This commit is contained in:
Dirk-Jan C. Binnema
2023-08-13 09:44:20 +03:00
parent f5beea2eb2
commit e52030c049
2 changed files with 30 additions and 0 deletions

View File

@ -426,6 +426,17 @@ public:
*/
bool empty() const { return xapian_db().empty(); }
/**
* Get the list of maildirs, that is, the list of maildirs
* under root_maildir, without file-system prefix.
*
* This does a file-system scan.
*
* @return list of maildirs
*/
std::vector<std::string> maildirs() const;
/*
* _almost_ private
*/