int imap_open_mailbox (CONTEXT* ctx)
{
- CONNECTION *conn;
IMAP_DATA *idata;
IMAP_STATUS* status;
char buf[LONG_STRING];
if (idata->state < IMAP_AUTHENTICATED)
goto fail;
- conn = idata->conn;
-
/* once again the context is new */
ctx->data = idata;
ctx->mx_close = imap_close_mailbox;
int imap_open_mailbox_append (CONTEXT *ctx)
{
- CONNECTION *conn;
IMAP_DATA *idata;
char buf[LONG_STRING];
char mailbox[LONG_STRING];
return -1;
}
- conn = idata->conn;
-
ctx->magic = M_IMAP;
ctx->data = idata;
int imap_subscribe (char *path, int subscribe)
{
- CONNECTION *conn;
IMAP_DATA *idata;
char buf[LONG_STRING];
char mbox[LONG_STRING];
if (!(idata = imap_conn_find (&(mx.account), 0)))
goto fail;
- conn = idata->conn;
-
imap_fix_path (idata, mx.mbox, buf, sizeof (buf));
if (!*buf)
strfcpy (buf, "INBOX", sizeof (buf));
/* imap_complete: given a partial IMAP folder path, return a string which
* adds as much to the path as is unique */
int imap_complete(char* dest, size_t dlen, char* path) {
- CONNECTION* conn;
IMAP_DATA* idata;
char list[LONG_STRING];
char buf[LONG_STRING];
strfcpy (dest, path, dlen);
return imap_complete_hosts (dest, dlen);
}
- conn = idata->conn;
/* reformat path for IMAP list, and append wildcard */
/* don't use INBOX in place of "" */