diff options
Diffstat (limited to 'src/operator-select.cc')
-rw-r--r-- | src/operator-select.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/operator-select.cc b/src/operator-select.cc index 5d30bbd..51ce223 100644 --- a/src/operator-select.cc +++ b/src/operator-select.cc @@ -114,7 +114,7 @@ Operator::ProcessResult SelectOperator::process(Depot &depot, Request &command) return ProcessResult::OK; } -Parser::ParseResult SelectOperator::parse(Request &c_in) +Parser::ParseResult SelectOperator::parse(Request &c_in, Parser &p) { constexpr auto ACCEPT = Parser::ParseResult::ACCEPT; @@ -123,18 +123,18 @@ Parser::ParseResult SelectOperator::parse(Request &c_in) if (c_in.getUidMode()) return Parser::ParseResult::REJECT; Parser::ParseResult res; - if ((res = expectSPACE()) != ACCEPT) { + if ((res = p.expectSPACE()) != ACCEPT) { session.setLastError("Expected SPACE after" + c_in.getName()); return res; } string mailbox; - if ((res = expectMailbox(mailbox)) != ACCEPT) { + if ((res = p.expectMailbox(mailbox)) != ACCEPT) { session.setLastError("Expected mailbox after " + c_in.getName() + " SPACE"); return res; } - if ((res = expectCRLF()) != ACCEPT) { + if ((res = p.expectCRLF()) != ACCEPT) { session.setLastError("Expected CRLF after " + c_in.getName() + " SPACE mailbox"); return res; } |