Re: [dl-ticket-service] Automate install extension 0.17 in thunderbird

2015-09-14 Thread Daniel Berteaud


Le 11/09/2015 22:37, Gerald a écrit :
> Hi all,
> I manage almost 20 PC (win7 pro) and I would like to automate the
> installation of DL for Thunderbird 0.17. I already use WPKG to deploy other
> plugins in thunderbird (quickfolders, lightning...), just by copying the
> folders after unzipping the xpi in C:\Program Files (x86)\Mozilla
> Thunderbird\extensions

I'm using WPKG to deploy DL Extension on Thunderbird. You can find here
the XML description of the WPKG package:

https://upload.firewall-services.com/?t=3f17512b9411b0d6513987058f3e7bc3

I bascially just extract the XPI under %PROGRAMFILES(x86)%\Mozilla
Thunderbird\distribution\bundles

I prefer this over the extensionx folder because this way, extensions are:
- Automatically enabled
- are not visible in the Addon manager (so users cannot disable it)
- they are managed directly on the system partition, and not copied over
every user profile, so I can even downgrade it when I want if needed

I'm also using MCD to auto-configure all this. This is a bit harder to
achieve, but in simple terms:

- WPKG deploys on every station a config file which points Thunderbird
to an https URL
- This https URL is a PHP script
- Each time Thunderbird starts, it fetch this URL, with the Windows
login name appended
- This PHP script then lookups in my LDAP directory for the
corresponding user, and generate the necessary config for Thunderbird on
the fly
- Thunderbird store this config so it can reuse it next time it starts
if the web server doesn't respond

The FileLink part of this generated config is:

defaultPref("mail.cloud_files.accounts.account1.restURL", "https:///rest.php");
defaultPref("mail.cloud_files.accounts.account1.type", "DL");
defaultPref("mail.cloud_files.accounts.account1.username", "");
defaultPref("mail.cloud_files.inserted_urls.footer.link",
"http://www.ipasserelle.com";);
defaultPref("mail.cloud_files.accounts.account1.displayName", "Lien
iPasserelle");

Once all this is in place, not only Thunderbird can be started and
already configured for the logged in user, but everything else like the
calendars (lightning), the addressbooks (sogo-connector) and FileLink DL
are already configured and ready to use (only the password will be asked)

Hope this helps ;-)

Cheers,
Daniel
-- 

Logo FWS

*Daniel Berteaud*

FIREWALL-SERVICES SARL.
Société de Services en Logiciels Libres
Tel : 05 56 64 15 32
Visio : http://vroom.im/dani
/www.firewall-services.com/



Re: [dl-ticket-service] Automate install extension 0.17 in thunderbird

2015-09-13 Thread Yuri D'Elia
On 11/09/15 22:37, Gerald wrote:
> Hi all,
> I manage almost 20 PC (win7 pro) and I would like to automate the
> installation of DL for Thunderbird 0.17. I already use WPKG to deploy other
> plugins in thunderbird (quickfolders, lightning...), just by copying the
> folders after unzipping the xpi in C:\Program Files (x86)\Mozilla
> Thunderbird\extensions
> 
> I tried for "DL for thuinderbird" but without success. Is there a way to
> automatically install it? 

I'm afraid I have no idea on how WPKG works, I never deployed
thunderbird sitewide to help you.

But DL for thunderbird doesn't require anything special in that regard.
When doing development, I also just unpack the extension in the
extension directory.

> And next step, a way to automate the creation of a filelink storage service
> using DL?

As for most extensions, it just uses preference keys to store the
configuration settings.

The *required* keys are:

mail.cloud_files.accounts.account[N].type = DL
mail.cloud_files.accounts.account[N].displayName = DL
mail.cloud_files.accounts.account[N].restURL = [URL]
mail.cloud_files.accounts.account[N].username = [username]

where [N] is the index of the first available "filelink" account
(usually 1). [URL] and [username] need to be filled correctly.

There are other keys, but they're populated automatically on the first
usage.

I assume there are ways to preconfigure settings if you already have a
sitewide install.

Hope this helps.





[dl-ticket-service] Automate install extension 0.17 in thunderbird

2015-09-11 Thread Gerald
Hi all,
I manage almost 20 PC (win7 pro) and I would like to automate the
installation of DL for Thunderbird 0.17. I already use WPKG to deploy other
plugins in thunderbird (quickfolders, lightning...), just by copying the
folders after unzipping the xpi in C:\Program Files (x86)\Mozilla
Thunderbird\extensions

I tried for "DL for thuinderbird" but without success. Is there a way to
automatically install it? 
And next step, a way to automate the creation of a filelink storage service
using DL?

Thank you for your help

Gérald