61 |
#define MEDIUM_CMD 512 |
#define MEDIUM_CMD 512 |
62 |
#define BIG_CMD 32768 |
#define BIG_CMD 32768 |
63 |
|
|
64 |
|
/* Store IMAP command type may replace,add or remove flags. */ |
65 |
|
#define STORE_FLAG_REPLACE 1 |
66 |
|
#define STORE_FLAG_ADD 2 |
67 |
|
#define STORE_FLAG_REMOVE 3 |
68 |
|
|
69 |
/* Buffer size of server's response. */ |
/* Buffer size of server's response. */ |
70 |
#define RESPONSE_BUF (4096 + 1) |
#define RESPONSE_BUF (4096 + 1) |
71 |
#define RESULT_BUF 512 |
#define RESULT_BUF 512 |
90 |
#define ENCRYPTION_BUF 1024 |
#define ENCRYPTION_BUF 1024 |
91 |
#define DECRYPTION_BUF 4096 |
#define DECRYPTION_BUF 4096 |
92 |
|
|
93 |
|
/* Buffer to save flags of the store IMAP command. */ |
94 |
|
#define STORE_FLAGS_BUF 64 |
95 |
|
|
96 |
/* Maximum passwords the password editor can handle. */ |
/* Maximum passwords the password editor can handle. */ |
97 |
#define EDITOR_PASSWORDS_MAX 64 |
#define EDITOR_PASSWORDS_MAX 64 |
98 |
|
|
154 |
int imap_create(int *sock, char *mbox); |
int imap_create(int *sock, char *mbox); |
155 |
int imap_search(int *sock, char *search); |
int imap_search(int *sock, char *search); |
156 |
int imap_fetch(int *sock, char *mesg, char *items); |
int imap_fetch(int *sock, char *mesg, char *items); |
157 |
int imap_store(int *sock, char *mesg, char *flags); |
int imap_store(int *sock, char *mesg, unsigned int mode, char *flags); |
158 |
int imap_copy(int *sock, char *mesg, char *mbox); |
int imap_copy(int *sock, char *mesg, char *mbox); |
159 |
int imap_append(int *sock, char *mbox, unsigned int size); |
int imap_append(int *sock, char *mbox, unsigned int size); |
160 |
int imap_close(int *sock); |
int imap_close(int *sock); |
235 |
unsigned int masklen); |
unsigned int masklen); |
236 |
|
|
237 |
int apply_action(char *mesgs, unsigned int *type, account_t * raccount, |
int apply_action(char *mesgs, unsigned int *type, account_t * raccount, |
238 |
char *destmbox, char *args); |
char *destmbox, unsigned int *msgflags, char *args); |
239 |
int action_delete(char *mesgs, char *args); |
int action_delete(char *mesgs, char *args); |
240 |
int action_copy(char *mesgs, char *destmbox, char *args); |
int action_copy(char *mesgs, char *destmbox, char *args); |
241 |
int action_move(char *mesgs, char *destmbox, char *args); |
int action_move(char *mesgs, char *destmbox, char *args); |
242 |
int action_rcopy(char *mesgs, account_t * destacc, char *destmbox, char *args); |
int action_rcopy(char *mesgs, account_t * destacc, char *destmbox, char *args); |
243 |
int action_rmove(char *mesgs, account_t * destacc, char *destmbox, char *args); |
int action_rmove(char *mesgs, account_t * destacc, char *destmbox, char *args); |
244 |
|
int action_flag(char *mesgs, unsigned int *type, unsigned int *msgflags, char *args); |
245 |
int action_list(char *mesgs, char *args); |
int action_list(char *mesgs, char *args); |
246 |
|
|
247 |
unsigned int count_messages(char *mesgs); |
unsigned int count_messages(char *mesgs); |