A while ago, I changed the default sort order of the special folders in main.inc.php to (just because I'd like to have it this way):
$rcmail_config['default_folders'] = array('INBOX', 'Sent', 'Drafts', 'Trash', 'Junk');
This does work in 0.8.4. It also worked in 0.9-git-master, but it doesn't anymore.
The first day when I realized this was Nov 13th.
Any clue what the cause could be...?
Michael Heydekamp Co-Admin freexp.de Düsseldorf/Germany
On 12/11/2012 10:30 PM, Michael Heydekamp wrote:
A while ago, I changed the default sort order of the special folders in main.inc.php to (just because I'd like to have it this way):
$rcmail_config['default_folders'] = array('INBOX', 'Sent', 'Drafts', 'Trash', 'Junk');
This does work in 0.8.4. It also worked in 0.9-git-master, but it doesn't anymore.
The first day when I realized this was Nov 13th.
After you go to special folders settings in user preferences and click Save button, the folders are sorted in following (hardcoded) order: INBOX, drafts, sent, junk, trash.
Am 12.12.2012 20:48, schrieb A.L.E.C:
On 12/11/2012 10:30 PM, Michael Heydekamp wrote:
A while ago, I changed the default sort order of the special folders in main.inc.php to (just because I'd like to have it this way):
$rcmail_config['default_folders'] = array('INBOX', 'Sent', 'Drafts', 'Trash', 'Junk');
This does work in 0.8.4. It also worked in 0.9-git-master, but it doesn't anymore.
The first day when I realized this was Nov 13th.
After you go to special folders settings in user preferences and click Save button, the folders are sorted in following (hardcoded) order: INBOX, drafts, sent, junk, trash.
Before you wrote that, I got exactly this idea this morning and was just about to test it, but you have been quicker with your response. And in fact, I didn't click the save button in 0.8.4, but I did so in 0.9-git.
Damn. How can I remove this setting? (Looking at the MySQL section in webmin, the Squirrel user settings are a lot more admin-friendly to change than the Roundcube settings, which are apparently stored in just one string).
On Wed, Dec 12, 2012 at 9:01 PM, Michael Heydekamp listuser@freexp.de wrote:
Am 12.12.2012 20:48, schrieb A.L.E.C:
On 12/11/2012 10:30 PM, Michael Heydekamp wrote:
A while ago, I changed the default sort order of the special folders in main.inc.php to (just because I'd like to have it this way):
$rcmail_config['default_folders'] = array('INBOX', 'Sent', 'Drafts', 'Trash', 'Junk');
This does work in 0.8.4. It also worked in 0.9-git-master, but it doesn't anymore.
The first day when I realized this was Nov 13th.
After you go to special folders settings in user preferences and click Save button, the folders are sorted in following (hardcoded) order: INBOX, drafts, sent, junk, trash.
Before you wrote that, I got exactly this idea this morning and was just about to test it, but you have been quicker with your response. And in fact, I didn't click the save button in 0.8.4, but I did so in 0.9-git.
Damn. How can I remove this setting? (Looking at the MySQL section in webmin, the Squirrel user settings are a lot more admin-friendly to change than the Roundcube settings, which are apparently stored in just one string).
We recently added a shell script that will help you with this. See bin/moduserprefs.sh. Run it from the Roundcube root directory:
bin/moduserprefs.sh --user=<your-user-id> default_folders --delete
~Thomas
Am 13.12.2012 14:07, schrieb Thomas Bruederli:
On Wed, Dec 12, 2012 at 9:01 PM, Michael Heydekamp listuser@freexp.de wrote:
Damn. How can I remove this setting? (Looking at the MySQL section in webmin, the Squirrel user settings are a lot more admin-friendly to change than the Roundcube settings, which are apparently stored in just one string).
We recently added a shell script that will help you with this. See bin/moduserprefs.sh.
Yeah, I noticed that. It's just a bit hard to recall the precise syntax from the top of my head. A documentation (within Roundcube or somewhere else) would help. Currently it's only this list where this script is mentioned and explained, right?
Run it from the Roundcube root directory:
bin/moduserprefs.sh --user=<your-user-id> default_folders --delete
Hmmm... Are the lower-than and greater-than characters part of the command or not (pretty unlikely that they are, as "<" and ">" are normally used for redirection)? Anyway, I tried both.
First attempt:
bin/moduserprefs.sh --user=michael default_folders --delete
Result:
PHP Parse error: syntax error, unexpected ':' in /var/www/webmail5/bin/moduserprefs.sh on line 34
Second attempt:
bin/moduserprefs.sh --user=<michael> default_folders --delete
Result:
bash: michael: Datei oder Verzeichnis nicht gefunden
I seem to have a talent to always hit a brick wall... ;)
Michael Heydekamp Co-Admin freexp.de Düsseldorf/Germany
Hi,
First attempt:
bin/moduserprefs.sh --user=michael default_folders --delete
this is the right syntax.
Result:
PHP Parse error: syntax error, unexpected ':' in /var/www/webmail5/bin/moduserprefs.sh on line 34
Unfortunately, there is a syntax error in line 34 (colon missing). I created a PR for this: https://github.com/roundcube/roundcubemail/pull/52
Regards, Christian
On Thu, Dec 13, 2012 at 9:59 PM, Michael Heydekamp listuser@freexp.de wrote:
Am 13.12.2012 14:07, schrieb Thomas Bruederli:
On Wed, Dec 12, 2012 at 9:01 PM, Michael Heydekamp listuser@freexp.de wrote:
Damn. How can I remove this setting? (Looking at the MySQL section in webmin, the Squirrel user settings are a lot more admin-friendly to change than the Roundcube settings, which are apparently stored in just one string).
We recently added a shell script that will help you with this. See bin/moduserprefs.sh.
Yeah, I noticed that. It's just a bit hard to recall the precise syntax from the top of my head. A documentation (within Roundcube or somewhere else) would help. Currently it's only this list where this script is mentioned and explained, right?
Yes. The current git-master hasn't been released so far and thus it wasn't mentioned in any announcements.
Run it from the Roundcube root directory:
bin/moduserprefs.sh --user=<your-user-id> default_folders --delete
Hmmm... Are the lower-than and greater-than characters part of the command or not (pretty unlikely that they are, as "<" and ">" are normally used for redirection)? Anyway, I tried both.
Usually this brackets denote something that you have to insert.
First attempt:
bin/moduserprefs.sh --user=michael default_folders --delete
That's the right approach but you have to enter the numeric ID of your user record from the local database. The script is very low-tech and doesn't do a username lookup.
Result:
PHP Parse error: syntax error, unexpected ':' in /var/www/webmail5/bin/moduserprefs.sh on line 34
Sorry for that. The syntax error has been resolved meanwhile.
~Thomas
Am 14.12.2012 17:05, schrieb Thomas Bruederli:
On Thu, Dec 13, 2012 at 9:59 PM, Michael Heydekamp listuser@freexp.de wrote:
Am 13.12.2012 14:07, schrieb Thomas Bruederli:
Run it from the Roundcube root directory:
bin/moduserprefs.sh --user=<your-user-id> default_folders --delete
First attempt:
[...]
bin/moduserprefs.sh --user=michael default_folders --delete
That's the right approach but you have to enter the numeric ID of your user record from the local database. The script is very low-tech and doesn't do a username lookup.
Ah! So I tried:
bin/moduserprefs.sh --user=201 default_folders --delete
Still no change in terms of sort order.
Result:
PHP Parse error: syntax error, unexpected ':' in /var/www/webmail5/bin/moduserprefs.sh on line 34
Sorry for that. The syntax error has been resolved meanwhile.
Yes, it looks so, at least I don't get an error anymore. But now I don't get any response whatsoever, and the command has nil effect.
Am 20.12.2012 01:19, schrieb Michael Heydekamp:
Am 14.12.2012 17:05, schrieb Thomas Bruederli:
That's the right approach but you have to enter the numeric ID of your user record from the local database. The script is very low-tech and doesn't do a username lookup.
Ah! So I tried:
bin/moduserprefs.sh --user=201 default_folders --delete
Still no change in terms of sort order.
Michael Heydekamp Co-Admin freexp.de Düsseldorf/Germany
Am 07.01.2013 00:15, schrieb Michael Heydekamp:
Am 20.12.2012 01:19, schrieb Michael Heydekamp:
Am 14.12.2012 17:05, schrieb Thomas Bruederli:
That's the right approach but you have to enter the numeric ID of your user record from the local database. The script is very low-tech and doesn't do a username lookup.
Ah! So I tried:
bin/moduserprefs.sh --user=201 default_folders --delete
Still no change in terms of sort order.
Command still doesn't have any effect. Any hint?
Michael Heydekamp Co-Admin freexp.de Düsseldorf/Germany
Michael Heydekamp wrote:
Am 07.01.2013 00:15, schrieb Michael Heydekamp:
Am 20.12.2012 01:19, schrieb Michael Heydekamp:
Am 14.12.2012 17:05, schrieb Thomas Bruederli:
That's the right approach but you have to enter the numeric ID of your user record from the local database. The script is very low-tech and doesn't do a username lookup.
Ah! So I tried:
bin/moduserprefs.sh --user=201 default_folders --delete
Still no change in terms of sort order.
Command still doesn't have any effect. Any hint?
Is really nobody able to help me with this...?
OK, that indeed was a nasty one :-)
If you have imap_cache enabled in your Roundcube installation, the list of folders is cached for performance reasons. Now, even if the default_folders pref was removed, the folder list is still read from cache where the old sort order was active.
In order to fix this finally for your, you also have to clear the cache or at least the entry holding the mailboxlist:
Run the following SQL command on your Roundcube database:
DELETE FROM cache WHERE cache_key LIKE 'IMAP.mailboxes%' AND user_id=201;
I hope this now solves your issue.
Regards, Thomas