summaryrefslogtreecommitdiffstats
path: root/pop.c
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 /pop.c
parent7bfeb9fdd4ac3040c48b2ee334fbc3cd3c0060e7 (diff)
Add function pointer for close hook in Context.
Slowly inch towards function pointers instead of switch statements.
Diffstat (limited to 'pop.c')
-rw-r--r--pop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pop.c b/pop.c
index ba2841f1..f84ec80c 100644
--- a/pop.c
+++ b/pop.c
@@ -372,6 +372,7 @@ int pop_open_mailbox (CONTEXT *ctx)
pop_data = safe_calloc (1, sizeof (POP_DATA));
pop_data->conn = conn;
ctx->data = pop_data;
+ ctx->mx_close = pop_close_mailbox;
if (pop_open_connection (pop_data) < 0)
return -1;