29#include <sptk5/FieldList.h>
30#include <sptk5/Strings.h>
31#include <sptk5/net/TCPSocket.h>
81 command(
"capability");
125 command(
"examine", mail_box);
134 command(
"subscribe", mail_box);
143 command(
"unsubscribe", mail_box);
152 command(
"create", mail_box);
161 command(
"delete", mail_box);
171 command(
"rename ", mail_box, new_name);
283 static const String empty_quotes;
Definition: FieldList.h:50
Definition: ImapConnect.h:50
void parseMessage(FieldList &result, bool headersOnly)
void command(const String &cmd, const String &arg1="", const String &arg2="")
void cmd_fetch_message(int32_t msg_id, FieldList &result)
void cmd_subscribe(const String &mail_box)
Definition: ImapConnect.h:132
bool getResponse(const String &ident)
void cmd_capability()
Definition: ImapConnect.h:79
void cmd_list(const String &mail_box_mask, bool decode=false)
void cmd_delete(const String &mail_box)
Definition: ImapConnect.h:159
void cmd_expunge()
Definition: ImapConnect.h:201
void parseSearch(String &result) const
void cmd_login(const String &user, const String &password)
void cmd_rename(const String &mail_box, const String &new_name)
Definition: ImapConnect.h:169
void cmd_fetch_headers(int32_t msg_id, FieldList &result)
String sendCommand(const String &cmd)
void cmd_examine(const String &mail_box)
Definition: ImapConnect.h:123
void cmd_search_all(String &result)
void cmd_noop()
Definition: ImapConnect.h:87
void cmd_select(const String &mail_box, int32_t &total_msgs)
void cmd_close()
Definition: ImapConnect.h:193
void cmd_search_new(String &result)
const Strings & response() const
Definition: ImapConnect.h:69
String cmd_fetch_flags(int32_t msg_id)
void cmd_unsubscribe(const String &mail_box)
Definition: ImapConnect.h:141
void cmd_append(const String &mail_box, const Buffer &message)
void cmd_logout()
Definition: ImapConnect.h:95
void cmd_create(const String &mail_box)
Definition: ImapConnect.h:150
void cmd_store_flags(int32_t msg_id, const char *flags)
Definition: TCPSocket.h:165