On Sat, 5 Dec 2015 10:50:03 +0100
Carsten Schoenert <[email protected]> wrote:


> 
> You trying to keep specific Icedove settings modified by a extra file in
> 
>   /etc/icedove/pref/
> 
> with a locking preference.
> 
> http://kb.mozillazine.org/Locking_preferences
> 
> I'm not sure if that is what you are really wanted to do.

No, not really. All the preferences I use are defaultPrefs, not lockPrefs.

But as far as I understand it, there is a difference between a .js and a .cfg 
file.
.cfg files allow special commands to get config values from, e.g., an LDAP 
database
(called the  "Pref API" according to
  http://web.mit.edu/~thunderbird/www/maintainers/autoconfig.html )

This seems to be quite poorly documented. 
All I know about it is from web sites like 
  http://web.mit.edu/~thunderbird/www/maintainers/autoconfig.html
  
https://developer.mozilla.org/en-US/docs/MCD%2C_Mission_Control_Desktop_AKA_AutoConfig
  https://github.com/interlegis/puppet-thunderbird/tree/master/templates
But it is quite useful in a centrally administrated environment.
You can get our mathmail.cfg file for the next few days from
   http://www.math.uni-leipzig.de/~hellmund/mathmail.cfg
It takes the userid from the environment, makes a LDAP lookup
of the full name and the mail address for this userid and configures 
the mail  account. It works fine, new users on our Institute's network of
debian machines only have to enter their password at the first start of icedove 
and 
everything works. 



> And yes, exact this handling of the a additional default configuration
> file has changed somewhere on the way to version 38.
> 
> With strace you will see that nevertheless you want to adjust a specific
> path to the global configuration file Icedove will always search the
> file in the main installation folder.
> 
> > ...
> >     pref('general.config.filename', 'defaults/syspref/mathmail.cfg');
> > ...

Exactly. So the question is: is this use case worth an additional Debian patch
so that the path is replaced/amended by /etc/icedove/pref/ ?

I did an "apt-get source icedove" and poked into it, but this is well over my
head. Too much levels of complexity...

> 
> > open("/usr/lib/icedove/mathmail.cfg", O_RDONLY) = -1 ENOENT (No such file 
> > or directory)
> I don't know the content of your mathmail.cfg but if you want to set
> some specific settings for all Icedove users then put all of them in the
> file /etc/icedove/pref/icedove.js or a own file instead like intended
> with the file autoconf.js.

I tried putting all the stuff from my .cfg file to icedove.js It doesn't work.
>
> 
> Otherwise you have to symlink the file to /etc/icedove/pref/ every time
> you update the installation, or rebuild own packages.
> 

I wonder if a 
     dpkg-divert /usr/lib/icedove/mathmail.cfg
is enough to protect the file. 

Regards, Meik


-- 
Meik Hellmund <[email protected]>

Reply via email to