X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=muttlib.c;h=06767293648d35f6c522450c3be1b3f7794c1a1f;hp=ca6ddb7eca8fcda2b2daf0ad232c2641345180c0;hb=d9ae612d6dba4f68f46a1a81eb77a326849f9184;hpb=ee1d4d931ca3ebec494694b74a1868a7a2e631e3 diff --git a/muttlib.c b/muttlib.c index ca6ddb7..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_is_imap (NONULL (Maildir)) && + 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_is_imap (s)) + if (imap_is_magic (s, NULL) == M_IMAP) imap_expand_path (s, slen); #endif