#ifndef ____POP3_RSET_h__ # define ____POP3_RSET_h__ # include "POP3Command.h" namespace mail { class __POP3_RSET : public POP3Command { // RFC 1939 5: unmarks every message DELE marked this session - // does not undo anything already committed (nothing is committed // until QUIT). int processCommand(coreutils::ZString request, POP3Session &session, POP3Server &server) override { if (!session.authenticated) { session.out << "-ERR Not authenticated" << CRLF; return 1; } session.deletedMarks.clear(); session.out << "+OK" << CRLF; return 1; } }; } #endif