8 |
|
#define _IMAPHandler_h_ |
9 |
|
|
10 |
|
#include <iostream> |
11 |
+ |
#include <sstream> |
12 |
|
#include <string> |
13 |
|
#include <cstdlib> |
14 |
|
#include <cstdio> |
77 |
|
string noop() { return imap("NOOP"); } |
78 |
|
string logout() { return imap("LOGOUT"); } |
79 |
|
string login(const string& args) { return imap("LOGIN", args); } |
80 |
< |
string select(const string& args) { return imap("select", args); } |
81 |
< |
string examine(const string& args) { return imap("examine", args); } |
82 |
< |
string create(const string& args) { return imap("create", args); } |
83 |
< |
string delete_(const string& args) { return imap("delete", args); } |
84 |
< |
string rename(const string& args) { return imap("rename", args); } |
85 |
< |
string subscribe(const string& args) { return imap("subscribe", args); } |
86 |
< |
string unsubscribe(const string& args) { return imap("unsubscribe", args); } |
87 |
< |
string list(const string& args) { return imap("list", args); } |
88 |
< |
string lsub(const string& args) { return imap("lsub", args); } |
89 |
< |
string status_(const string& args) { return imap("status", args); } |
80 |
> |
string select(const string& args) { return imap("SELECT", args); } |
81 |
> |
string examine(const string& args) { return imap("EXAMINE", args); } |
82 |
> |
string create(const string& args) { return imap("CREATE", args); } |
83 |
> |
string delete_(const string& args) { return imap("DELETE", args); } |
84 |
> |
string rename(const string& args) { return imap("RENAME", args); } |
85 |
> |
string subscribe(const string& args) { return imap("SUBSCRIBE", args); } |
86 |
> |
string unsubscribe(const string& args) { return imap("UNSUBSCRIBE", args); } |
87 |
> |
string list(const string& args) { return imap("LIST", args); } |
88 |
> |
string lsub(const string& args) { return imap("LSUB", args); } |
89 |
> |
string status_(const string& args) { return imap("STATUS", args); } |
90 |
|
string append(const string& args, const string& message) |
91 |
|
{ |
92 |
< |
return imap("append", args, message); |
92 |
> |
return imap("APPEND", args, message); |
93 |
|
} |
94 |
< |
string check() { return imap("check"); } |
95 |
< |
string close() { return imap("close"); } |
96 |
< |
string expunge() { return imap("expunge"); } |
97 |
< |
string search(const string& args) { return imap("search", args); } |
98 |
< |
string fetch(const string& args) { return imap("fetch", args); } |
99 |
< |
string store(const string& args) { return imap("store", args); } |
100 |
< |
string copy(const string& args) { return imap("copy", args); } |
101 |
< |
string uid(const string& args) { return imap("uid", args); } |
94 |
> |
string check() { return imap("CHECK"); } |
95 |
> |
string close() { return imap("CLOSE"); } |
96 |
> |
string expunge() { return imap("EXPUNGE"); } |
97 |
> |
string search(const string& args) { return imap("SEARCH", args); } |
98 |
> |
string fetch(const string& args) { return imap("FETCH", args); } |
99 |
> |
string store(const string& args) { return imap("STORE", args); } |
100 |
> |
string copy(const string& args) { return imap("COPY", args); } |
101 |
> |
string uid(const string& args) { return imap("UID", args); } |
102 |
|
bool successful() { return success; } |
103 |
|
}; |
104 |
|
|