2007/9/26, Thomas Bruederli roundcube@gmail.com:
2007/9/26, Robin Elfrink elfrink@introweb.nl:
[...]
I guess the problem is the follwing replace: preg_replace('/.*' . preg_quote($IMAP->delimiter) ...)
My folders are all top-level and $IMAP->delimiter is empty. The resulting expression is /.*/ which removes all characters from the folder name. I'd suggest to split the folder name by the delimiter and then use the last array index (which would be 0 in my case).
Or probably you can use rcmail_build_folder_tree() to get the folder names without the complete path.
~Thomas _______________________________________________ List info: http://lists.roundcube.net/dev/