1 |
lefcha |
1.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 |
lefcha |
1.2 |
/* |
10 |
|
|
* Size of buffer that holds the DATE, FROM and SUBJECT headers of the |
11 |
|
|
* message to be deleted. |
12 |
|
|
*/ |
13 |
lefcha |
1.1 |
#define HEADERS_MAX 1024 |
14 |
|
|
|
15 |
lefcha |
1.3 |
#define custom_header(A) ((A) ? "HEADER " : "") |
16 |
|
|
|
17 |
|
|
|
18 |
lefcha |
1.1 |
int send_command(char *command); |
19 |
|
|
int send_command_get_response(char *command); |
20 |
|
|
#ifdef DEBUG |
21 |
|
|
int imap_noop(void); |
22 |
|
|
#endif |
23 |
|
|
int imap_logout(void); |
24 |
|
|
int imap_login(void); |
25 |
|
|
int imap_select(void); |
26 |
lefcha |
1.3 |
int imap_search(char *results); |
27 |
lefcha |
1.1 |
int imap_fetch(unsigned int m, char *results); |
28 |
|
|
int imap_store(unsigned int m); |
29 |
|
|
int imap_expunge(void); |
30 |
|
|
void generate_search_filters(char *command); |
31 |
lefcha |
1.3 |
void generate_search_limits(char *command); |
32 |
|
|
void deny_filters(char *command); |
33 |
|
|
void allow_filters(char *command, char *key); |
34 |
lefcha |
1.1 |
void delete_messages(char *unwanted); |