Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: LoJo on June 23, 2018, 04:25:15 AM

Title: Impossible to set Draft, Junk, Sent and Trash as subfolders of INBOX :-(
Post by: LoJo on June 23, 2018, 04:25:15 AM
Hello,

I am setting up a roundcube fresh install to use mail from OVH with IMAP.

The "official" OVH roundcube webmail create Draft, Junk, Sent and Trash folders as subfolders of the INBOX folder.

My roundcube install create Draft, Junk, Sent and Trash folders at the same level as Inbox folder.

I dont find witch parameters to use to have the same folders hierarchy on my roundcube install at the first login. Here are part of my config file :

Code: [Select]
$config['drafts_mbox'] = 'Drafts';
$config['junk_mbox'] = 'Junk';
$config['sent_mbox'] = 'Sent';
$config['trash_mbox'] = 'Trash';
$config['create_default_folders'] = true;
$config['protect_default_folders'] = true;
$config['show_real_foldernames'] = false;

Thanks for ideas...
Title: Re: Impossible to set Draft, Junk, Sent and Trash as subfolders of INBOX :-(
Post by: JohnDoh on June 23, 2018, 09:48:35 AM
Assuming '.' is the folder separator used by your IMAP server then it would be like this:
Code: [Select]
$config['drafts_mbox'] = 'INBOX.Drafts';
$config['junk_mbox'] = 'INBOX.Junk';
$config['sent_mbox'] = 'INBOX.Sent';
$config['trash_mbox'] = 'INBOX.Trash';
Title: Re: Impossible to set Draft, Junk, Sent and Trash as subfolders of INBOX :-(
Post by: LoJo on June 23, 2018, 11:04:38 AM
Thanks, but when processing like this, Draft, Junk, Sent and Trash are at the same level as the INBOX folder :-(
Title: Re: Impossible to set Draft, Junk, Sent and Trash as subfolders of INBOX :-(
Post by: JohnDoh on June 24, 2018, 02:17:42 AM
it only works at first login
Title: Re: Impossible to set Draft, Junk, Sent and Trash as subfolders of INBOX :-(
Post by: LoJo on June 24, 2018, 04:38:13 AM
Yes, I know that.
But here is my procedure :
1- delete 'user' table content in the database
2- Create a new mail box in the OVH manager
3- Connexion to _my_ roundcube -> Folders at the same level as INBOX.

In the imap log file, I see :
Code: [Select]
[24-Jun-2018 10:33:32 +0200]: <1o3470is> [E133] S: * LIST (\Subscribed) "." "INBOX.Drafts"
[24-Jun-2018 10:33:32 +0200]: <1o3470is> [E133] S: * LIST (\Subscribed) "." "INBOX.Sent"
[24-Jun-2018 10:33:32 +0200]: <1o3470is> [E133] S: * LIST (\Subscribed) "." "INBOX.Junk"
[24-Jun-2018 10:33:32 +0200]: <1o3470is> [E133] S: * LIST (\Subscribed) "." "INBOX.Trash"

But on the mail roundcube screen, folders are not shown in the INBOX.
In the folders parameters, parent folder is set to "---"
Title: Re: Impossible to set Draft, Junk, Sent and Trash as subfolders of INBOX :-(
Post by: JohnDoh on June 26, 2018, 01:41:17 PM
https://bugzilla.mozilla.org/show_bug.cgi?id=1195424 suggests this could be a quirk of OVH. May enable imap_debug and the login to an account which has the folders the way you want and then check the log to see how OVH reports the structure.
Title: Re: Impossible to set Draft, Junk, Sent and Trash as subfolders of INBOX :-(
Post by: LoJo on June 26, 2018, 03:18:01 PM
Yes, I think your are right.

On a clean fresh mailbox, folders structure is ok after connecting on _my_ webmail.
If I connect with the OVH roundcube, logout, and re-connect from _my_ roundcube, sending and delete a mail, I can see this in IMAP log :
Code: [Select]
[26-Jun-2018 21:10:57 +0200]: <3s3dn349> [38A0] S: * LIST (\HasChildren) "." "INBOX"
[26-Jun-2018 21:10:57 +0200]: <3s3dn349> [38A0] S: * LIST (\HasNoChildren) "." "INBOX.Junk"
[26-Jun-2018 21:10:57 +0200]: <3s3dn349> [38A0] S: * LIST (\HasNoChildren) "." "INBOX.Trash"
[26-Jun-2018 21:10:57 +0200]: <3s3dn349> [38A0] S: * LIST (\HasNoChildren) "." "INBOX.INBOX.Trash"
[26-Jun-2018 21:10:57 +0200]: <3s3dn349> [38A0] S: * LIST (\HasNoChildren) "." "INBOX.INBOX.Sent"
[26-Jun-2018 21:10:57 +0200]: <3s3dn349> [38A0] S: * LIST (\HasNoChildren) "." "INBOX.Sent"
[26-Jun-2018 21:10:57 +0200]: <3s3dn349> [38A0] S: * LIST (\HasNoChildren) "." "INBOX.Drafts"

So I think that OVH roundcube is misconfigured.

My proble is now : how can I change folders subscribing for about 50 users ? Using a mysql file to modify user table values ? But witch ones, an how...
Title: Re: Impossible to set Draft, Junk, Sent and Trash as subfolders of INBOX :-(
Post by: JohnDoh on June 27, 2018, 06:32:14 AM
folder subscription information is stored on the imap server, not in roundcube