X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=muttlib.c;h=06767293648d35f6c522450c3be1b3f7794c1a1f;hp=21ae059d7a3509d3e871e98c236f434c5ecaf414;hb=b2a6a9673e124c222f921650a6f0025b64ab2145;hpb=cdd5dd2b406b2af4359f7b1e7360d0c9aba13777 diff --git a/muttlib.c b/muttlib.c index 21ae059..0676729 100644 --- a/muttlib.c +++ b/muttlib.c @@ -22,6 +22,7 @@ #ifdef USE_IMAP #include "imap.h" +#include "imap/mx_imap.h" #endif #include "mutt_crypt.h" @@ -363,7 +364,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_get_magic (NONULL (Maildir)) == M_IMAP && + if (imap_is_magic (NONULL (Maildir), NULL) == M_IMAP && (Maildir[safe_strlen (Maildir) - 1] == '}' || Maildir[safe_strlen (Maildir) - 1] == '/')) strfcpy (p, NONULL (Maildir), sizeof (p)); @@ -460,7 +461,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_get_magic (s) == M_IMAP) + if (imap_is_magic (s, NULL) == M_IMAP) imap_expand_path (s, slen); #endif