summaryrefslogtreecommitdiffstats
path: root/libmail/smapsearch.H
diff options
context:
space:
mode:
Diffstat (limited to 'libmail/smapsearch.H')
-rw-r--r--libmail/smapsearch.H45
1 files changed, 45 insertions, 0 deletions
diff --git a/libmail/smapsearch.H b/libmail/smapsearch.H
new file mode 100644
index 0000000..b0db84e
--- /dev/null
+++ b/libmail/smapsearch.H
@@ -0,0 +1,45 @@
+/*
+** Copyright 2003, Double Precision Inc.
+**
+** See COPYING for distribution information.
+*/
+#ifndef libmail_smapsearch_H
+#define libmail_smapsearch_H
+
+#include "libmail_config.h"
+#include "mail.H"
+#include "imap.H"
+#include "smap.H"
+#include "smapmsgrange.H"
+#include "search.H"
+
+#include <vector>
+
+LIBMAIL_START
+
+class smapSEARCH : public smapHandler {
+
+ const char *getName();
+
+ searchParams parameters;
+ searchCallback *callback;
+
+ std::vector<size_t> found;
+
+public:
+ smapSEARCH(const searchParams &parametersArg,
+ searchCallback &callbackArg,
+ mail::imap &imapAccount);
+
+ ~smapSEARCH();
+
+ void installed(imap &);
+ bool ok(std::string);
+ bool fail(std::string);
+
+ bool processLine(imap &imapAccount, std::vector<const char *> &words);
+};
+
+LIBMAIL_END
+
+#endif