summaryrefslogtreecommitdiff
path: root/src/operator-noop-pending.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/operator-noop-pending.cc')
-rw-r--r--src/operator-noop-pending.cc44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/operator-noop-pending.cc b/src/operator-noop-pending.cc
new file mode 100644
index 0000000..f98405e
--- /dev/null
+++ b/src/operator-noop-pending.cc
@@ -0,0 +1,44 @@
+/** --------------------------------------------------------------------
+ * @file operator-noop-pending.cc
+ * @brief Operator for the NOOP command, with pending extension
+ * @author Andreas Aardal Hanssen
+ * @date 2002-2005
+ * ----------------------------------------------------------------- **/
+#include <string>
+#include <iostream>
+
+#include "mailbox.h"
+#include "pendingupdates.h"
+
+#include "recursivedescent.h"
+#include "session.h"
+#include "depot.h"
+#include "operators.h"
+
+using namespace ::std;
+using namespace Binc;
+
+//----------------------------------------------------------------------
+NoopPendingOperator::NoopPendingOperator(void) : NoopOperator()
+{
+}
+
+//----------------------------------------------------------------------
+NoopPendingOperator::~NoopPendingOperator(void)
+{
+}
+
+//----------------------------------------------------------------------
+Operator::ProcessResult NoopPendingOperator::process(Depot &depot,
+ Request &command)
+{
+ Mailbox *mailbox = depot.getSelected();
+ if (mailbox) {
+ pendingUpdates(mailbox, PendingUpdates::EXPUNGE
+ | PendingUpdates::EXISTS
+ | PendingUpdates::RECENT
+ | PendingUpdates::FLAGS, true);
+ }
+
+ return OK;
+}