summaryrefslogtreecommitdiff
path: root/src/operator-rename.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/operator-rename.cc')
-rw-r--r--src/operator-rename.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/operator-rename.cc b/src/operator-rename.cc
index b8298f8..7789b32 100644
--- a/src/operator-rename.cc
+++ b/src/operator-rename.cc
@@ -62,7 +62,7 @@ Operator::ProcessResult RenameOperator::process(Depot &depot, Request &command)
return Operator::ProcessResult::NO;
}
-Parser::ParseResult RenameOperator::parse(Request &c_in)
+Parser::ParseResult RenameOperator::parse(Request &c_in, Parser &p)
{
constexpr auto ACCEPT = Parser::ParseResult::ACCEPT;
@@ -71,30 +71,30 @@ Parser::ParseResult RenameOperator::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 RENAME");
return res;
}
string mailbox;
- if ((res = expectMailbox(mailbox)) != ACCEPT) {
+ if ((res = p.expectMailbox(mailbox)) != ACCEPT) {
session.setLastError("Expected mailbox after RENAME SPACE");
return res;
}
- if ((res = expectSPACE()) != ACCEPT) {
+ if ((res = p.expectSPACE()) != ACCEPT) {
session.setLastError("Expected SPACE after RENAME SPACE mailbox");
return res;
}
string newmailbox;
- if ((res = expectMailbox(newmailbox)) != ACCEPT) {
+ if ((res = p.expectMailbox(newmailbox)) != ACCEPT) {
session.setLastError("Expected mailbox after RENAME SPACE"
" mailbox SPACE");
return res;
}
- if ((res = expectCRLF()) != ACCEPT) {
+ if ((res = p.expectCRLF()) != ACCEPT) {
session.setLastError("Expected CRLF after RENAME SPACE"
" mailbox SPACE mailbox");
return res;