diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-10-11 21:49:37 +0200 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-10-11 21:49:37 +0200 |
commit | bc946633e0bcae5fe63528ad743bcc67de7e347d (patch) | |
tree | 7a3d127148c13d84e92f38c319fb5aad1e88a6cb /src/operator-expunge.cc | |
parent | 3ea7edf8c9bf7583c426178d4aaff4fb5b736bd2 (diff) |
created a Parser class
Diffstat (limited to 'src/operator-expunge.cc')
-rw-r--r-- | src/operator-expunge.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/operator-expunge.cc b/src/operator-expunge.cc index 0a70c2f..21e71e4 100644 --- a/src/operator-expunge.cc +++ b/src/operator-expunge.cc @@ -44,14 +44,14 @@ Operator::ProcessResult ExpungeOperator::process(Depot &depot, Request &command) return Operator::ProcessResult::OK; } -Parser::ParseResult ExpungeOperator::parse(Request &c_in) +Parser::ParseResult ExpungeOperator::parse(Request &c_in, Parser &p) { Session &session = Session::getInstance(); if (c_in.getUidMode()) return Parser::ParseResult::REJECT; Parser::ParseResult res; - if ((res = expectCRLF()) != Parser::ParseResult::ACCEPT) { + if ((res = p.expectCRLF()) != Parser::ParseResult::ACCEPT) { session.setLastError("Expected CRLF"); return res; } |