Roundcube Community Forum

Release Support => Pending Issues => Topic started by: daaron on May 04, 2010, 08:03:45 PM

Title: [0.4beta] Trash & Deleted Messages
Post by: daaron 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?
Title: [0.4beta] Trash & Deleted Messages
Post by: SKaero on May 05, 2010, 09:50:26 AM
Is there any thing in your error log?
Title: [0.4beta] Trash & Deleted Messages
Post by: daaron 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.
Title: [0.4beta] Trash & Deleted Messages
Post by: SKaero 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.
Title: [0.4beta] Trash & Deleted Messages
Post by: daaron 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?
Title: [0.4beta] Trash & Deleted Messages
Post by: daaron on May 10, 2010, 04:41:15 PM
Any suggestions on getting rid of the errant 'Deleted Messages' folder?
Title: [0.4beta] Trash & Deleted Messages
Post by: ABerglund 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');
Title: [0.4beta] Trash & Deleted Messages
Post by: daaron 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.?
Title: [0.4beta] Trash & Deleted Messages
Post by: ABerglund 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?
Title: [0.4beta] Trash & Deleted Messages
Post by: daaron on June 04, 2010, 01:18:32 AM
Not sure - anyone know where to look for IMAP settings on FreeBSD?:o
Title: [0.4beta] Trash & Deleted Messages
Post by: daaron 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!