This ALMOST worked for us, we needed to add one more line, to change
the default for new accounts as well:

lockPref("mail.server.default.offline_download", false);

Add that near the other lockPref at the top.
-Alex

On Jan 25, 3:51*am, Nicolas Cuissard
wrote:
> Timo Pietil a crit :
>
>
>
> > Hello.

>
> > I have tried to look some advices to how to upgrade thousands of
> > computers from TB2 to TB3 without changing their "feel" and keeping
> > initial settings as close to TB2 as possible.

>
> > What I would require is at least:

>
> > Keep "smart folders" out of the picture.
> > Keep toolbars as close to original as possible

>
> > and because of roaming profiles and gigabyte-class mailboxes
> > *- indexing off
> > *- IMAP -mail folder settings offline off for all folders.

>
> > Users could then, if they want to, change those any way they want, but
> > for migration process change is too big and would just block our
> > helpdesk completely if those cannot be set during installation.

>
> > Is there any way to force these settings for initial installation?

>
> Hi all,
>
> I'm dealing with the same issues, this is what I did so far:
>
> * * Preventing indexation : set the preference
> "mailnews.database.global.indexer.enabled" to "false"
>
> * * Preventing offline synchronization for IMAP account : for each
> account, set the preference "mail.server..offline_download"
> to "false".
>
> Do do that, the easiest way is to use the "autoconfig" which allow you
> to force setting on a system-level bassis and not on user-lever. It's
> very simple, you need to deploy two files (works on linux too) :
>
> * * "%PROGRAMFILES%\Mozilla Thunderbird\defaults\pref\oldschool.js"
> containing :
>
> pref("general.config.obscure_value", 0);
> pref("general.config.filename", "oldschool.cfg");
>
> * * "%PROGRAMFILES%\Mozilla Thunderbird\oldschool.cfg" containing :
>
> //
> /* This will disable indexation */
> lockPref("mailnews.database.global.indexer.enabled", false);
>
> /* This will parse the prefs.js and disable "offline_download" for each
> IMAP account */
>
> if (getPref("mail.accountmanager.accounts")) {
>
> * *var listExistingAccounts = getPref("mail.accountmanager.accounts");
> * *var arrayExistingAccounts = listExistingAccounts.split(',');
>
> * * *for (var i=0; i < arrayExistingAccounts.length; i++) {
> * * * *var serverFromAccount = getPref("mail.account." +
> arrayExistingAccounts[i] + ".server");
> * * * *var configType = getPref("mail.server." + serverFromAccount +
> ".type");
> * * * *if (configType == "imap") {
> * * * * *lockPref("mail.server." + serverFromAccount +
> ".offline_download", false);
> * * * *}
> * * *}
>
> }
>
> I'm still investigating a way to disable smart folders automatically but
> as far as it's not managed in the "prefs.js" (but "localstore.rdf") this
> is far more tricky.
>
> Regards,
>
> Nicolas