if (!ctx->quiet)
mutt_message (_("Reading %s..."), ctx->path);
- if ((rc = mx_get_idx (ctx->path)) >= 0)
- rc = MX_COMMAND(rc,mx_open_mailbox)(ctx);
+ rc = MX_COMMAND(ctx->magic-1,mx_open_mailbox)(ctx);
if (rc == 0) {
if ((flags & M_NOSORT) == 0) {
return (-1);
}
+int mx_acl_check (CONTEXT* ctx, int flag) {
+ if (!ctx || ctx->magic <= 0 || ctx->magic >= MailboxFormats->length)
+ return (0);
+ /* if no acl_check defined for module, assume permission is granted */
+ if (!MX_COMMAND(ctx->magic-1,mx_acl_check))
+ return (1);
+ return (MX_COMMAND(ctx->magic-1,mx_acl_check)(ctx,flag));
+}
+
void mx_init (void) {
#ifdef DEBUG
int i = 0;