Rocco Rutte:
[apps/madmutt.git] / imap / imap.c
index 621d940..7d1392d 100644 (file)
@@ -1320,7 +1320,7 @@ int imap_subscribe (char *path, int subscribe)
   char mbox[LONG_STRING];
   IMAP_MBOX mx;
 
-  if (!mx_is_imap (path) || imap_parse_path (path, &mx)) {
+  if (mx_get_magic (path) == M_IMAP || imap_parse_path (path, &mx)) {
     mutt_error (_("Bad mailbox name"));
     return -1;
   }