From: Thorsten Gunkel <tgunkel-lists@tgunkel.de>
authorpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Thu, 20 Oct 2005 08:43:06 +0000 (08:43 +0000)
committerpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Thu, 20 Oct 2005 08:43:06 +0000 (08:43 +0000)
Rocco Rutte:
- fix imap subscribing always returning "bad mailbox name"

git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@555 e385b8ad-14ed-0310-8656-cc95a2468c6d

VERSION.svn
imap/imap.c

index b1f994a..3749383 100644 (file)
@@ -1 +1 @@
-554
+555
index 022415f..6ad04df 100644 (file)
@@ -1441,7 +1441,7 @@ int imap_subscribe (char *path, int subscribe)
   BUFFER err, token;
   IMAP_MBOX mx;
 
-  if (mx_get_magic (path) == M_IMAP || imap_parse_path (path, &mx)) {
+  if (mx_get_magic (path) != M_IMAP || imap_parse_path (path, &mx) < 0) {
     mutt_error (_("Bad mailbox name"));
     return -1;
   }