6.0.0-beta1
11/8/25

[#3619] Courier IMAP - Nested folders do not show up
Summary Courier IMAP - Nested folders do not show up
Queue IMP
Queue Version 4.1
Type Bug
State Not A Bug
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester imp.5.drel (at) spamgourmet (dot) com
Created 03/13/2006 (7180 days ago)
Due
Updated 03/28/2006 (7165 days ago)
Assigned 03/13/2006 (7180 days ago)
Resolved 03/28/2006 (7165 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/28/2006 05:15:50 PM Michael Slusarz Comment #16
State ⇒ Not A Bug
Reply to this comment
In this bug there was a broken IMAP server and a misconfigured Horde 
setup.  Resolving = bogus.
03/28/2006 04:32:33 PM dboudrot (at) yahoo (dot) com Comment #15 Reply to this comment
Are you using Horde < 3.1?  There appears to be an issue with BC
between IMP 4.1 and the old way we used to handle the IMAP tree
because this doesn't happen with Horde 3.1+.
I reinstalled Horde 3.1, just in case.  Then I found the problem:



$conf['auth']['params']['dsn'] = 
'{localhost:993/imap/ssl/novalidate-cert}INBOX';



But this should have been:



$conf['auth']['params']['dsn'] = '{localhost:993/imap/ssl/novalidate-cert}';



Thanks!
03/22/2006 09:42:08 PM Michael Slusarz Comment #14 Reply to this comment
FYI, I can see shared folders either way, but when I configura IMP
for IMAP folder subscriptions, I can't see anything under INBOX.,
even if I make sure to subscribe to folders otherwise.  Without IMP
using IMAP folder subscriptions, all the folders are in filesystem
date order, and are named like INBOX.Stuff.Subscriptions.
Are you using Horde < 3.1?  There appears to be an issue with BC 
between IMP 4.1 and the old way we used to handle the IMAP tree 
because this doesn't happen with Horde 3.1+.
03/22/2006 03:53:15 PM dboudrot (at) yahoo (dot) com Comment #13 Reply to this comment
FYI, I can see shared folders either way, but when I configura IMP for 
IMAP folder subscriptions, I can't see anything under INBOX., even if 
I make sure to subscribe to folders otherwise.  Without IMP using IMAP 
folder subscriptions, all the folders are in filesystem date order, 
and are named like INBOX.Stuff.Subscriptions.
03/21/2006 07:45:16 PM dboudrot (at) yahoo (dot) com Comment #12 Reply to this comment
I'm still having a problem like this.  If I try to use IMAP folder 
subscriptions, I can't see ANY folders (Courier-IMAP 4.1.0), and on 
the Folders page, I can't see any folders, nor create any.
03/14/2006 07:27:19 PM imp (dot) 5 (dot) drel (at) spamgourmet (dot) com Comment #11 Reply to this comment
At this point, I'm not sure what we can do to work around this.  If
an IMAP server is advertising that it supports the 'CHILDREN'
extension, and then doesn't provide children information when
expected, it doesn't seem like there is too much we can do about this.
I completely understand.  In the meantime, with your workaround, I can 
continue evaluating IMP 4.1 now that we can access all of our folders.
I will be interested to hear if upgrading the IMAP server solves this issue.
Hopefully there will be time to do the upgrade at some point this week 
(I have everything compiled and tested, I just need a lull to make the 
switch on the production IMAP server); I will make sure to report back 
in this incident whether or not the current version of Courier IMAP 
has the same problem.



Best regards (and thank you for the speedy responses),

Nick
03/14/2006 06:58:32 PM Michael Slusarz Comment #10 Reply to this comment
Is there any further information I can provide, or do you consider
this a non IMP bug and not worth the effort to work around?
At this point, I'm not sure what we can do to work around this.  If an 
IMAP server is advertising that it supports the 'CHILDREN' extension, 
and then doesn't provide children information when expected, it 
doesn't seem like there is too much we can do about this.



I will be interested to hear if upgrading the IMAP server solves this issue.
03/14/2006 06:25:42 PM imp (dot) 5 (dot) drel (at) spamgourmet (dot) com Comment #9 Reply to this comment
That change seemed to fix things; the nested folders show up now.  Great!



I am running a fairly old version of Courier IMAP (v3.0.5); I'll be 
upgrading that to v4.1.0 over this coming weekend, with any luck, and 
can test to see if the problem goes away with the upgrade.



Is there any further information I can provide, or do you consider 
this a non IMP bug and not worth the effort to work around?
03/14/2006 05:55:16 AM Michael Slusarz Comment #8 Reply to this comment
It kind of looks like your IMAP server may be broken - the server is 
advertising it supports the CHILDREN extension, but none of your 
folders that have children appear to have the bitmask set indicating 
whether there are children or not - which means that 
imap_getmailboxes() is not returning correct information. Could you 
try replacing line 83 in imp/lib/IMAP/Tree.php with this:

                 $this->IMAPchildrenSupport(false);
03/14/2006 01:46:57 AM imp (dot) 5 (dot) drel (at) spamgourmet (dot) com Comment #7 Reply to this comment
Can you add this line:
print_r($imptree);

to the end of imp/folders.php - go to that page - and then attach the
output of that call to this ticket.
Sure:



imp_tree Object ( [_vfolders] => Array ( 
[**search_4vu2ufc4pct3cwwsskgo0] => Virtual INBOX ) [_newimaptree] => 
1 [_tree] => Array ( [] => Array ( [a] => 1056 ) [#shared] => Array ( 
[a] => 16386 [c] => 0 [p] => [v] => #shared [l] => #shared ) [shared] 
=> Array ( [a] => 16386 [c] => 0 [p] => [v] => shared [l] => shared ) 
[INBOX.Washington DECA] => Array ( [a] => 512 [c] => 0 [p] => [v] => 
INBOX.Washington DECA [l] => Washington DECA ) [INBOX.National DECA] 
=> Array ( [a] => 512 [c] => 0 [p] => [v] => INBOX.National DECA [l] 
=> National DECA ) [INBOX.Inbox-archive] => Array ( [a] => 512 [c] => 
0 [p] => [v] => INBOX.Inbox-archive [l] => Inbox-archive ) 
[INBOX.Mailing Lists] => Array ( [a] => 512 [c] => 0 [p] => [v] => 
INBOX.Mailing Lists [l] => Mailing Lists ) [INBOX.FogBugz] => Array ( 
[a] => 512 [c] => 0 [p] => [v] => INBOX.FogBugz [l] => FogBugz ) 
[INBOX.Archive] => Array ( [a] => 512 [c] => 0 [p] => [v] => 
INBOX.Archive [l] => Archive ) [INBOX.drafts] => Array ( [a] => 512 
[c] => 0 [p] => [v] => INBOX.drafts [l] => drafts ) [INBOX.virusalert] 
=> Array ( [a] => 512 [c] => 0 [p] => [v] => INBOX.virusalert [l] => 
virusalert ) [INBOX.Junk] => Array ( [a] => 512 [c] => 0 [p] => [v] => 
INBOX.Junk [l] => Junk ) [INBOX.Drafts] => Array ( [a] => 512 [c] => 0 
[p] => [v] => INBOX.Drafts [l] => Drafts ) [INBOX.Sent] => Array ( [a] 
=> 512 [c] => 0 [p] => [v] => INBOX.Sent [l] => Sent ) [INBOX.Trash] 
=> Array ( [a] => 512 [c] => 0 [p] => [v] => INBOX.Trash [l] => Trash 
) [INBOX] => Array ( [a] => 2564 [c] => 0 [p] => [v] => INBOX [l] => 
Inbox ) [Virtual Folders] => Array ( [a] => 9762 [c] => 0 [p] => [v] 
=> Virtual Folders [l] => Virtual Folders ) 
[**search_4vu2ufc4pct3cwwsskgo0] => Array ( [a] => 9792 [c] => 1 [p] 
=> Virtual Folders [v] => **search_4vu2ufc4pct3cwwsskgo0 [l] => 
Virtual INBOX ) ) [_currparent] => [_currkey] => [_currstack] => Array 
( ) [_showunsub] => 2 [_parent] => Array ( [] => Array ( [0] => INBOX 
[1] => #shared [2] => INBOX.Archive [3] => INBOX.Drafts [4] => 
INBOX.drafts [5] => INBOX.FogBugz [6] => INBOX.Inbox-archive [7] => 
INBOX.Junk [8] => INBOX.Mailing Lists [9] => INBOX.National DECA [10] 
=> INBOX.Sent [11] => shared [12] => INBOX.Trash [13] => Virtual 
Folders [14] => INBOX.virusalert [15] => INBOX.Washington DECA ) 
[Virtual Folders] => Array ( [0] => **search_4vu2ufc4pct3cwwsskgo0 ) ) 
[_poll] => [_expanded] => Array ( [Virtual Folders] => 1 ) 
[_subscribed] => Array ( [INBOX] => 1 [INBOX.FogBugz.BBOS] => 1 
[INBOX.Archive.virusalert-archive] => 1 [INBOX.FogBugz.WebForge] => 1 
[INBOX.FogBugz.WADECA] => 1 [INBOX.FogBugz.Venture] => 1 
[INBOX.FogBugz.Natl DECA HS] => 1 [INBOX.FogBugz.Joshua Green] => 1 
[INBOX.FogBugz.JG Corporate] => 1 [INBOX.FogBugz.HP Portals] => 1 
[INBOX.FogBugz.Form to XML] => 1 [INBOX.FogBugz.FMD Mail Merge] => 1 
[INBOX.FogBugz.FMD Email Manager] => 1 [INBOX.FogBugz.DECA ConfReg] => 
1 [INBOX.Mailing Lists.roundcube] => 1 [INBOX.Mailing Lists.ntbugtraq] 
=> 1 [INBOX.Mailing Lists.Slim Devices] => 1 [INBOX.Mailing Lists] => 
1 [INBOX.Archive.Junk-archive] => 1 [INBOX.Archive] => 1 
[INBOX.FogBugz] => 1 [INBOX.Washington DECA] => 1 [INBOX.National 
DECA] => 1 [INBOX.Inbox-archive] => 1 [INBOX.drafts] => 1 
[INBOX.virusalert] => 1 [INBOX.Junk] => 1 [INBOX.Drafts] => 1 
[INBOX.Sent] => 1 [INBOX.Trash] => 1 [Virtual Folders] => 1 
[**search_4vu2ufc4pct3cwwsskgo0] => 1 ) [_unsubscribed] => Array ( ) 
[_initmode] => 0 [_changed] => [_unsubview] => 2 [_imap_sort] => 
[_nonimapelt] => [_cachename] => imaptree [_app] => imp [_server] => 
{mail.flyingmachine.com:143/imap/notls} [_mode] => 0 [_namespaces] => 
Array ( [INBOX.] => Array ( [name] => INBOX. [delimiter] => . [type] 
=> personal [hidden] => ) [#shared.] => Array ( [name] => #shared. 
[delimiter] => . [type] => shared [hidden] => ) [shared.] => Array ( 
[name] => shared. [delimiter] => . [type] => shared [hidden] => ) ) 
[_childrensupport] => 1 [_eltdiff] => [_prefixnodelim] => [_delimiter] 
=> . [_prefix] => [_namespace] => [_dotfiles] => [_currStack] => Array 
( ) )
03/14/2006 01:12:37 AM Michael Slusarz Comment #6 Reply to this comment
Can you add this line:

print_r($imptree);



to the end of imp/folders.php - go to that page - and then attach the 
output of that call to this ticket.
03/14/2006 12:02:01 AM imp (dot) 5 (dot) drel (at) spamgourmet (dot) com Comment #5 Reply to this comment
If you run the login test on imp/test.php, what's the result?
IMP Version



     * IMP: H3 (4.1)



Other Horde Applications



     * gollem: No

       Gollem provides access to local VFS filesystems to attach files.

     * ingo: Yes (Version: H3 (1.1))

     * nag: No

       Nag allows tasks to be directly created from e-mail data.

     * turba: Yes (Version: H3 (2.1))



PHP Version



     * View phpinfo() screen

     * View loaded extensions

     * PHP Version: 4.3.4

     * PHP Major Version: 4.3

     * PHP Minor Version: 4

     * PHP Version Classification: release

     * You are running a supported version of PHP.



PHP Module Capabilities



     * IMAP Support: Yes

     * OpenSSL Support: Yes



Miscellaneous PHP Settings



     * file_uploads enabled: Yes



Required IMP Configuration Files



     * config/conf.php: Yes

     * config/mime_drivers.php: Yes

     * config/prefs.php: Yes

     * config/servers.php: Yes



PEAR



     * PEAR Search Path (PHP's include_path):   
/var/www/html/mail/horde-new/lib:.:/usr/share/pear

     * PEAR: Yes

     * Recent PEAR: Yes

     * HTTP_Request: Yes

     * Auth_SASL: Yes



PHP Mail Server Support Test

Attempting to automatically determine the correct connection 
parameters for your server:



     * Trying protocol imap, Port 143:



           ERROR - The server returned the following error message:



           Certificate failure for mail.mydomain.com: self signed certificate:

           /C=US/ST=NY/L=New York/O=Courier Mail 
Server/OU=Automatically-generated

           IMAP SSL key/CN=localhost/emailAddress=postmaster@example.com



     * Trying protocol imap/notls, Port 143:



           SUCCESS - INBOX has 908 messages (12 new 0 recent)



     * Trying protocol imap/ssl, Port 993:



           ERROR - The server returned the following error message:



           Certificate failure for mail.mydomain.com: self signed certificate:

           /C=US/ST=NY/L=New York/O=Courier Mail 
Server/OU=Automatically-generated

           IMAP SSL key/CN=localhost/emailAddress=postmaster@example.com



     * Trying protocol imap/ssl/novalidate-cert, Port 993:



           SUCCESS - INBOX has 908 messages (12 new 0 recent)



     * Trying protocol imap/tls/novalidate-cert, Port 143:



           SUCCESS - INBOX has 908 messages (12 new 0 recent)



The following configurations were successful and may be used in your 
imp/config/servers.php file:



     Configuration 1



         'server' => 'mail.mydomain.com'

         'protocol' => 'imap/notls'

         'port' => '143'



     Configuration 2



         'server' => 'mail.mydomain.com'

         'protocol' => 'imap/ssl/novalidate-cert'

         'port' => '993'



     Configuration 3



         'server' => 'mail.mydomain.com'

         'protocol' => 'imap/tls/novalidate-cert'

         'port' => '143'



The following IMAP server information was discovered from the remote server:



     Namespace Information



         NAMESPACE: "INBOX." DELIMITER: . TYPE: personal NAMESPACE: 
"#shared." DELIMITER: . TYPE: shared NAMESPACE: "shared." DELIMITER: . 
TYPE: shared



     IMAP CHILDREN support:



         SUPPORTED



     IMAP Charset Search Support:



         Server supports searching with the UTF-8 character set.




03/13/2006 10:26:28 PM Jan Schneider Comment #4
State ⇒ Feedback
Reply to this comment
If you run the login test on imp/test.php, what's the result?
03/13/2006 10:25:51 PM Jan Schneider Assigned to Michael Slusarz
State ⇒ Assigned
 
03/13/2006 09:47:29 PM imp (dot) 5 (dot) drel (at) spamgourmet (dot) com Comment #3
New Attachment: mailbox-view.JPG Download
Reply to this comment
Did you upgrade from IMP 4.0.x?
No; this is a side-by-side installation with our (production) IMP 
3.2.2.  I'm testing IMP 4.1 with an eye to replacing the production 
version.



Please let me know if there's any other information I could provide to 
help replicate the problem.
03/13/2006 06:58:08 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Did you upgrade from IMP 4.0.x?
03/13/2006 06:39:49 PM imp (dot) 5 (dot) drel (at) spamgourmet (dot) com Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Courier IMAP - Nested folders do not show up
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment
Problem:



I can't see some nested folders within IMP 4.1 that do show up in 
native IMAP clients, like Thunderbird and Outlook.



Details:

My IMAP folder structure looks like this:



INBOX

INBOX.Drafts

INBOX.Mailing Lists

INBOX.Mailing Lists.Mailing List 1

INBOX.Mailing Lists.Mailing List 2

INBOX.Mailing Lists.Mailing List 3

INBOX.Sent



...



The INBOX.Mailing Lists folder contains no messages, just folders 
which contain messages from each mailing list I subscribe to.  When I 
expand the folder list in IMP 4.1, Mailing Lists is empty, and does 
not have any children folders.  When I use a native IMAP client, I can 
see each mailing list folder and read messages in it.



Software versions:



IMP v4.1

Horde v3.1

PHP v4.3.4

Apache v2.0.48

Courier-IMAP 3.0.5

Saved Queries