Author Topic: How to show all folders by default?  (Read 35829 times)

oslad

  • Guest
How to show all folders by default?
« 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!

Offline flosoft

  • Sr. Member
  • ****
  • Posts: 349
    • http://flosoft.biz
Re: How to show all folders by default?
« Reply #1 on: July 02, 2006, 08:23:35 AM »
What do you mean by show all folders by default? They are showed by default :S

oslad

  • Guest
Re: How to show all folders by default?
« Reply #2 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?

Offline flosoft

  • Sr. Member
  • ****
  • Posts: 349
    • http://flosoft.biz
Re: How to show all folders by default?
« Reply #3 on: July 03, 2006, 04:39:33 AM »
Try to upgrade to a SVN Version.
There it works normally.

oslad

  • Guest
Re: How to show all folders by default?
« Reply #4 on: July 04, 2006, 02:00:33 AM »
sorry, cvs-20060505 won't work correctly as cvs-20060413, every folder is empty!

Offline redrose

  • Newbie
  • *
  • Posts: 2
Re: How to show all folders by default?
« Reply #5 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. :)

oslad

  • Guest
Re: How to show all folders by default?
« Reply #6 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.

Offline digitalslave

  • Jr. Member
  • **
  • Posts: 37
Re: How to show all folders by default?
« Reply #7 on: July 04, 2006, 11:58:25 PM »
you can make any folders you wish just add another string with whatever name you want.

Offline dracula

  • Newbie
  • *
  • Posts: 6
Re: How to show all folders by default?
« Reply #8 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)