/** * @file operator-noop-pending.cc * @brief Operator for the NOOP command, with pending extension * @author Andreas Aardal Hanssen * @date 2002-2005 */ #include "depot.h" #include "mailbox.h" #include "operators.h" #include "pendingupdates.h" #include "recursivedescent.h" #include "session.h" #include #include using namespace Binc; NoopPendingOperator::NoopPendingOperator() : NoopOperator() {} NoopPendingOperator::~NoopPendingOperator() {} Operator::ProcessResult NoopPendingOperator::process(Depot &depot, Request &command) { Mailbox *mailbox = depot.getSelected(); if (mailbox) { pendingUpdates(mailbox, PendingUpdates::EXPUNGE | PendingUpdates::EXISTS | PendingUpdates::RECENT | PendingUpdates::FLAGS, true); } return Operator::ProcessResult::OK; }