summaryrefslogtreecommitdiff
path: root/src/operator-unsubscribe.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/operator-unsubscribe.cc')
-rw-r--r--src/operator-unsubscribe.cc30
1 files changed, 12 insertions, 18 deletions
diff --git a/src/operator-unsubscribe.cc b/src/operator-unsubscribe.cc
index 7ef2bf4..ae900a8 100644
--- a/src/operator-unsubscribe.cc
+++ b/src/operator-unsubscribe.cc
@@ -4,30 +4,26 @@
* @author Andreas Aardal Hanssen
* @date 2002-2005
* ----------------------------------------------------------------- **/
-#include <string>
-#include <vector>
-#include <iostream>
#include "convert.h"
-#include <sys/stat.h>
-
-#include "recursivedescent.h"
-
-#include "session.h"
#include "depot.h"
#include "operators.h"
+#include "recursivedescent.h"
+#include "session.h"
+
+#include <iostream>
+#include <string>
+#include <vector>
+
+#include <sys/stat.h>
using namespace ::std;
using namespace Binc;
//----------------------------------------------------------------------
-UnsubscribeOperator::UnsubscribeOperator(void)
-{
-}
+UnsubscribeOperator::UnsubscribeOperator(void) {}
//----------------------------------------------------------------------
-UnsubscribeOperator::~UnsubscribeOperator(void)
-{
-}
+UnsubscribeOperator::~UnsubscribeOperator(void) {}
//----------------------------------------------------------------------
const string UnsubscribeOperator::getName(void) const
@@ -42,8 +38,7 @@ int UnsubscribeOperator::getState(void) const
}
//------------------------------------------------------------------------
-Operator::ProcessResult UnsubscribeOperator::process(Depot &depot,
- Request &command)
+Operator::ProcessResult UnsubscribeOperator::process(Depot &depot, Request &command)
{
const string &mailbox = command.getMailbox();
const string &canonmailbox = toCanonMailbox(mailbox);
@@ -65,8 +60,7 @@ Operator::ParseResult UnsubscribeOperator::parse(Request &c_in) const
{
Session &session = Session::getInstance();
- if (c_in.getUidMode())
- return REJECT;
+ if (c_in.getUidMode()) return REJECT;
Operator::ParseResult res;
if ((res = expectSPACE()) != ACCEPT) {