1 |
/* Size of buffer that holds the IMAP command to be sent. */ |
2 |
#define SMALL_COMMAND_MAX 64 |
3 |
#define MEDIUM_COMMAND_MAX 256 |
4 |
#define BIG_COMMAND_MAX 8192 |
5 |
|
6 |
/* Number of messages that match the filters and are to be deleted. */ |
7 |
#define MESSAGES_MAX 128 |
8 |
|
9 |
/* Size of buffer that holds the DATE, FROM and SUBJECT headers of the |
10 |
message to be deleted. */ |
11 |
#define HEADERS_MAX 1024 |
12 |
|
13 |
int send_command(char *command); |
14 |
int send_command_get_response(char *command); |
15 |
#ifdef DEBUG |
16 |
int imap_noop(void); |
17 |
#endif |
18 |
int imap_logout(void); |
19 |
int imap_login(void); |
20 |
int imap_select(void); |
21 |
int imap_search(void); |
22 |
int imap_fetch(unsigned int m, char *results); |
23 |
int imap_store(unsigned int m); |
24 |
int imap_expunge(void); |
25 |
void generate_search_filters(char *command); |
26 |
void delete_messages(char *unwanted); |