Replace deprecated luaL_openlib() by luaL_register()
[apps/madmutt.git] / muttlib.c
index 0d86826..dc07e8a 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -83,7 +83,7 @@ ssize_t _mutt_expand_path(char *buf, ssize_t len, const char *s, int rx)
       case '=':
       case '+':
         /* if folder = imap[s]://host/: don't append slash */
-        if (imap_is_magic(NONULL(Maildir), NULL) == M_IMAP
+        if (imap_mx.mx_is_magic(NONULL(Maildir), NULL) == M_IMAP
         &&  Maildir[m_strlen(Maildir) - 1] == '/') {
             m_strcpy(p, sizeof(p), Maildir);
         } else {