]> granicus.if.org Git - neomutt/commitdiff
mbox: refactor for clarity
authorRichard Russon <rich@flatcap.org>
Sun, 18 Nov 2018 16:59:08 +0000 (16:59 +0000)
committerRichard Russon <rich@flatcap.org>
Sun, 18 Nov 2018 17:35:07 +0000 (17:35 +0000)
mbox/mbox.c

index d3a33f15d3969f7089ddd3b85b46048e17699c54..28cade859603fea5b67a81760da751591b10e7d3 100644 (file)
@@ -645,8 +645,10 @@ static int reopen_mailbox(struct Context *ctx, int *index_hint)
       adata->fp = mutt_file_fopen(m->path, "r");
       if (!adata->fp)
         rc = -1;
+      else if (m->magic == MUTT_MBOX)
+        rc = mbox_parse_mailbox(ctx);
       else
-        rc = ((m->magic == MUTT_MBOX) ? mbox_parse_mailbox : mmdf_parse_mailbox)(ctx);
+        rc = mmdf_parse_mailbox(ctx);
       break;
 
     default: