summaryrefslogtreecommitdiffstats
path: root/imap/imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'imap/imap.c')
-rw-r--r--imap/imap.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/imap/imap.c b/imap/imap.c
index 228b3b29..e9e84191 100644
--- a/imap/imap.c
+++ b/imap/imap.c
@@ -554,7 +554,7 @@ static char* imap_get_flags (LIST** hflags, char* s)
return s;
}
-int imap_open_mailbox (CONTEXT* ctx)
+static int imap_open_mailbox (CONTEXT* ctx)
{
IMAP_DATA *idata;
IMAP_STATUS* status;
@@ -578,7 +578,6 @@ int imap_open_mailbox (CONTEXT* ctx)
/* once again the context is new */
ctx->data = idata;
- ctx->mx_close = imap_close_mailbox;
/* Clean up path and replace the one in the ctx */
imap_fix_path (idata, mx.mbox, buf, sizeof (buf));
@@ -2038,3 +2037,8 @@ int imap_complete(char* dest, size_t dlen, char* path) {
return -1;
}
+
+struct mx_ops mx_imap_ops = {
+ .open = imap_open_mailbox,
+ .close = imap_close_mailbox,
+};