#ifndef ____IMAP_LIST_h__ # define ____IMAP_LIST_h__ # include "IMAPCommand.h" # include namespace mail { // Minimal glob match for LIST/LSUB patterns: '*' matches any run of // characters, '%' does too (there's no folder hierarchy in this // server, so the usual '%' "don't cross the hierarchy delimiter" // distinction from '*' has nothing to differ over), anything else // matches literally. bool imapListPatternMatch(const std::string &pattern, const std::string &name); class __IMAP_LIST : public IMAPCommand { int processCommand(coreutils::ZString &request, IMAPSession &session, IMAPServer &server) override; }; } #endif