Author Topic: Impossible to set Draft, Junk, Sent and Trash as subfolders of INBOX :-(  (Read 4371 times)

Offline LoJo

  • Jr. Member
  • **
  • Posts: 15
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...

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
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';
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline LoJo

  • Jr. Member
  • **
  • Posts: 15
Thanks, but when processing like this, Draft, Junk, Sent and Trash are at the same level as the INBOX folder :-(

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
it only works at first login
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline LoJo

  • Jr. Member
  • **
  • Posts: 15
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 "---"

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
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.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline LoJo

  • Jr. Member
  • **
  • Posts: 15
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...

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
folder subscription information is stored on the imap server, not in roundcube
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…