# HG changeset patch
# User Damien Riegel <[email protected]>
# Date 1462471894 14400
#      Thu May 05 14:11:34 2016 -0400
# Node ID 88576ba91bdf9ee164eeba9c68df8566b4095126
# Parent  ec148d0265d3b6125395cea93b5a1cc0c3bb7fa0
add a stub mbox_close_mailbox function

This function does nothing, the main purpose is to introduce a mx_ops
structure for mbox, so its usage is similar to mh/imap/pop. We reuse the
name that was made available by the previous commmit.

diff -r ec148d0265d3 -r 88576ba91bdf mbox.c
--- a/mbox.c    Wed May 04 17:36:23 2016 -0400
+++ b/mbox.c    Thu May 05 14:11:34 2016 -0400
@@ -411,6 +411,15 @@
 
 #undef PREV
 
+static int mbox_close_mailbox (CONTEXT *ctx)
+{
+  return 0;
+}
+
+struct mx_ops mx_mbox_ops = {
+  .close = mbox_close_mailbox,
+};
+
 /* open a mbox or mmdf style mailbox */
 int mbox_open_mailbox (CONTEXT *ctx)
 {
@@ -435,6 +444,8 @@
   else
     rc = -1;
 
+  ctx->mx_ops = &mx_mbox_ops;
+
   mbox_unlock_mailbox (ctx);
   mutt_unblock_signals ();
   return (rc);

Reply via email to