summaryrefslogtreecommitdiffstats
path: root/imap
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2007-03-30 19:22:55 -0700
committerBrendan Cully <brendan@kublai.com>2007-03-30 19:22:55 -0700
commita0777a629dcff241bbb05788fab76bbf3d01a253 (patch)
tree09cb442ad33fe0be9ac6903fb1be077a1674a552 /imap
parent7bfeb9fdd4ac3040c48b2ee334fbc3cd3c0060e7 (diff)
Add function pointer for close hook in Context.
Slowly inch towards function pointers instead of switch statements.
Diffstat (limited to 'imap')
-rw-r--r--imap/imap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/imap/imap.c b/imap/imap.c
index 87b5eb4a..a4ad726a 100644
--- a/imap/imap.c
+++ b/imap/imap.c
@@ -569,6 +569,7 @@ 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));