int port;
char *user;
char *pass;
- } imap_server_conf_t;
+ int use_ssl;
+ int ssl_verify;
+ int use_html;
+ char *auth_method;
+ };
+
+ static struct imap_server_conf server = {
+ NULL, /* name */
+ NULL, /* tunnel */
+ NULL, /* host */
+ 0, /* port */
+ NULL, /* user */
+ NULL, /* pass */
+ 0, /* use_ssl */
+ 1, /* ssl_verify */
+ 0, /* use_html */
+ NULL, /* auth_method */
+ };
- typedef struct imap_store_conf {
- store_conf_t gen;
- imap_server_conf_t *server;
- } imap_store_conf_t;
+ struct imap_store_conf {
+ struct store_conf gen;
+ struct imap_server_conf *server;
- unsigned use_namespace:1;
+ };
- #define NIL (void*)0x1
- #define LIST (void*)0x2
+ #define NIL (void *)0x1
+ #define LIST (void *)0x2
- typedef struct _list {
- struct _list *next, *child;
+ struct imap_list {
+ struct imap_list *next, *child;
char *val;
int len;
- } list_t;
+ };
- typedef struct {
- int fd;
- } Socket_t;
+ struct imap_socket {
+ int fd[2];
+ SSL *ssl;
+ };
- typedef struct {
- Socket_t sock;
+ struct imap_buffer {
+ struct imap_socket sock;
int bytes;
int offset;
char buf[1024];