summaryrefslogtreecommitdiffstats
path: root/mbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbox.c')
-rw-r--r--mbox.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/mbox.c b/mbox.c
index 83c9cd87..b7dda144 100644
--- a/mbox.c
+++ b/mbox.c
@@ -412,7 +412,7 @@ int mbox_parse_mailbox (CONTEXT *ctx)
#undef PREV
/* open a mbox or mmdf style mailbox */
-int mbox_open_mailbox (CONTEXT *ctx)
+static int mbox_open_mailbox (CONTEXT *ctx)
{
int rc;
@@ -440,6 +440,11 @@ int mbox_open_mailbox (CONTEXT *ctx)
return (rc);
}
+static int mbox_close_mailbox (CONTEXT *ctx)
+{
+ return 0;
+}
+
/* return 1 if address lists are strictly identical */
static int strict_addrcmp (const ADDRESS *a, const ADDRESS *b)
{
@@ -1257,3 +1262,13 @@ int mbox_check_empty (const char *path)
return ((st.st_size == 0));
}
+
+struct mx_ops mx_mbox_ops = {
+ .open = mbox_open_mailbox,
+ .close = mbox_close_mailbox,
+};
+
+struct mx_ops mx_mmdf_ops = {
+ .open = mbox_open_mailbox,
+ .close = mbox_close_mailbox,
+};