Hello,
since we moved from squirrelmail to roundcube we got the problem that roundcube does not handle shared folders. I searched the lists and the forum but it seems there is no solution yet.
So i take a look into the code and coded a little bit, really a bit ... here are my patches.
The main changes made to the program/lib/imap.inc (btw. all files should end with .php to avoid unauthorized access): Instead of $ref i use the wild-card * to retrieve all folders from imap, not only the folders below $root_dir.
Function mod_mailbox in program/include/rcube_imap.php got some new lines to make a decision between INBOX. and non INBOX. folder, to handle these new folders ... which can have "shared." or "user." (cyrus) as root.
I've tested it with subscribe/unsubscribe, move mail into the folders, read messages in folders ... i think i've tested all you can do with folders. :)
Since i can only test it with Cyrus, i don't know if there will be side effects with other imap servers.
See the attachment for the patches for rc0.3.1
Hope this is useful for someone.
Greetings Manfred Stellenberg
Hello,
i found a bug in my implementation.
The listing of e-mails in a sub-folder of INBOX doesn't work.
I fixed also the hard coded user./shared./INBOX.-decision, so it should work with all possible root folders.
Tested with cyrus2.1 on apache2.2 with php5.2
Working patches attached. (Patch it with untouched rc0.3.1!)
Greetings Manfred Stellenberg