From: Michael M Slusarz Date: Fri, 17 Apr 2009 01:05:48 +0000 (-0600) Subject: Base folder needs to be represented by null, not %. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f1965a3ab8398c83fdc93b6fac7efdf0cb425ee5;p=horde.git Base folder needs to be represented by null, not %. '%' is a valid mailbox char in IMAP, believe it or not (having one in your mailbox name will prevent you from doing searches, but it is technically valid). --- diff --git a/imp/lib/Imap/Tree.php b/imp/lib/Imap/Tree.php index bc7911417..09e251b97 100644 --- a/imp/lib/Imap/Tree.php +++ b/imp/lib/Imap/Tree.php @@ -39,8 +39,10 @@ class IMP_Imap_Tree const NEXT_SHOWCLOSED = 1; const NEXT_SHOWSUB = 2; - /* The string used to indicate the base of the tree. */ - const BASE_ELT = '%'; + /* The string used to indicate the base of the tree. This must be null + * since this is the only 7-bit character not allowed in IMAP + * mailboxes. */ + const BASE_ELT = null; /* Defines used with the output from the build() function. */ const SPECIAL_INBOX = 1;