[RCU] list and subscribe to shared folders in rc (with courier-imap as backend)

Simeon Ott simeon.ott at onnet.ch
Wed May 9 11:51:47 CEST 2012


Dear list,

I have a small mailserver with around 200 accounts and I'm using roundcube (0.7) as the primary webmail interface after migrating from squirrelmail 1 year ago. I'm now trying to get shared folders to work with my courier-imap mail server (4.8.0-3 on debian squeeze).

After the configuration of a simple virtual shared folder in a testaccount (via the shared folder plugin), I'm able to access and subscribe to this folder from the permitted user account. But in roundcube I don't see this folder because they are outside of the namespace INBOX even if i define the namespaces manually like this:

$rcmail_config['imap_ns_personal'] = "INBOX.";
$rcmail_config['imap_ns_other']    = null;
$rcmail_config['imap_ns_shared']   = "#shared.";

I activated imap debugging and found the following

C: A0002 LIST "" "*"
[...]  a list of all Mailboxes under INBOX.
S: A0002 OK LIST completed
C: A0003 LIST #shared. "*"
S: A0003 OK LIST completed

the second command (LIST #shared "*") is the problem. I don't know if this is RFC conform, but it doesn't work for courier-imap. In my opinion the first argument should be the delimiter, the second argument the mailboxname or wildcard. My mailserver expects something like the following command:
C: A0003 LIST "." "#shared.*"

I did a quickfix in _list_unsubscribe() and now the shared folders are listed in the settings folder view even when the imap_ns_* flags are not set. But I'm still not able to see them in the mailbox view and the subscribe toggle is always reseted. I think there would be other changes to get that working like this. But I'm pretty sure that my changes are not necessary and it's because of a misconfiguration on my side. But after debugging the code and reading specific reports  (#1487657, #1403507) about similar issues I'm still not able to get it working.

I would really appreciate any help, suggestions or directions to any tutorials
thanks in advance
simeon


More information about the users mailing list