X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Futil.c;h=d2b60025eca2e24c792cb8f5406c212dd99d00c1;hb=adc81e1c9e43c57bf03f51f12b8d38a9aea5905d;hp=e6c101c7e771b4df6a7d68166899a3d1ac70741e;hpb=0f44dc85fc1280372ffab911d701e703d803fb4b;p=apps%2Fmadmutt.git diff --git a/imap/util.c b/imap/util.c index e6c101c..d2b6002 100644 --- a/imap/util.c +++ b/imap/util.c @@ -180,7 +180,7 @@ void imap_pretty_mailbox (char *path) tlen = safe_strlen (target.mbox); /* check whether we can do '=' substitution */ - if (mx_is_imap (Maildir) && !imap_parse_path (Maildir, &home)) { + if (mx_get_magic (Maildir) == M_IMAP && !imap_parse_path (Maildir, &home)) { hlen = safe_strlen (home.mbox); if (tlen && mutt_account_match (&home.account, &target.account) && !safe_strncmp (home.mbox, target.mbox, hlen)) {