--- mailbox/imap/folder.c.orig	Wed Nov 17 14:24:19 2004
+++ mailbox/imap/folder.c	Thu Mar 30 22:32:57 2006
@@ -1388,8 +1388,8 @@
   tok = strtok_r (NULL, " ", &sp);
   if (tok && strlen (tok) > 2 && strcasecmp (tok, "NIL"))
     lr->separator = tok[1];
-  /* The path.  */
-  tok = strtok_r (NULL, " ", &sp);
+  /* The path is the remainder.  */
+  tok = strdup(sp);
   if (tok)
     {
       char *s = strchr (tok, '{');
