Re: [SOGo] Integrator Question re: adding prefs to site.js?

2014-06-23 Thread Tanstaafl

On 6/23/2014 4:44 PM, Ludovic Marcotte  wrote:

On 2014-06-23, 4:30 PM, Charles Marcus wrote:

For example, how would I specify:

user_pref("mail.addr_book.quicksearchquery.format",
"?(or(Company,c,@V)(PrimaryEmail,c,@V)(DisplayName,c,@V)(FirstName,c,@V)(LastName,c,@V))");



force_char_pref("mail.addr_book.quicksearchquery.format",
"?(or(Company,c,@V)(PrimaryEmail,c,@V)(DisplayName,c,@V)(FirstName,c,@V)(LastName,c,@V))");


Thanks


or

user_pref("browser.cache.disk.capacity", 40960);



force_int_pref("browser.cache.disk.capacity", 40960);


Lol - thx - dunno what I was thinking (40960 is still an integer)...
--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Integrator Question re: adding prefs to site.js?

2014-06-23 Thread Ludovic Marcotte

On 2014-06-23, 4:30 PM, Charles Marcus wrote:

For example, how would I specify:

user_pref("mail.addr_book.quicksearchquery.format", 
"?(or(Company,c,@V)(PrimaryEmail,c,@V)(DisplayName,c,@V)(FirstName,c,@V)(LastName,c,@V))");


force_char_pref("mail.addr_book.quicksearchquery.format", 
"?(or(Company,c,@V)(PrimaryEmail,c,@V)(DisplayName,c,@V)(FirstName,c,@V)(LastName,c,@V))");

or

user_pref("browser.cache.disk.capacity", 40960);



force_int_pref("browser.cache.disk.capacity", 40960);

Cheers,

--
Ludovic Marcotte
lmarco...@inverse.ca  ::  +1.514.755.3630  ::  http://inverse.ca
Inverse inc. :: Leaders behind SOGo (http://sogo.nu) and PacketFence 
(http://packetfence.org)

--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Integrator Question re: adding prefs to site.js?

2014-06-23 Thread Charles Marcus

On 6/10/2014 1:22 PM, Ludovic Marcotte  wrote:

site.js is use for 'initial preference values'.

This is documented in 
http://www.sogo.nu/files/docs/SOGo%20Mozilla%20Thunderbird%20Configuration.pdf 
:


"Settings that pushed are pushed *during initial configuration* are 
controlled by the

./defaults/preferences/site.js fle from SOGo Integrator."

"Preferences that *are forced upon every restart* of Thunderbird are 
controlled from the
./chrome/content/general/custom-preferences.js confguration file." 


Thanks Ludo - working on implementing this now, but...

How do I specify values that are neither integers (assuming 'int' stands 
for 'integer') or boolean (true/false)?


For example, how would I specify:

user_pref("mail.addr_book.quicksearchquery.format", 
"?(or(Company,c,@V)(PrimaryEmail,c,@V)(DisplayName,c,@V)(FirstName,c,@V)(LastName,c,@V))");


or

user_pref("browser.cache.disk.capacity", 40960);

Just use force_bool_pref?

Thanks,


Charles
--
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] Integrator Question re: adding prefs to site.js?

2014-06-10 Thread Charles Marcus

On 6/10/2014 1:22 PM, Ludovic Marcotte  wrote:

On 2014-06-10, 12:52 PM, Charles Marcus wrote:
Ludo? Is it supposed to work? 

If you want to force prefs, you must use:

chrome/content/general/custom-preferences.js

site.js is use for 'initial preference values'.

This is documented in 
http://www.sogo.nu/files/docs/SOGo%20Mozilla%20Thunderbird%20Configuration.pdf 
:


"Settings that pushed are pushed *during initial configuration* are 
controlled by the

./defaults/preferences/site.js fle from SOGo Integrator."

"Preferences that *are forced upon every restart* of Thunderbird are 
controlled from the

./chrome/content/general/custom-preferences.js confguration file."


Ah, missed that... thanks Ludovic!


Best regards,

Charles
--
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] Integrator Question re: adding prefs to site.js?

2014-06-10 Thread Márcio Merlone


Em 10-06-2014 07:27, Charles Marcus escreveu:

Anyone? It is a simple/straight forward enough question.

I use this on my site.js:

cat << EOF >> defaults/preferences/site.js
pref("network.dns.disableIPv6",true);
pref("network.enableIDN",false);
pref("network.enablePad",true);
pref("update_notifications.enabled",false);
pref("extensions.update.enabled",false);
pref("mailnews.start_page.override_url",'http://news.local');
pref("mailnews.start_page.url",'http://news.local');
pref("mail.server.default.check_all_folders_for_new",true);
pref("mail.server.server1.spamLevel", 0);
pref("mail.server.default.spamLevel", 0);
pref("mail.chat.enabled",false);
lockPref("app.update.auto", false);
lockPref("app.update.enabled", false);
lockPref("autoupdate.enabled",false);
defaultPref("calendar.timezone.local",'Amercia/Sao_Paulo');
EOF

Haven't yet checked if all got applied or if doing the right way but 
seems to work.




Thanks...

On 6/8/2014 9:47 AM, Charles Marcus  wrote:

Hi all,

My goal is to simply prevent Thunderbird from auto-updating 
Lightning, while allowing all other extensions to continue to 
auto-update, and I've figured out how to do this, by simply adding 
the following pref to the user.js file in each users Thunderbird 
profile folder:


user_pref("extensions.{e2fda1a4-762b-4020-b5ad-a41df1933103}.update.enabled", 
false);


My question is - can I simply add this into the site.js file in the 
Integrator extension as:


user_pref("extensions.{e2fda1a4-762b-4020-b5ad-a41df1933103}.update.enabled", 
false);


and accomplish the same thing?

Or, would I need to change 'user_pref' to just 'pref' (like the other 
entries already in there), like this:


pref("extensions.{e2fda1a4-762b-4020-b5ad-a41df1933103}.update.enabled", 
false);


?

Last - can I push out other config options that I am setting in the 
user.js file in the same way, thus doing away completely with the 
user.js file, quickly and easily pushing out pref changes this way?


--
*Marcio Merlone*
--
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] Integrator Question re: adding prefs to site.js?

2014-06-10 Thread Sean M. Pappalardo



On 06/10/2014 09:52 AM, Charles Marcus wrote:

It would be really nice to be able to do away with the user.js file
(that I have to manually keep updated on each users system) and just
apply these mods in the site.js file...


You might want to ask this on Mozilla's Thunderbird Enterprise list: 
https://wiki.mozilla.org/Thunderbird/Enterprise


Sincerely,
Sean M. Pappalardo
Sr. Networks Engineer
Renegade Technologies
spappala...@renegadetech.com
Office: (630) 631-6188
http://www.renegadetech.com



smime.p7s
Description: S/MIME Cryptographic Signature


Re: [SOGo] Integrator Question re: adding prefs to site.js?

2014-06-10 Thread Ludovic Marcotte

On 2014-06-10, 12:52 PM, Charles Marcus wrote:
Ludo? Is it supposed to work? 

If you want to force prefs, you must use:

chrome/content/general/custom-preferences.js

site.js is use for 'initial preference values'.

This is documented in 
http://www.sogo.nu/files/docs/SOGo%20Mozilla%20Thunderbird%20Configuration.pdf 
:


"Settings that pushed are pushed *during initial configuration* are 
controlled by the

./defaults/preferences/site.js fle from SOGo Integrator."

"Preferences that *are forced upon every restart* of Thunderbird are 
controlled from the

./chrome/content/general/custom-preferences.js confguration file."

--
Ludovic Marcotte
lmarco...@inverse.ca  ::  +1.514.755.3630  ::  http://inverse.ca
Inverse inc. :: Leaders behind SOGo (http://sogo.nu) and PacketFence 
(http://packetfence.org)

--
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] Integrator Question re: adding prefs to site.js?

2014-06-10 Thread Charles Marcus
Well, figured I may as well give it a try, and apparently this does not 
work.


Ludo? Is it supposed to work?

It would be really nice to be able to do away with the user.js file 
(that I have to manually keep updated on each users system) and just 
apply these mods in the site.js file...



On 6/10/2014 6:27 AM, Charles Marcus  wrote:

Anyone? It is a simple/straight forward enough question.

Thanks...

On 6/8/2014 9:47 AM, Charles Marcus  wrote:

Hi all,

My goal is to simply prevent Thunderbird from auto-updating 
Lightning, while allowing all other extensions to continue to 
auto-update, and I've figured out how to do this, by simply adding 
the following pref to the user.js file in each users Thunderbird 
profile folder:


user_pref("extensions.{e2fda1a4-762b-4020-b5ad-a41df1933103}.update.enabled", 
false);


My question is - can I simply add this into the site.js file in the 
Integrator extension as:


user_pref("extensions.{e2fda1a4-762b-4020-b5ad-a41df1933103}.update.enabled", 
false);


and accomplish the same thing?

Or, would I need to change 'user_pref' to just 'pref' (like the other 
entries already in there), like this:


pref("extensions.{e2fda1a4-762b-4020-b5ad-a41df1933103}.update.enabled", 
false);


?

Last - can I push out other config options that I am setting in the 
user.js file in the same way, thus doing away completely with the 
user.js file, quickly and easily pushing out pref changes this way?


Thanks!

Charles




Best regards,

Charles





Best regards,

Charles Marcus
I.T. Director
Media Brokers International, Inc.
678.514.6224 | 678.514.6299 fax

--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Integrator Question re: adding prefs to site.js?

2014-06-10 Thread Charles Marcus

Anyone? It is a simple/straight forward enough question.

Thanks...

On 6/8/2014 9:47 AM, Charles Marcus  wrote:

Hi all,

My goal is to simply prevent Thunderbird from auto-updating Lightning, 
while allowing all other extensions to continue to auto-update, and 
I've figured out how to do this, by simply adding the following pref 
to the user.js file in each users Thunderbird profile folder:


user_pref("extensions.{e2fda1a4-762b-4020-b5ad-a41df1933103}.update.enabled", 
false);


My question is - can I simply add this into the site.js file in the 
Integrator extension as:


user_pref("extensions.{e2fda1a4-762b-4020-b5ad-a41df1933103}.update.enabled", 
false);


and accomplish the same thing?

Or, would I need to change 'user_pref' to just 'pref' (like the other 
entries already in there), like this:


pref("extensions.{e2fda1a4-762b-4020-b5ad-a41df1933103}.update.enabled", 
false);


?

Last - can I push out other config options that I am setting in the 
user.js file in the same way, thus doing away completely with the 
user.js file, quickly and easily pushing out pref changes this way?


Thanks!

Charles




Best regards,

Charles

--
users@sogo.nu
https://inverse.ca/sogo/lists


[SOGo] Integrator Question re: adding prefs to site.js?

2014-06-08 Thread Charles Marcus

Hi all,

My goal is to simply prevent Thunderbird from auto-updating Lightning, 
while allowing all other extensions to continue to auto-update, and I've 
figured out how to do this, by simply adding the following pref to the 
user.js file in each users Thunderbird profile folder:


user_pref("extensions.{e2fda1a4-762b-4020-b5ad-a41df1933103}.update.enabled", 
false);


My question is - can I simply add this into the site.js file in the 
Integrator extension as:


user_pref("extensions.{e2fda1a4-762b-4020-b5ad-a41df1933103}.update.enabled", 
false);


and accomplish the same thing?

Or, would I need to change 'user_pref' to just 'pref' (like the other 
entries already in there), like this:


pref("extensions.{e2fda1a4-762b-4020-b5ad-a41df1933103}.update.enabled", 
false);


?

Last - can I push out other config options that I am setting in the 
user.js file in the same way, thus doing away completely with the 
user.js file, quickly and easily pushing out pref changes this way?


Thanks!

Charles

--
users@sogo.nu
https://inverse.ca/sogo/lists