summaryrefslogtreecommitdiffstats
path: root/libmail/smapcopy.H
diff options
context:
space:
mode:
Diffstat (limited to 'libmail/smapcopy.H')
-rw-r--r--libmail/smapcopy.H46
1 files changed, 46 insertions, 0 deletions
diff --git a/libmail/smapcopy.H b/libmail/smapcopy.H
new file mode 100644
index 0000000..4d42c3d
--- /dev/null
+++ b/libmail/smapcopy.H
@@ -0,0 +1,46 @@
+/*
+** Copyright 2003, Double Precision Inc.
+**
+** See COPYING for distribution information.
+*/
+#ifndef libmail_smapcopy_H
+#define libmail_smapcopy_H
+
+#include "libmail_config.h"
+#include "mail.H"
+#include "imap.H"
+#include "smap.H"
+#include "smapmsgrange.H"
+
+LIBMAIL_START
+
+class smapCOPY : public smapHandler {
+
+ const char *getName();
+
+ smapUidSet uidSet;
+ smapMsgRange msgRange;
+
+ std::string path;
+
+ const char *cmd;
+
+public:
+ smapCOPY(const std::vector<size_t> &messages,
+ mail::folder *copyTo,
+ mail::imap &imapAccount,
+ mail::callback &callback,
+ const char *cmdArg);
+
+ ~smapCOPY();
+
+ void installed(imap &);
+ bool ok(std::string);
+
+ bool go();
+ bool processLine(imap &imapAccount, std::vector<const char *> &words);
+};
+
+LIBMAIL_END
+
+#endif