Roundcube Community Forum

 

Special folder associations (Trash, Sent, etc) no longer associated in 0.3 upgrade

Started by tofinoguy, September 11, 2009, 08:19:44 PM

Previous topic - Next topic

tofinoguy

Hello,

I updated from 0.2 to 0.3 and noticed that all the users no longer have their special folders linked in Roundcube. In order to keep copies of sent mail, be able to delete mail, etc. I had to ask all users to re-associate them in Settings & Special Folders.

I've also noticed that when creating new users, these folders are no longer being created automatically and when I attempt to manually create them, it is displaying an error message "An error occurred while saving" and is unable to create them. This occurs whether I attempt to create a special folder or a folder with a random name.

Did I miss something in the configuration file? When I ran the upgrade tool it didn't show me any suggestions as to what needed to be chaged so I went line by line comparing the config files and attempted to make them match up. I also noticed that the database did not change, is that correct?

Thanks,

Cedric.

Julius Caesar

Check the main.inc.php for the following settings:

// 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'] = 'Junk';

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

// move messages to this folder when deleting them
// leave blank if they should be deleted directly
$rcmail_config['trash_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', 'Junk', 'Trash');
Julius Caesar

You can download the Groupvice4 theme here.
Sie können Groupvice4 hier he

FleetCommand

We had the same problem but figured out how to solve it. For us the Trash, Junk, Drafts and Sent folders are a subfolders of the INBOX so I modified the config like this adding a dot between the parent and subfolders:

// 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.Junk';

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

// move messages to this folder when deleting them
// leave blank if they should be deleted directly
$rcmail_config['trash_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.Junk', 'INBOX.Trash');

tofinoguy

That did it; thanks, FleetCommand!
However, I am still unable to create new folders. I wonder if this is related to the same issue with folders being a subfolder of INBOX?

dano

Try setting this instead
$rcmail_config['imap_delimiter'] = inbox;
Then revert the other changes you made.

Mine is the same way and I am able to create and delete folders.

rosali

@ dano:
_inbox_ (without quotes) is not a constant. So your setting is equal with the default (null).
Regards,
Rosali

dano

Rosali,

It appears to work the same with or without the quotes for me.

tofinoguy

Alright,

I have updated as follows:

$rcmail_config['imap_delimiter'] = 'inbox';

And removed the initial changes as suggested by FleetCommand. Everything is being displayed and indexed correctly. However, I am still unable to create new folders from within Roundcube. The error message is "an error occured while saving".

FURTHER UPDATE: I have gone back to the way FleetCommand suggested and removed the delimiter for now. It did not fix the folder creation problem, and any folders other than the standard ones were showing up as "INBOX.Foldername" for each user rather than just "Foldername".

Would still like to get this resolved as well as find out why this change which seems to be impacting so many users was made without warning.

rosali

Try $rcmail_config['imap_delimiter'] = '.'; or $rcmail_config['imap_delimiter'] = '/'; ...
Regards,
Rosali

caplod

#9
my setting:
debian lenny with courier imap server
i also tried FleetCommands way. now folders are displayed correctly,
but i cannot create new folders.

i also tried $rcmail_config['imap_delimiter'] = '.';
seems to have no effect.

$rcmail_config['imap_delimiter'] = '/';
now folders are displayed as INBOX.Trash and so on.

-----------------------
PROBLEM SOLVED
----------------------
$rcmail_config['imap_root'] = 'INBOX';
$rcmail_config['imap_delimiter'] = '.';

did the trick. now folders are displayed correctly. and i can create new folders.

tofinoguy

That did the trick. But I ended up with duplicate folders in each account (which showed up in RC as subfolders of Index). However, these were easy to delete. Thank you!

lbeachmike

Hi there -

I have been experiencing the same issue as described here and seem to have resolved the special folder association issue by following the recommendation of caplod, doing the following -

Quote$rcmail_config['imap_root'] = 'INBOX';
$rcmail_config['imap_delimiter'] = '.';

However, I am still stuck with the inability to create a new folder for certain users, and others work fine.

Any suggestions of what might be wrong, and what I can perhaps check/correct in the SQL tables for that user?

Thanks.

Mike