From f1965a3ab8398c83fdc93b6fac7efdf0cb425ee5 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 16 Apr 2009 19:05:48 -0600 Subject: [PATCH] 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). --- imp/lib/Imap/Tree.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.11.0