RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > SVN Releases > Issues & Bugs > Resolved

For more information about the ads and why they're here, please see the FAQ
Reply
  #1  
Old 07-26-2006, 05:02 PM
Registered User
 
Join Date: Jul 2006
Posts: 2
Downloads: 0
Uploads: 0
Default Problem with inbox. (Solved)

Hi!
I really like roundcube and it's far better than other webmails .

Now to my problem, i have the latest snapshot rev 282 i configured it right and i login to my regular mail so far so good. But when i test to login with a newly created account just for testing i realized that the inbox folder doesn't exists (in the mailboxlist).

It exists on the folderpage in settings and it's unsubscribed but i can't change subscription, and yes i have changed the protection from TRUE to FALSE in config. This problem only appears when the user hasn't recieved any mail yet.

I have also tried to locate where the problem is with no result.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 07-31-2006, 03:23 PM
Registered User
 
Join Date: Jul 2006
Posts: 2
Downloads: 0
Uploads: 0
Default Re: Problem with inbox.

I Solved the problem by myself.

If somone else has this problem i post the solution:

open up roundcube/program/include/rcube_imap.inc

Search for: function _list_mailboxes

Replace the whole function with this:
Code:
 function _list_mailboxes($root='', $filter='*')
  {
  $a_defaults = $a_out = array();
  
  // get cached folder list  
  $a_mboxes = $this->get_cache('mailboxes');
  if (is_array($a_mboxes))
   return $a_mboxes;

  // retrieve list of folders from IMAP server
  $a_folders = iil_C_ListSubscribed($this->conn, $this->_mod_mailbox($root), $filter);
  
  if (!is_array($a_folders) || !sizeof($a_folders))
   $a_folders = array();

  // create Default folders if they do not exist
  global $CONFIG;

  foreach ($CONFIG['default_imap_folders'] as $folder)
   {
   if (!in_array_nocase($folder, $a_folders))
    {
    $this->create_mailbox($folder, TRUE);
    $this->subscribe($folder);
    }
   }

  $a_folders = iil_C_ListSubscribed($this->conn, $this->_mod_mailbox($root), $filter);
  $a_mailbox_cache = array();

  if (!in_array("INBOX", $a_folders)){
    array_unshift($a_folders, "INBOX");
	$this->subscribe("INBOX");
  }

  // write mailboxlist to cache
  $this->update_cache('mailboxes', $a_folders);
  
  return $a_folders;
  }
This forces the inbox to always be shown no matter what.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 07-31-2006, 06:11 PM
flosoft's Avatar
Administrator
 
Join Date: Jun 2006
Location: Brussels, Belgium
Posts: 349
Downloads: 1
Uploads: 0
Send a message via ICQ to flosoft Send a message via AIM to flosoft Send a message via MSN to flosoft
Default Re: Problem with inbox. (Solved)

Moving to resolved.
__________________
New VPS for just 9,99!
Flosoft.biz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

For more information about the ads and why they're here, please see the FAQ

All times are GMT. The time now is 12:18 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006-2008 RoundCube Webmail Community