diff options
Diffstat (limited to 'src/operator-expunge.cc')
-rw-r--r-- | src/operator-expunge.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/operator-expunge.cc b/src/operator-expunge.cc index c987543..0a70c2f 100644 --- a/src/operator-expunge.cc +++ b/src/operator-expunge.cc @@ -26,7 +26,7 @@ const std::string ExpungeOperator::getName() const return "EXPUNGE"; } -int ExpungeOperator::getState() const +Session::State ExpungeOperator::getState() const { return Session::SELECTED; } @@ -41,21 +41,21 @@ Operator::ProcessResult ExpungeOperator::process(Depot &depot, Request &command) | PendingUpdates::FLAGS, true); - return OK; + return Operator::ProcessResult::OK; } -Operator::ParseResult ExpungeOperator::parse(Request &c_in) const +Parser::ParseResult ExpungeOperator::parse(Request &c_in) { Session &session = Session::getInstance(); - if (c_in.getUidMode()) return REJECT; + if (c_in.getUidMode()) return Parser::ParseResult::REJECT; - Operator::ParseResult res; - if ((res = expectCRLF()) != ACCEPT) { + Parser::ParseResult res; + if ((res = expectCRLF()) != Parser::ParseResult::ACCEPT) { session.setLastError("Expected CRLF"); return res; } c_in.setName("EXPUNGE"); - return ACCEPT; + return Parser::ParseResult::ACCEPT; } |