summaryrefslogtreecommitdiff
path: root/src/operator-subscribe.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/operator-subscribe.cc')
-rw-r--r--src/operator-subscribe.cc28
1 files changed, 11 insertions, 17 deletions
diff --git a/src/operator-subscribe.cc b/src/operator-subscribe.cc
index a4e77df..7626844 100644
--- a/src/operator-subscribe.cc
+++ b/src/operator-subscribe.cc
@@ -4,29 +4,25 @@
* @author Andreas Aardal Hanssen
* @date 2002-2005
* ----------------------------------------------------------------- **/
-#include <string>
-#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 <sys/stat.h>
using namespace ::std;
using namespace Binc;
//----------------------------------------------------------------------
-SubscribeOperator::SubscribeOperator(void)
-{
-}
+SubscribeOperator::SubscribeOperator(void) {}
//----------------------------------------------------------------------
-SubscribeOperator::~SubscribeOperator(void)
-{
-}
+SubscribeOperator::~SubscribeOperator(void) {}
//----------------------------------------------------------------------
const string SubscribeOperator::getName(void) const
@@ -41,8 +37,7 @@ int SubscribeOperator::getState(void) const
}
//------------------------------------------------------------------------
-Operator::ProcessResult SubscribeOperator::process(Depot &depot,
- Request &command)
+Operator::ProcessResult SubscribeOperator::process(Depot &depot, Request &command)
{
const string &srcmailbox = command.getMailbox();
const string &canonmailbox = toCanonMailbox(srcmailbox);
@@ -59,8 +54,7 @@ Operator::ParseResult SubscribeOperator::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) {