#ifndef ____IMAP_SELECT_h__ # define ____IMAP_SELECT_h__ # include "IMAPCommand.h" namespace mail { // Shared by SELECT and EXAMINE (RFC 3501 6.3.1/6.3.2 - identical // except EXAMINE opens read-only and doesn't leave the mailbox // vulnerable to STORE/EXPUNGE). Also used directly by __IMAP_UID and // __IMAP_STATUS-adjacent code that needs a freshly loaded MailFolder // without going through the full command dispatch. int selectOrExamine(coreutils::ZString &request, IMAPSession &session, IMAPServer &server, bool readOnly); class __IMAP_SELECT : public IMAPCommand { int processCommand(coreutils::ZString &request, IMAPSession &session, IMAPServer &server) override; }; } #endif