return rc;
}
-/* close a mailbox opened in write-mode */
-int mbox_close_mailbox (CONTEXT *ctx)
-{
- mx_unlock_file (ctx->path, fileno (ctx->fp), 1);
- mutt_unblock_signals ();
- mx_fastclose_mailbox (ctx);
- return 0;
-}
-
int mutt_reopen_mailbox (CONTEXT *ctx, int *index_hint)
{
int (*cmp_headers) (const HEADER *, const HEADER *) = NULL;
return 0;
}
+/* close a mailbox opened in write-mode */
+static int mx_close_mailbox_append (CONTEXT *ctx)
+{
+ mx_unlock_file (ctx->path, fileno (ctx->fp), 1);
+ mutt_unblock_signals ();
+ mx_fastclose_mailbox (ctx);
+ return 0;
+}
+
/*
* open a mailbox and parse it
*
{
/* mailbox was opened in write-mode */
if (ctx->magic == MUTT_MBOX || ctx->magic == MUTT_MMDF)
- mbox_close_mailbox (ctx);
+ mx_close_mailbox_append (ctx);
else
mx_fastclose_mailbox (ctx);
return 0;
int mbox_sync_mailbox (CONTEXT *, int *);
int mbox_open_mailbox (CONTEXT *);
int mbox_check_mailbox (CONTEXT *, int *);
-int mbox_close_mailbox (CONTEXT *);
int mbox_lock_mailbox (CONTEXT *, int, int);
int mbox_parse_mailbox (CONTEXT *);
int mmdf_parse_mailbox (CONTEXT *);