#ifndef ____IMAP_NOOP_h__ # define ____IMAP_NOOP_h__ # include "IMAPCommand.h" # include "__IMAP_CHECK.h" namespace mail { class __IMAP_NOOP : public IMAPCommand { // RFC 3501 6.1.2: NOOP MUST be supported in every connection // state. Beyond replying OK, it's also the standard way an idle // client polls for new mail without a full re-SELECT - shares // refreshSelectedMailbox() with CHECK (see __IMAP_CHECK.h) so both // report fresh EXISTS/RECENT when the mailbox has changed. int processCommand(coreutils::ZString &request, IMAPSession &session, IMAPServer &server) override { refreshSelectedMailbox(session); session.out << session.tag << " OK NOOP completed" << CRLF; return 1; } }; } #endif