Author Topic: Special folder associations (Trash, Sent, etc) no longer associated in 0.3 upgrade  (Read 7615 times)

Offline tofinoguy

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

Offline Julius Caesar

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 498
    • http://www.de-keizer.net/
Check the main.inc.php for the following settings:

Code: [Select]
// 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

Offline FleetCommand

  • Newbie
  • *
  • Posts: 2
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:

Code: [Select]
// 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');

Offline tofinoguy

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

Offline dano

  • Full Member
  • ***
  • Posts: 124
Try setting this instead
Code: [Select]
$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.

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
@ dano:
_inbox_ (without quotes) is not a constant. So your setting is equal with the default (null).
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline dano

  • Full Member
  • ***
  • Posts: 124
Rosali,

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

Offline tofinoguy

  • Jr. Member
  • **
  • Posts: 30
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.
« Last Edit: September 20, 2009, 05:50:23 PM by tofinoguy »

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Try $rcmail_config['imap_delimiter'] = '.'; or $rcmail_config['imap_delimiter'] = '/'; ...
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline caplod

  • Newbie
  • *
  • Posts: 5
problem solved
« Reply #9 on: September 22, 2009, 05:23:54 AM »
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.
« Last Edit: September 22, 2009, 05:44:39 AM by caplod »

Offline tofinoguy

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

Offline lbeachmike

  • Newbie
  • *
  • Posts: 6
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