Author Topic: [0.4beta] Trash & Deleted Messages  (Read 4923 times)

Offline daaron

  • Newbie
  • *
  • Posts: 7
[0.4beta] Trash & Deleted Messages
« on: May 04, 2010, 08:03:45 PM »
I've been using Roundcube for some time; just upgraded to 0.4beta. This problem is not new with the latest release.

For each user, there is both a 'Trash' and a 'Deleted Messages' folder. I can set user preferences to have all deleted messages sent to the Trash folder, but the 'Deleted Messages' folder remains.

In earlier Roundcube versions, I could open the 'Folders' tab under Settings, but there was no provision for deleting 'Deleted Messages.' In 0.4beta, the 'Folders' tab won't open (the browser just waits an eternity loading the page).

Any suggestions?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,878
    • SKaero - Custom Roundcube development
[0.4beta] Trash & Deleted Messages
« Reply #1 on: May 05, 2010, 09:50:26 AM »
Is there any thing in your error log?

Offline daaron

  • Newbie
  • *
  • Posts: 7
[0.4beta] Trash & Deleted Messages
« Reply #2 on: May 05, 2010, 12:39:05 PM »
Quote from: skaero;27260
Is there any thing in your error log?


Yes, the following error is repeated over and over:

PHP Warning:  date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /usr/local/www/roundcube/program/include/main.inc on line 1104

Here's my timezone setting in main.inc.php:

$rcmail_config['timezone'] = 'America/Los_Angeles';

And here's my timezone setting in php.ini:

date.timezone = America/Los_Angeles

One more thing - when I try to open the Folders tab on the Settings page, the error log gets immense - 8MB in about 20 seconds. Looks like an infinite loop to me.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,878
    • SKaero - Custom Roundcube development
[0.4beta] Trash & Deleted Messages
« Reply #3 on: May 05, 2010, 12:45:30 PM »
Try adding:
Code: [Select]
php_value date.timezone = 'America/Los_Angeles';
To your .htaccess in RoundCube root directory.

Offline daaron

  • Newbie
  • *
  • Posts: 7
[0.4beta] Trash & Deleted Messages
« Reply #4 on: May 05, 2010, 02:24:22 PM »
Quote from: skaero;27267
Try adding... To your .htaccess in RoundCube root directory.


Thanks, that solved the timezone errors!

I also checked the imap log, and found that roundcube was looking through all the folders in my home directory (not just within the ~/mail folder). I tried moving the bulk of the data out, and now the Folders tab works again. Whew.

But the original problem I wrote about still remains: there's both a Trash folder and a Deleted Messages folder on the main Roundcube page. Trash shows up under the Folders tab, but Deleted Messages does not.

The errors log is now empty. But the imap log includes one mention of Deleted Messages:

Code: [Select]

[05-May-2010 11:20:05 -0700]: S: * LSUB () "/" "Deleted Messages"
[05-May-2010 11:20:05 -0700]: S: * LSUB () "/" Trash
[05-May-2010 11:20:05 -0700]: S: * LSUB () "/" Sent
[05-May-2010 11:20:05 -0700]: S: * LSUB () "/" Drafts


Note the quotation marks around "Deleted Messages" only. What's happening here?

Offline daaron

  • Newbie
  • *
  • Posts: 7
[0.4beta] Trash & Deleted Messages
« Reply #5 on: May 10, 2010, 04:41:15 PM »
Any suggestions on getting rid of the errant 'Deleted Messages' folder?

Offline ABerglund

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 673
[0.4beta] Trash & Deleted Messages
« Reply #6 on: May 10, 2010, 05:54:42 PM »
The quotes around "Deleted Messages" just means there is a space in the folder name. My guess is that some other IMAP client or the IMAP server itself has created the errant folder. I'm assuming that you have the following params set correctly (matching the IMAP server's schema) in main.inc.php:
Code: [Select]
// 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', 'Spam', 'Trash');
« Last Edit: May 10, 2010, 06:58:50 PM by ABerglund »
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

Offline daaron

  • Newbie
  • *
  • Posts: 7
[0.4beta] Trash & Deleted Messages
« Reply #7 on: May 10, 2010, 06:55:32 PM »
Quote from: ABerglund;27362
The quotes around "Deleted Messages" just means there is a space in the folder name.


Ahh, of course.

Quote from: ABerglund;27362
I'm assuming that you have the following params set correctly (matching the IMAP server's schema) in main.inc.php:


Yup - just as shown.

Quote from: ABerglund;27362
My guess is that some other IMAP client or the IMAP server itself has created the eearnt folder.


Where do I look for this sort of thing?  There's no actual file or directory by that name anywhere on the drive.

Also, is roundcube (or perhaps the IMAP server) supposed to be using each users home directory, as opposed to the ~/mail directory to store Trash, Sent, etc.?

Offline ABerglund

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 673
[0.4beta] Trash & Deleted Messages
« Reply #8 on: May 10, 2010, 07:00:24 PM »
Quote from: daaron;27363

Where do I look for this sort of thing?  There's no actual file or directory by that name anywhere on the drive.

Also, is roundcube (or perhaps the IMAP server) supposed to be using each users home directory, as opposed to the ~/mail directory to store Trash, Sent, etc.?
This depends on the IMAP server, not part of Roundcube's set up. If you connect to the IMAP server using a different mail client, what do you see?
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

Offline daaron

  • Newbie
  • *
  • Posts: 7
[0.4beta] Trash & Deleted Messages
« Reply #9 on: June 04, 2010, 01:18:32 AM »
Not sure - anyone know where to look for IMAP settings on FreeBSD?:o

Offline daaron

  • Newbie
  • *
  • Posts: 7
[0.4beta] Trash & Deleted Messages
« Reply #10 on: July 16, 2010, 10:48:54 PM »
For anyone else having the same problem, I have solved it on my server.  There were two culprits:

1. The imap_root variable in main.inc.php is set to null by default. I changed it to:

Quote
$rcmail_config['imap_root'] = 'mail/';


2. Next, there's a .mailboxlist file in each user's root directory; I just edited it to remove the unwanted entry.

That's it!