Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: brianjmurrell on May 16, 2024, 01:30:55 PM

Title: Not using managesieve_host from managesieve.inc.php
Post by: brianjmurrell on May 16, 2024, 01:30:55 PM
I have the following set in my managesieve.inc.php:

$config['managesieve_host'] = 'tls://mail.example.com';


but the sieve plugin for RC continues to try to connect to localhost, as if the above configuration item were not set.

How do I go about debugging why this would be happening?  Indeed I have confirmed with some debug printing that:

    public function connect($username, $password)
    {
        // Get connection parameters
        $host = $this->rc->config->get('managesieve_host', 'localhost');


is indeed setting $host to localhost.
Title: Re: Not using managesieve_host from managesieve.inc.php
Post by: JohnDoh on May 16, 2024, 02:50:12 PM
my guess is a permissions issue on the config file. you asked for a place to debug try this function https://github.com/roundcube/roundcubemail/blob/master/program/lib/Roundcube/rcube_plugin.php#L149 which loads config files for plugins.