summaryrefslogtreecommitdiff
path: root/src/operator-lsub.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/operator-lsub.cc')
-rw-r--r--src/operator-lsub.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/operator-lsub.cc b/src/operator-lsub.cc
index c4d1908..242be9f 100644
--- a/src/operator-lsub.cc
+++ b/src/operator-lsub.cc
@@ -182,7 +182,7 @@ Operator::ProcessResult LsubOperator::process(Depot &depot, Request &command)
return Operator::ProcessResult::OK;
}
-Parser::ParseResult LsubOperator::parse(Request &c_in)
+Parser::ParseResult LsubOperator::parse(Request &c_in, Parser &p)
{
constexpr auto ACCEPT = Parser::ParseResult::ACCEPT;
constexpr auto ERROR = Parser::ParseResult::ERROR;
@@ -193,32 +193,32 @@ Parser::ParseResult LsubOperator::parse(Request &c_in)
if (c_in.getUidMode()) return REJECT;
Parser::ParseResult res;
- if ((res = expectSPACE()) != ACCEPT) {
+ if ((res = p.expectSPACE()) != ACCEPT) {
session.setLastError("Expected SPACE after LSUB");
return ERROR;
}
string mailbox;
- if ((res = expectMailbox(mailbox)) != ACCEPT) {
+ if ((res = p.expectMailbox(mailbox)) != ACCEPT) {
session.setLastError("Expected mailbox after LSUB SPACE");
return ERROR;
}
c_in.setMailbox(mailbox);
- if ((res = expectSPACE()) != ACCEPT) {
+ if ((res = p.expectSPACE()) != ACCEPT) {
session.setLastError("Expected SPACE after LSUB SPACE mailbox");
return ERROR;
}
string listmailbox;
- if ((res = expectListMailbox(listmailbox)) != ACCEPT) {
+ if ((res = p.expectListMailbox(listmailbox)) != ACCEPT) {
session.setLastError("Expected list_mailbox after LSUB SPACE"
" mailbox SPACE");
return ERROR;
}
- if ((res = expectCRLF()) != ACCEPT) {
+ if ((res = p.expectCRLF()) != ACCEPT) {
session.setLastError("Expected CRLF after LSUB SPACE"
" mailbox SPACE list_mailbox");
return ERROR;