X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=muttlib.c;h=21ae059d7a3509d3e871e98c236f434c5ecaf414;hb=8e6b42b9b28f646a6764936d80bda04647d5b45f;hp=ca6ddb7eca8fcda2b2daf0ad232c2641345180c0;hpb=ee1d4d931ca3ebec494694b74a1868a7a2e631e3;p=apps%2Fmadmutt.git diff --git a/muttlib.c b/muttlib.c index ca6ddb7..21ae059 100644 --- a/muttlib.c +++ b/muttlib.c @@ -363,7 +363,7 @@ char *_mutt_expand_path (char *s, size_t slen, int rx) { #ifdef USE_IMAP /* if folder = {host} or imap[s]://host/: don't append slash */ - if (mx_is_imap (NONULL (Maildir)) && + if (mx_get_magic (NONULL (Maildir)) == M_IMAP && (Maildir[safe_strlen (Maildir) - 1] == '}' || Maildir[safe_strlen (Maildir) - 1] == '/')) strfcpy (p, NONULL (Maildir), sizeof (p)); @@ -460,7 +460,7 @@ char *_mutt_expand_path (char *s, size_t slen, int rx) #ifdef USE_IMAP /* Rewrite IMAP path in canonical form - aids in string comparisons of * folders. May possibly fail, in which case s should be the same. */ - if (mx_is_imap (s)) + if (mx_get_magic (s) == M_IMAP) imap_expand_path (s, slen); #endif