diff options
Diffstat (limited to 'src/operator-list.cc')
-rw-r--r-- | src/operator-list.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/operator-list.cc b/src/operator-list.cc index 519eb79..4fa3469 100644 --- a/src/operator-list.cc +++ b/src/operator-list.cc @@ -199,7 +199,7 @@ Operator::ProcessResult ListOperator::process(Depot &depot, Request &command) return Operator::ProcessResult::OK; } -Parser::ParseResult ListOperator::parse(Request &c_in) +Parser::ParseResult ListOperator::parse(Request &c_in, Parser &p) { constexpr auto ACCEPT = Parser::ParseResult::ACCEPT; @@ -208,32 +208,32 @@ Parser::ParseResult ListOperator::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 LIST"); return res; } string mailbox; - if ((res = expectMailbox(mailbox)) != ACCEPT) { + if ((res = p.expectMailbox(mailbox)) != ACCEPT) { session.setLastError("Expected mailbox after LIST SPACE"); return res; } c_in.setMailbox(mailbox); - if ((res = expectSPACE()) != ACCEPT) { + if ((res = p.expectSPACE()) != ACCEPT) { session.setLastError("Expected SPACE after LIST SPACE mailbox"); return res; } string listmailbox; - if ((res = expectListMailbox(listmailbox)) != ACCEPT) { + if ((res = p.expectListMailbox(listmailbox)) != ACCEPT) { session.setLastError("Expected list_mailbox after LIST SPACE" " mailbox SPACE"); return res; } - if ((res = expectCRLF()) != ACCEPT) { + if ((res = p.expectCRLF()) != ACCEPT) { session.setLastError("Expected CRLF after LIST SPACE mailbox" " SPACE list_mailbox"); return res; |