Author Topic: Folder problems after updating  (Read 5260 times)

Offline gigi

  • Jr. Member
  • **
  • Posts: 11
Folder problems after updating
« on: April 09, 2009, 04:57:00 AM »
Hallo, because of Direct Admin, I had to update Roundcube to the latest vers.
After that, folders have been doubled in mixed language!
When I create a new account folders are in mixed lang instead of Italian (default) and others are missing such us "Cestino" (Trash)...

Please help me to solve this messy situation. I can't go and manually modify hundreds of accounts!

Please look at the jpg here attached.

Thanks in advance!

Offline gigi

  • Jr. Member
  • **
  • Posts: 11
Folder problems after updating
« Reply #1 on: April 14, 2009, 11:01:18 AM »
no advice for me? :confused:

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Folder problems after updating
« Reply #2 on: April 14, 2009, 01:57:30 PM »
Could you please post your ./config/main.inc.php ?
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline gigi

  • Jr. Member
  • **
  • Posts: 11
Folder problems after updating
« Reply #3 on: April 15, 2009, 11:05:17 AM »
Actually, I have been testing the matter after a new installing of the latest version within my private account in the server to make a separate test.
I made changes to FALSE to TRUE as read in posts, but nothing have happened !


// display these folders separately in the mailbox list.
// these folders will also be displayed with localized names
$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');

// automatically create the above listed default folders on login
$rcmail_config['create_default_folders'] = TRUE;

// protect the default folders from renames, deletes, and subscription changes
$rcmail_config['protect_default_folders'] = TRUE;

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Folder problems after updating
« Reply #4 on: April 15, 2009, 11:13:25 AM »
Please notice, that 'default_imap_folders' is case sensitive. It looks like your prior installation has used "spam" instead of "Junk" now. Also when looking at your screen shots I'm confused if you want to have the default folders as root folders or as subfolders of INBOX.

I guess your prior definiton before update was something like:

$rcmail_config['default_imap_folders'] = array('INBOX', 'INBOX.Drafts', 'INBOX.Sent', 'INBOX.spam', 'INBOX.Trash');

Don't you have a backup of your old ./config/main.inc.php ?
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline gigi

  • Jr. Member
  • **
  • Posts: 11
Folder problems after updating
« Reply #5 on: April 15, 2009, 11:49:22 AM »
Rosali, unfortunately I do not have backup of the file, but there was something not properly working with folders even before!

Anyhow, I need only these folders.
Posta in arrivo
Inviata
Cestino
Spam

I don't know how to cope with it anymore ! :confused:
Here attached the jpg folders where you can see the situation and understand furthermore what is going on.

Help!

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Folder problems after updating
« Reply #6 on: April 16, 2009, 01:04:20 AM »
Looking at screenshot 2, the following should work:

$rcmail_config['default_imap_folders'] = array('INBOX', Drafts', 'Sent', 'spam', 'Trash');

Could you check on the imap server side for the exactly folder structure? Also I'm confused to see INBOX.Drafts as a subfolder of INBOX. It should only show Drafts there, because the dot (".") normaly indicates the folder delimiter. Do you know the folder delimiter of your IMAP server? Configure ...


// If you know your imap's root directory and its folder delimiter,  
// you can specify them here. Otherwise they will be determined  
// during every imap connection.  
$rcmail_config['imap_root'] = null;  
$rcmail_config['imap_delimiter'] = null;  


... accordingly.

In addition the current release of RoundCube has the ability to define the special folders on a per user level. Have you checked the personal settings for this user? Maybe the settings in main.inc.php are overriden by personal preferences?
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline gigi

  • Jr. Member
  • **
  • Posts: 11
Folder problems after updating
« Reply #7 on: April 16, 2009, 06:34:46 AM »
ok Rosali,
please just have a glance to this code and see if there is something to correct in order to have a proper visualization of the forlders.
Let's start from this to clean up the situation.

Here is the main.inc in use at the moment:

// store draft message is this mailbox
// leave blank if draft messages should not be stored
$rcmail_config['drafts_mbox'] = 'INBOX.Drafts';

// store spam messages in this mailbox
$rcmail_config['junk_mbox'] = 'INBOX.Spam';

// store sent message is this mailbox
// leave blank if sent messages should not be stored
$rcmail_config['junk_mbox'] = 'INBOX.Sent';

// move messages to this folder when deleting them
// leave blank if they should be deleted directly
$rcmail_config['junk_mbox'] = 'INBOX.Trash';

// display these folders separately in the mailbox list.
// these folders will also be displayed with localized names
$rcmail_config['default_imap_folders'] = array('INBOX', 'INBOX.Drafts', 'INBOX.Sent', 'INBOX.Spam', 'INBOX.Trash');

// automatically create the above listed default folders on login
$rcmail_config['create_default_folders'] = TRUE;


thanks again!

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Folder problems after updating
« Reply #8 on: April 16, 2009, 06:55:05 AM »
Looks ok for me, but ...

#1- Is there a special reason to use subfolders of INBOX?
#2- Are you sure, your IMAP server use "." as subfolder delimiter? Some servers use "/".
#3- It might be that you have screwed up accounts by prior configurations:
..... I mentioned that this stuff if case sensitive.
..... So if you had INBOX.spam in a prior configuration and now you have INBOX.Spam,
..... then INBOX.Spam won't be created and it fails to associate the spam folder icon,
..... because it looks for INBOX.Spam
#4- Did you check the user preferences for special folder settings?

Regarding the screen shot of your Folder Settings I guess that your server use "/" as folder delimiter, otherwise you should not see f.e. INBOX.Drafts in the folder list.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline gigi

  • Jr. Member
  • **
  • Posts: 11
Folder problems after updating
« Reply #9 on: April 16, 2009, 08:10:19 AM »
Looks ok for me, but ...

#1- Is there a special reason to use subfolders of INBOX?
No, there is not.

#2- Are you sure, your IMAP server use "." as subfolder delimiter? Some servers use "/".

I don't know, but I can check it for you if you confirm me where to give a glance. I use VPS with Direct Admin configuration...


#3- It might be that you have screwed up accounts by prior configurations:
..... I mentioned that this stuff if case sensitive.
..... So if you had INBOX.spam in a prior configuration and now you have INBOX.Spam,
..... then INBOX.Spam won't be created and it fails to associate the spam folder icon,
..... because it looks for INBOX.Spam

Prior account and users usually did not create special folders o private configurations of the webmail. They are used to use Roundcube as it is :)

#4- Did you check the user preferences for special folder settings?
There are not, but in case, how to wipe all and set a brand new configuration for all the hundreds mail accounts? I would really prefer start up once again...

Regarding the screen shot of your Folder Settings I guess that your server use "/" as folder delimiter, otherwise you should not see f.e. INBOX.Drafts in the folder list.
I don't know...

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Folder problems after updating
« Reply #10 on: April 16, 2009, 09:35:07 AM »
#1-SQL in roundcube database ...

Code: [Select]

UPDATE users SET preferences=NULL;


Notice: This will wipe out all personal preferences !!!

#2-./config/main.inc.php


// store draft message is this mailbox
// leave blank if draft messages should not be stored
$rcmail_config['drafts_mbox'] = 'Drafts';

// store spam messages in this mailbox
$rcmail_config['junk_mbox'] = 'Spam';

// store sent message is this mailbox
// leave blank if sent messages should not be stored
$rcmail_config['junk_mbox'] = 'Sent';

// move messages to this folder when deleting them
// leave blank if they should be deleted directly
$rcmail_config['junk_mbox'] = 'Trash';

// display these folders separately in the mailbox list.
// these folders will also be displayed with localized names
$rcmail_config['default_imap_folders'] = array('INBOX''Drafts''Sent''Spam''Trash');

// automatically create the above listed default folders on login
$rcmail_config['create_default_folders'] = TRUE;


Notice: Accounts where unwanted folders already exists on the IMAP server have to be corrected manually or by a script especially written for this purpose.

#4-NO WARRINTY AT ALL
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline gigi

  • Jr. Member
  • **
  • Posts: 11
Folder problems after updating
« Reply #11 on: April 16, 2009, 10:21:48 AM »

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Folder problems after updating
« Reply #12 on: April 16, 2009, 03:16:04 PM »
I'm not familiar with DirectAdmin and Dovecot ... I see that they discuss about the imap root and the folder delimiter ... Perhaps anybody else? ...
Regards,
Rosali
__________________
MyRoundcube Project (commercial)