I had this problem also, the patch does indeed fix it. Attached is a
patch fit for dropping directly into debian/patches
diff -ur mutt-1.5.6.orig/imap/util.c mutt-1.5.6/imap/util.c
--- mutt-1.5.6.orig/imap/util.c 2005-03-01 20:35:38.000000000 +0000
+++ mutt-1.5.6/imap/util.c      2005-03-01 20:45:52.000000000 +0000
@@ -269,6 +269,7 @@
  * in IMAP.  Additionally, the filesystem converts multiple hierarchy
  * delimiters into a single one, ie "///" is equal to "/".  IMAP servers
  * are not required to do this.
+ * Moreover, IMAP servers may dislike the path ending with the delimiter.
  */
 char *imap_fix_path (IMAP_DATA *idata, char *mailbox, char *path, 
     size_t plen)
@@ -295,6 +296,8 @@
     }
     x++;
   }
+  if (path[x - 1] == idata->delim)
+    x--;
   path[x] = '\0';
   return path;
 }
diff -ur mutt-1.5.6.orig/PATCHES mutt-1.5.6/PATCHES
--- mutt-1.5.6.orig/PATCHES     2005-03-01 20:35:39.000000000 +0000
+++ mutt-1.5.6/PATCHES  2005-03-01 20:44:16.000000000 +0000
@@ -13,3 +13,4 @@
 patch-1.4.admcd.gnutls.59d
 patch-1.5.5.1.cd.edit_threads.9.5
 patch-1.5.6.rr.compressed.1
+patch-courier-imap-trailing-dot.1

Attachment: signature.asc
Description: Digital signature



Reply via email to