diff options
Diffstat (limited to 'src/operator-delete.cc')
-rw-r--r-- | src/operator-delete.cc | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/src/operator-delete.cc b/src/operator-delete.cc index 0365927..350e572 100644 --- a/src/operator-delete.cc +++ b/src/operator-delete.cc @@ -2,30 +2,26 @@ * @file operator-delete.cc * @briefe Implementation of the DELETE command. * @author Andreas Aardal Hanssen - * @date 2002-2005 + * @date 2002-2005 * ----------------------------------------------------------------- **/ -#include <string> - +#include "convert.h" #include "depot.h" +#include "imapparser.h" #include "mailbox.h" #include "operators.h" -#include "imapparser.h" #include "recursivedescent.h" #include "session.h" -#include "convert.h" + +#include <string> using namespace ::std; using namespace Binc; //---------------------------------------------------------------------- -DeleteOperator::DeleteOperator(void) -{ -} +DeleteOperator::DeleteOperator(void) {} //---------------------------------------------------------------------- -DeleteOperator::~DeleteOperator(void) -{ -} +DeleteOperator::~DeleteOperator(void) {} //---------------------------------------------------------------------- const string DeleteOperator::getName(void) const @@ -40,8 +36,7 @@ int DeleteOperator::getState(void) const } //------------------------------------------------------------------------ -Operator::ProcessResult DeleteOperator::process(Depot &depot, - Request &command) +Operator::ProcessResult DeleteOperator::process(Depot &depot, Request &command) { if (depot.deleteMailbox(command.getMailbox())) return OK; @@ -75,9 +70,9 @@ Operator::ParseResult DeleteOperator::parse(Request &c_in) const session.setLastError("Expected CRLF after DELETE SPACE mailbox"); return res; } - + session.mailboxchanges = true; - + c_in.setName("DELETE"); c_in.setMailbox(mailbox); return ACCEPT; |