Author Topic: Set folders for new users?  (Read 3353 times)

Offline Fossy

  • Newbie
  • *
  • Posts: 2
Set folders for new users?
« on: November 23, 2011, 01:00:38 PM »
Hello:

I have installed the last version of RoundCube, and in my main.inc.php config I have configured this:

$rcmail_config['drafts_mbox'] = 'Borrador';
$rcmail_config['junk_mbox'] = 'No deseado';
$rcmail_config['sent_mbox'] = 'Enviados';
$rcmail_config['trash_mbox'] = 'Papelera';

$rcmail_config['default_imap_folders'] = array('INBOX', 'Borrador', 'Enviados', 'No deseado', 'Papelera');

$rcmail_config['create_default_folders'] = true;

I want that for the first time that new users access to webmail it create that folders automatically, but I have test it with 3 new users and I only have the Inbox folder...

In webmail configuration "Especial Folders" I have (my language is spanish):

Borradores ---
Enviados ---
Basura ---
Papelera ---

In both dropdown box items I have only "---" and I can't create especial folders.

Any suggestions?.

Thanks in advance.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Set folders for new users?
« Reply #1 on: November 24, 2011, 12:09:59 AM »
Your mail server may require a prefix on the folders like INBOX.folder-name, to set the special folders first create them in the folders section of RoundCube.

Offline chrigiboy

  • Newbie
  • *
  • Posts: 3
Set folders for new users?
« Reply #2 on: November 24, 2011, 04:52:27 AM »
Hello,
i've got the same problem. Since i have updated from 0.3 to 0.6 the default imap folders will not be created. I can't found any information in the errorlogfile.
We have Courier, i try many hours, but nothing helps. I can login, logoff how much i want, the folders will not created.

This is what i try:
$rcmail_config['default_imap_folders'] = array('INBOX', 'INBOX.Drafts', 'INBOX.Sent', 'INBOX.Junk', 'INBOX.Trash');
$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
$rcmail_config['imap_root'] = null;
$rcmail_config['imap_root'] = 'INBOX.';
« Last Edit: November 24, 2011, 05:13:18 AM by chrigiboy »

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Set folders for new users?
« Reply #3 on: November 24, 2011, 06:21:48 AM »
0.6 creates default folders only on first login.

Offline Fossy

  • Newbie
  • *
  • Posts: 2
Set folders for new users?
« Reply #4 on: November 24, 2011, 10:17:08 AM »
Ok, I have courier IMAP and this worked for me:

$rcmail_config['drafts_mbox'] = 'INBOX.Drafts';
$rcmail_config['junk_mbox'] = 'INBOX.Junk';
$rcmail_config['sent_mbox'] = 'INBOX.Sent';
$rcmail_config['trash_mbox'] = 'INBOX.Trash';

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

$rcmail_config['create_default_folders'] = true;

And that's all :)..., now NEW USERS that access to webmail the first time automatically create all folders. I don't know how can create folders for users that is not the first time that access to webmail, but in my case the question is solved because I have a new electronic mail system, but I want to know how create folders for old users (for future updates).

Thanks!!

Offline chrigiboy

  • Newbie
  • *
  • Posts: 3
Set folders for new users?
« Reply #5 on: November 24, 2011, 10:39:20 AM »
Hello,
same problem here:
I want to know, how can i activate to create folders for existing users, like 0.3?