From 1602b18276be71f20d59d1209a8e20843dad1e44 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 20 Sep 2012 13:51:57 +0200 Subject: [PATCH] =?UTF-8?q?R=C3=A9cup=C3=A9ration=20de=20la=20config=20en?= =?UTF-8?q?=20https=20par=20d=C3=A9faut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/thunderbird-config.xml | 2 +- .../shares/wpkg/files/settings/thunderbird/thunderbird.cfg/10All | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/thunderbird-config.xml b/packages/thunderbird-config.xml index 97bfded..00b39ba 100644 --- a/packages/thunderbird-config.xml +++ b/packages/thunderbird-config.xml @@ -8,7 +8,7 @@ - + diff --git a/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/thunderbird/thunderbird.cfg/10All b/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/thunderbird/thunderbird.cfg/10All index f0eeca0..f742be6 100644 --- a/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/thunderbird/thunderbird.cfg/10All +++ b/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/thunderbird/thunderbird.cfg/10All @@ -1,5 +1,9 @@ // Autoconf +{ +$proto = ((${'mozilla-mcd'}{'RequireSSL'} || 'yes') =~ m/^enabled|yes|on|1$/) ? 'https':'http'; +} + if(getenv("USER") != "") \{ var user = getenv("USER"); \} else \{ @@ -10,6 +14,6 @@ var mail = env_user + '@{$DomainName}'; lockPref("mail.identity.useremail", mail); lockPref("autoadmin.append_emailaddr", true); -lockPref("autoadmin.global_config_url", "http://{"$SystemName.$DomainName"}/thunderbird.cfg"); +lockPref("autoadmin.global_config_url", "{"$proto"}://{"$SystemName.$DomainName"}/thunderbird.cfg"); lockPref("autoadmin.failover_to_cached", true); lockPref("autoadmin.offline_failover", true);