[RCU] plugin configuration override and rpm

2012-11-10 Thread Jordi Llonch
Hello, I am using Fedora17 and a rpm version of roundcube. On this rpm packaging, configuration main.inc.php and db.inc.php are both stored in /etc/roundcubemail/ Also, I use the managesieve plugin and I have to modify the plugin port from 2000 to 4190 in the plugin configuration setting (/usr/s

Re: [RCU] plugin configuration override and rpm

2012-11-10 Thread Sébastien BLAISOT
Le 10/11/2012 20:31, Jordi Llonch a écrit : I am using Fedora17 and a rpm version of roundcube. [...] As the RPM package updates from time to time, the config.inc.php gets overridden. Hi, Probably the RPM you're using is not well designed. If a rpm has a file tagged as config file, it sho

Re: [RCU] plugin configuration override and rpm

2012-11-10 Thread roundcube
different config from managesieve port is only a part of dovecot config Le 2012-11-10 20:31, Jordi Llonch a écrit : Hello, I am using Fedora17 and a rpm version of roundcube. On this rpm packaging, configuration main.inc.php and db.inc.php are both stored in /etc/roundcubemail/ Also, I use th

Re: [RCU] plugin configuration override and rpm

2012-11-10 Thread Cor Bosman
On Nov 11, 2012, at 4:09 AM, roundcube wrote: > different config from managesieve port is only a part of dovecot config > > Le 2012-11-10 20:31, Jordi Llonch a écrit : >> Hello, >> >> I am using Fedora17 and a rpm version of roundcube. >> >> On this rpm packaging, configuration main.inc.php a

Re: [RCU] plugin configuration override and rpm

2012-11-11 Thread Jordi Llonch
Hello Cor, It is a good proposal. The solution will cause more processing involved for every webmail hit. I think the right approach should be the main.inc.php file to be able to read the configuration and if a key is set, not to be overriden by plugins config. Any better ideas or suggestions?

Re: [RCU] plugin configuration override and rpm

2012-11-11 Thread Cor Bosman
On Nov 11, 2012, at 9:05 AM, Jordi Llonch wrote: > Hello Cor, > > It is a good proposal. > > The solution will cause more processing involved for every webmail hit. > > I think the right approach should be the main.inc.php file to be able to read > the configuration and if a key is set, not

Re: [RCU] plugin configuration override and rpm

2012-11-11 Thread Jordi Llonch
Thanks Cor, I'll do the plugin. 2012/11/11 Cor Bosman > > On Nov 11, 2012, at 9:05 AM, Jordi Llonch wrote: > > > Hello Cor, > > > > It is a good proposal. > > > > The solution will cause more processing involved for every webmail hit. > > > > I think the right approach should be the main.inc.p

Re: [RCU] plugin configuration override and rpm

2012-11-11 Thread Cor Bosman
It shouldnt be so hard to fix the rpm. Normally the plugin comes with a config.php.dist file, and im sure the rpm creator wants to make sure the plugin is in a working state and so they added the actual config.php. That's fine. What they can do is make a post install script that checks if there