#ifndef ____IMAP_CHECK_h__ # define ____IMAP_CHECK_h__ # include "IMAPCommand.h" namespace mail { // Re-loads the selected mailbox (if any) and emits fresh untagged // EXISTS/RECENT if the message count changed - shared by CHECK and // NOOP, RFC 3501 6.1.2/6.4.1 both call for exactly this ("perform // housekeeping"/reflect newly delivered mail), and there's nothing // NOOP does that CHECK doesn't already need to as its main job. void refreshSelectedMailbox(IMAPSession &session); class __IMAP_CHECK : public IMAPCommand { int processCommand(coreutils::ZString &request, IMAPSession &session, IMAPServer &server) override; }; } #endif