1 |
/* Size of buffer that server's response and result messages are written to. */ |
2 |
#define RESPONSE_BUF 16384 |
3 |
#define RESULTS_BUF 512 |
4 |
|
5 |
/* |
6 |
* Size of buffers that holds the results of responses to IMAP client |
7 |
* requests. |
8 |
*/ |
9 |
#define STATUS_BUF 8 |
10 |
#define SEARCH_BUF 512 |
11 |
|
12 |
|
13 |
int init_connection(account_t * ca); |
14 |
int close_connection(void); |
15 |
int recv_response(char *buf); |
16 |
int clear_stream(void); |
17 |
int status_response(void); |
18 |
int search_response(char *res); |
19 |
int fetch_response(char *res); |
20 |
int expunge_response(void); |
21 |
void analyze_response(char *buf); |