jobisoft / TbSync

[Thunderbird Add-On] Central user interface to manage cloud accounts and to synchronize their contact, task and calendar information with Thunderbird
https://github.com/jobisoft/TbSync/wiki/About:-TbSync
Mozilla Public License 2.0
810 stars 54 forks source link

Deploying a default configuration to users #247

Open ohmer1 opened 5 years ago

ohmer1 commented 5 years ago

I'm trying to deploy the addon with our thunderbird installer in the office. Is there a way to deploy a default configuration so the user doesn't have to configure manually the (cal|card)dav accounts? I'm able to push Thunderbird settings, but unfortunately TbSync is using a custom file to store the addon settings.

jobisoft commented 5 years ago

Not yet, after it has been integrated into TB, we want to add support for carddav to the xml config file approach you can put on your server.

Do you have any other ideas, how this could be done?

ohmer1 commented 5 years ago

I think the better solution is to be able to read the thunderbird settings registry. With the Thunderbird's native settings registry, an admin can push custom settings to user with the help of autoadmin. See https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig (this article is related to firefox, but this is the same thing for Thunderbird).

Another way I could see is to look for a "template" file at a specific location if there is no addon settings in the running thunderbird profile and use that for initial configuration. It would allow an administrator to configure the correct hostname for the caldav and cardsav severs. But it would still need to be able to figure out which username to use. You could probably use the username used in the first email account. If I'm not wrong, this is what the sogo plugin is using to find out the correct username.

jobisoft commented 5 years ago

Looks interesting. Can you contribute?

ohmer1 commented 5 years ago

I would like, but unfortunately I have no idea how thunderbird extensions work (and I have an aversion of javascript :D)

sig0815 commented 5 years ago

Can this here https://github.com/cadeyrn/enterprise-policy-generator help? There is thunderbird support in the works.

siglinde