Author Topic: sieverules logging out  (Read 7159 times)

Offline madsurgeon

  • Newbie
  • *
  • Posts: 7
sieverules logging out
« on: March 10, 2010, 04:06:07 AM »
Hi there

I have installed the sieverules plugin and adapted the config.
It correctly shows the "Filters" tab and shows the installed filters from the former managesieve pluging.
However, when I click on any of the filters, roundcube logs out and I presents the login screen.
It also happens without clicking on any of the filters. Just waiting with the Filters tab open is enough. The plugin seems to logout roundcube without me doing anything.

What can I do about this?

Thanks

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
sieverules logging out
« Reply #1 on: March 10, 2010, 05:40:59 AM »
Please check your error log I think you will see something about session. In this case your RC database is incorrectly setup it should use UTF-8 charset.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline madsurgeon

  • Newbie
  • *
  • Posts: 7
sieverules logging out
« Reply #2 on: March 10, 2010, 03:01:03 PM »
What I can see in the rrors log is this:

[10-Mar-2010 10:15:21] PHP Fatal error:  Call to a member function connect() on a non-object in /usr/share/roundcube/program/include/rcmail.php on line 408

However, I am not sure if it has anything to do with the described problem, since this error occurs only twice in the logs, whereas I have tested the logging out many more times.

And the behaviour remains the same also when I change

$rcmail_config['sieverules_folder_encoding'] = null;

to

$rcmail_config['sieverules_folder_encoding'] = 'UTF7-IMAP';

in config.inc.php .
« Last Edit: March 10, 2010, 03:02:25 PM by madsurgeon »

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
sieverules logging out
« Reply #3 on: March 11, 2010, 03:24:02 AM »
please double check your db to make sure that the tables use utf8 collation. also what version of rc are you running? and what version of sieverules are you running? thanks.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline madsurgeon

  • Newbie
  • *
  • Posts: 7
changed db
« Reply #4 on: March 21, 2010, 11:39:16 AM »
Ok, now I've got around to change the db to utf8 - but still the same problem.

/etc/roundcube/debian-db.php:
$dbuser='roundcube';
$dbpass='xxxxxxxx';
$basepath='';
$dbname='roundcubemail';
$dbserver='';
$dbport='';
$dbtype='pgsql';

And this is my db:
     Name      |   Owner    | Encoding  | Collation | Ctype |   Access privileges  
 roundcubemail | roundcube  | UTF8      | C         | C     |


I have also enabled all debug options but when roundcube crashes still see only:
[21-Mar-2010 16:26:58] PHP Fatal error:  Call to a member function connect() on a non-object in /usr/share/roundcube/program/include/rcmail.php on line 408

The sql log shows at the time:
[21-Mar-2010 16:26:58 +0100]: query(1): SELECT vars, ip, EXTRACT (EPOCH FROM changed) AS changed
     FROM session
     WHERE  sess_id='9ce09cc682ae44c7ca4c7192f5b32a24'
[21-Mar-2010 16:26:58 +0100]: query(1): SELECT * FROM users WHERE  user_id='1'

I am running roundcube 0.3.1 and
sieverules.php: * @version 1.6
Net_Sieve.php:* @version 1.2.0

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
sieverules logging out
« Reply #5 on: March 23, 2010, 04:09:04 PM »
hmm i think may be misunderstood your problem could you please check in the file rcube_sieve.php in the plugin folder and change private $cache = true to false and see if that make any difference, this controls the only thing that i know of which causes this problem so if it makes no difference them i'm afraid i'm out of ideas.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline madsurgeon

  • Newbie
  • *
  • Posts: 7
sieverules logging out
« Reply #6 on: March 24, 2010, 06:13:07 AM »
Well, I've tried that now and roundcube does not logout anymore, but it freezes :-(
So I am going to continue using the old managesieve plugin...
Even though yours seems to be much better.