X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=muttlib.c;h=21ae059d7a3509d3e871e98c236f434c5ecaf414;hb=8e6b42b9b28f646a6764936d80bda04647d5b45f;hp=94c49873032878792b1c2f032b9706eee02cad65;hpb=021836b3da95b9243e9f8386d87d220ab4f7f7b7;p=apps%2Fmadmutt.git diff --git a/muttlib.c b/muttlib.c index 94c4987..21ae059 100644 --- a/muttlib.c +++ b/muttlib.c @@ -15,7 +15,6 @@ #include "mutt.h" #include "mutt_curses.h" #include "mime.h" -#include "mailbox.h" #include "mx.h" #include "url.h" @@ -364,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)); @@ -461,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