Roundcube Community Forum

Release Support => Older Versions => 0.1 Beta 1 => Topic started by: oslad on July 02, 2006, 07:56:06 AM

Title: How to show all folders by default?
Post by: oslad on July 02, 2006, 07:56:06 AM
How to show all folders by default?
Is there a option in main.inc.php or other place?

Thanks!
Title: Re: How to show all folders by default?
Post by: flosoft on July 02, 2006, 08:23:35 AM
What do you mean by show all folders by default? They are showed by default :S
Title: Re: How to show all folders by default?
Post by: oslad on July 03, 2006, 01:48:08 AM
Quote from: flosoft
What do you mean by show all folders by default? They are showed by default :S

im using cvs-20060413, by default, it's show Inbox only, every user need adjust the option in "settings >> folder" when first log in.

is these option value save to DB or cookie?
Title: Re: How to show all folders by default?
Post by: flosoft on July 03, 2006, 04:39:33 AM
Try to upgrade to a SVN Version.
There it works normally.
Title: Re: How to show all folders by default?
Post by: oslad on July 04, 2006, 02:00:33 AM
sorry, cvs-20060505 won't work correctly as cvs-20060413, every folder is empty!
Title: Re: How to show all folders by default?
Post by: redrose on July 04, 2006, 03:42:00 AM
HELLO,

if you want to show all the folders by default, you should do this:

edit the file : roundcubemail/program/include/main.inc
in line 464
else if ($CONFIG['auto_create_user'])  
 {
  $user_id = rcmail_create_user($user, $host);
  }

Just add these two statements befere $user_id = rcmail_create_user($user, $host);
$IMAP->create_mailbox($CONFIG['sent_mbox'], TRUE);
$IMAP->create_mailbox($CONFIG['trash_mbox'], TRUE);

it should look like this:
 else if ($CONFIG['auto_create_user'])
  {
  $IMAP->create_mailbox($CONFIG['sent_mbox'], TRUE);
  $IMAP->create_mailbox($CONFIG['trash_mbox'], TRUE);

  $user_id = rcmail_create_user($user, $host);
  }

If you do this, now any new user login will see the all folders by default but not an existing user.

That's it.

Best wishes. :)
Title: Re: How to show all folders by default?
Post by: oslad on July 04, 2006, 09:03:54 PM
Quote from: redrose
it should look like this:
 else if ($CONFIG['auto_create_user'])
  {
  $IMAP->create_mailbox($CONFIG['sent_mbox'], TRUE);
  $IMAP->create_mailbox($CONFIG['trash_mbox'], TRUE);

  $user_id = rcmail_create_user($user, $host);
  }

If you do this, now any new user login will see the all folders by default but not an existing user.

Thanks!
but it will only show "sent" and "trash" folders? i using webcyradm, and create user with "Sent","Draft","Trash","Junk" folders.
Title: Re: How to show all folders by default?
Post by: digitalslave on July 04, 2006, 11:58:25 PM
you can make any folders you wish just add another string with whatever name you want.
Title: Re: How to show all folders by default?
Post by: dracula on August 23, 2006, 03:17:20 PM
maybee he is meaning the same problem as I have.
I have quite some amount of folders but by default I am not subscribed to the folders.
I didn't find any seting that would allow me to show all folders not only subscribed ones.
and I realy don't want to sit in front of the folder screen and click an all folders to subscribe to them (I think there are more then 100)