50 |
#define FLAG_BLANKPASS 0x08 |
#define FLAG_BLANKPASS 0x08 |
51 |
#define FLAG_SIGUSR1 0x10 |
#define FLAG_SIGUSR1 0x10 |
52 |
|
|
53 |
|
/* IMAP protocol supported by the server. */ |
54 |
|
#define PROTOCOL_NONE 0x00 |
55 |
|
#define PROTOCOL_IMAP4REV1 0x01 |
56 |
|
#define PROTOCOL_IMAP4 0x02 |
57 |
|
|
58 |
/* Capabilities of mail server. */ |
/* Capabilities of mail server. */ |
59 |
#define CAPS_NONE 0x00 |
#define CAPABILITY_NONE 0x00 |
60 |
#define CAPS_NAMESPACE 0x01 |
#define CAPABILITY_NAMESPACE 0x01 |
61 |
#define CAPS_CRAMMD5 0x02 |
#define CAPABILITY_CRAMMD5 0x02 |
62 |
#define CAPS_STARTTLS 0x04 |
#define CAPABILITY_STARTTLS 0x04 |
63 |
|
|
64 |
/* Flags for logger. */ |
/* Flags for logger. */ |
65 |
#define LOG_PREAMBLE 0 |
#define LOG_PREAMBLE 0 |
132 |
#ifdef SSL_TLS |
#ifdef SSL_TLS |
133 |
SSL *ssl; /* SSL socket. */ |
SSL *ssl; /* SSL socket. */ |
134 |
#endif |
#endif |
135 |
|
unsigned int prot; /* IMAP protocol. Currently IMAP4rev1 and |
136 |
|
* IMAP4 are supported. */ |
137 |
unsigned int caps; /* Capabilities of the mail server. */ |
unsigned int caps; /* Capabilities of the mail server. */ |
138 |
struct { /* Namespace of the mail server's mailboxes. */ |
struct { /* Namespace of the mail server's mailboxes. */ |
139 |
char prefix[NAMESPACE_PREFIX_LEN]; /* Namespace prefix. */ |
char prefix[NAMESPACE_PREFIX_LEN]; /* Namespace prefix. */ |
179 |
int imap_login(connection_t * conn, char *user, char *pass); |
int imap_login(connection_t * conn, char *user, char *pass); |
180 |
/* int imap_list(connection_t *conn, char *refer, char *mbox); */ |
/* int imap_list(connection_t *conn, char *refer, char *mbox); */ |
181 |
int imap_subscribe(connection_t * conn, char *mbox); |
int imap_subscribe(connection_t * conn, char *mbox); |
182 |
/* int imap_examine(connection_t *conn, char *mbox); */ |
int imap_examine(connection_t * conn, char *mbox); |
183 |
int imap_select(connection_t * conn, char *mbox); |
int imap_select(connection_t * conn, char *mbox); |
184 |
int imap_status(connection_t * conn, char *mbox, char *items); |
int imap_status(connection_t * conn, char *mbox, char *items); |
185 |
int imap_create(connection_t * conn, char *mbox); |
int imap_create(connection_t * conn, char *mbox); |
268 |
int response_authenticate(connection_t * conn, unsigned int tag, unsigned char **cont); |
int response_authenticate(connection_t * conn, unsigned int tag, unsigned char **cont); |
269 |
int response_namespace(connection_t * conn, unsigned int tag); |
int response_namespace(connection_t * conn, unsigned int tag); |
270 |
int response_status(connection_t * conn, unsigned int tag, char *mbox); |
int response_status(connection_t * conn, unsigned int tag, char *mbox); |
271 |
|
int response_examine(connection_t * conn, unsigned int tag, char *mbox); |
272 |
int response_select(connection_t * conn, unsigned int tag); |
int response_select(connection_t * conn, unsigned int tag); |
273 |
int response_search(connection_t * conn, unsigned int tag, char **mesgs); |
int response_search(connection_t * conn, unsigned int tag, char **mesgs); |
274 |
int response_fetch(connection_t * conn, unsigned int tag, int reset, char *fetch); |
int response_fetch(connection_t * conn, unsigned int tag, int reset, char *fetch); |