summaryrefslogtreecommitdiff
path: root/src/operator-create.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/operator-create.cc')
-rw-r--r--src/operator-create.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/operator-create.cc b/src/operator-create.cc
index 399e740..407db42 100644
--- a/src/operator-create.cc
+++ b/src/operator-create.cc
@@ -42,7 +42,7 @@ Operator::ProcessResult CreateOperator::process(Depot &depot, Request &command)
}
}
-Parser::ParseResult CreateOperator::parse(Request &c_in)
+Parser::ParseResult CreateOperator::parse(Request &c_in, Parser &p)
{
constexpr auto ACCEPT = Parser::ParseResult::ACCEPT;
Session &session = Session::getInstance();
@@ -50,18 +50,18 @@ Parser::ParseResult CreateOperator::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 CREATE");
return res;
}
std::string mailbox;
- if ((res = expectMailbox(mailbox)) != ACCEPT) {
+ if ((res = p.expectMailbox(mailbox)) != ACCEPT) {
session.setLastError("Expected mailbox after CREATE SPACE");
return res;
}
- if ((res = expectCRLF()) != ACCEPT) {
+ if ((res = p.expectCRLF()) != ACCEPT) {
session.setLastError("Expected CRLF after CREATE SPACE CRLF");
return res;
}