From: pdmef Date: Thu, 20 Oct 2005 08:43:06 +0000 (+0000) Subject: From: Thorsten Gunkel X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=692cf062e86570a73f9147e09f017ccec378be58;p=apps%2Fmadmutt.git From: Thorsten Gunkel 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 --- diff --git a/VERSION.svn b/VERSION.svn index b1f994a..3749383 100644 --- a/VERSION.svn +++ b/VERSION.svn @@ -1 +1 @@ -554 +555 diff --git a/imap/imap.c b/imap/imap.c index 022415f..6ad04df 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -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; }