13 |
#define ERROR_CONFIG_PARSE 3 |
#define ERROR_CONFIG_PARSE 3 |
14 |
#define ERROR_MEMORY_ALLOCATION 4 |
#define ERROR_MEMORY_ALLOCATION 4 |
15 |
#define ERROR_NETWORK 5 |
#define ERROR_NETWORK 5 |
16 |
#define ERROR_UNDEFINED 6 |
#define ERROR_SSL 6 |
17 |
|
#define ERROR_UNDEFINED 7 |
18 |
|
|
19 |
/* Flags that control the program's options. */ |
/* Flags that control the program's options. */ |
20 |
#define OPTION_DETAILS_QUIET 0x01 |
#define OPTION_DETAILS_QUIET 0x01 |
32 |
#define LOG_ACTION 5 |
#define LOG_ACTION 5 |
33 |
#define LOG_DESTINATION_MAILBOX 6 |
#define LOG_DESTINATION_MAILBOX 6 |
34 |
|
|
35 |
/* Buffer size of the the IMAP command. */ |
/* Buffer size of the IMAP command. */ |
36 |
#define SMALL_CMD 64 |
#define SMALL_CMD 64 |
37 |
#define MEDIUM_CMD 256 |
#define MEDIUM_CMD 256 |
38 |
#define BIG_CMD 8192 |
#define BIG_CMD 8192 |
60 |
#define plural(A) ((A) == 1 ? "" : "s") |
#define plural(A) ((A) == 1 ? "" : "s") |
61 |
|
|
62 |
|
|
63 |
/* connect.c */ |
/* socket.c */ |
64 |
|
#ifndef SSL_TLS |
65 |
int init_connection(char *serv, unsigned int port); |
int init_connection(char *serv, unsigned int port); |
66 |
|
#else |
67 |
|
int init_connection(char *serv, unsigned int port, unsigned int protocol); |
68 |
|
#endif |
69 |
|
int ssl_init(unsigned int protocol); |
70 |
int close_connection(void); |
int close_connection(void); |
71 |
|
int socket_read(char *buf); |
72 |
|
int socket_write(char *data); |
73 |
|
|
74 |
/* file.c */ |
/* file.c */ |
75 |
int read_config(char *cfg); |
int read_config(char *cfg); |