Changes

Thunderbird

4,350 bytes added, 10:40, 15 July 2010
Added 'Disable 'Auto-sync' and 'Work Offline'' + lots of tidyup
== Mozilla Thunderbird 3.1 ==Version 3.1 is out an email client available from [http://www.mozillamessaging.com]. It has the ability to install various extensions for example the Lightning calendar. =WPKG Installers= == Thunderbird 3.x ==Versions 3.0 and 3.1 install itself the same way as version 2.0 so see below.This installer first kills a running Thunderbird in case WPKG is being run whilst you're logged in. 
<source lang="xml">
<package
id="thunderbird"
name="Mozilla Thunderbird"
revision="3101"
reboot="false"
priority="0">
<check type="uninstall" condition="exists" path="Mozilla Thunderbird (3.1)" />
<install cmd='"%SOFTWARE%\internetthunderbird\Thunderbird Setup 3.1.exe" -ms' />
<upgrade cmd='taskkill /F /IM thunderbird.exe'>
<exit code="128" />
</upgrade>
  <upgrade cmd='"%SOFTWARE%\internetthunderbird\Thunderbird Setup 3.1.exe" -ms' />
<remove cmd='taskkill /F /IM thunderbird.exe'>
<exit code="128" />
</remove>
 
<remove cmd='"%PROGRAMFILES%\Mozilla Thunderbird\uninstall\helper.exe" /S' />
</package>
== Thunderbird 2.x ==
 
If you have a previous version of Thunderbird installed, it will be automatically removed before the latest version is installed.
 
As the Thunderbird install now nicely upgrades and doesn't leave the old one in the registry, there is no need to differentiate versions in package id.
 
When a new version comes out, just replace the installer in "upgrade cmd" with a new one, and then increment the package revision number - this puts the upgrade command to work.
<source lang="xml">
</source>
== Making Thunderbird a the default mail and news client ==
If you want to make Mozilla Thunderbird a default mail and news client, add these registry entries:
</source>
To register it with WPKG, save it as thunderbird.REGreg, and add these entries to your Thunderbird XMLWPKG item:
<source lang="xml">
<install cmd='regedit /s %SOFTWARE%\Thunderbird\thunderbird.REGreg' />
<upgrade cmd='regedit /s %SOFTWARE%\Thunderbird\thunderbird.REGreg' />
</source>
 
Alternatively, you can use this jscript file to use full path names:
And then Then add this to your XML package definitionWPKG installer:
<source lang="xml">
== Silent installation of Thunderbird extensions ==
To silently install Mozilla Thunderbird extensions, do the following:
* Download the extension
When Thunderbird is next started, the new extension is detected automatically - you can verify this in Thunderbird using Tools -> Extensions.
== Silent installation of dictionaries (spell-checking) ==
=== Thunderbird 1.5 ===
Mozilla Thunderbird keeps its (MySpell) dictionaries in <code>%PROGRAMFILES%\Mozilla Thunderbird\components\myspell\</code>.
Installing a new dictionary is simple - just copy the dictionary files for a given language to that folder.
'''Installation instructions for ===Installing a German dictionary'''===
* Download a German dictionary from http://www.thunderbird-mail.de/hilfe/dokumentation1.5/allg_rechtschreibung.php
* The file is a .xpi file (a renamed .zip file). Uncompress it using any unzipping program. Inside you'll find .aff and .dic files - these are the core dictionary files. (There is also a .txt file (some info), and a .js file (the installer, used if you install the dictionary using Thunderbird))
* Copy the core dictionary files into <code>%PROGRAMFILES%\Mozilla Thunderbird\components\myspell\</code>.
* The XML which installs the German WPKG installer to install this dictionary for into Thunderbird should look like this:
<source lang="xml">
</source>
=== Thunderbird 2.0 ===
Thunderbird 2.0 has its dictionaries in %PROGRAMFILES%\Mozilla Thunderbird\dictionaries
</source>
Alternatively, download the Thunderbird Dictionary dictionary (download the right one, i.e. the german German dictionary from the official webpage won't work) and install it like this:
<source lang="dos">
</source>
== Disable auto update =Thunderbird Configuration=
Thunderbird processes the config files in reverse alphabetical order.Create a file called, for example, all-thunderbird-custom-disable-updates.js, saved in %PROGRAMFILES%\Mozilla thunderbird\defaults\pref\, containing the following:== Types Of Prefs ==
<source lang=userpref("xmlpref",<value>// ***********************************************************************); - per-user preferences
// * *pref("pref",<value>); - system-wide preferences that can be over-ridden by users
// * alllockpref("pref",<value>); -thunderbirdsystem-customwide preferences that cannot be over-disable-updates.js - *ridden by users
// * Thunderbird custom global configuration to disable updates *
// * *== Methods Of Applying Prefs ==
// ***********************************************************************===Per-person===
Use a prefs file in the user's profile directory. You shouldn't edit prefs.js, as that can be overwritten by Thunderbird, instead create and use user.js as that will never be altered by Thunderbird itself. Use the syntax userpref("pref",<value>); here.
// Options ===System-> Advanced -> Update -> Automatically check for updates to : Installed Extensions and Themeswide===
====File in %PROGRAMFILES%\Mozilla thunderbird\defaults\pref("extensions.update.enabled", false);\ directory====
Thunderbird processes the config files in this directory in reverse alphabetical order. Don't add your prefs to Thunderbird's own pref files as these will be lost on an upgrade of Thunderbird, instead create a file called, for example, all-thunderbird-custom.js, saved in %PROGRAMFILES%\Mozilla thunderbird\defaults\pref\. These preferences can be over-ridden by users. An example file is:
<source lang="xml">// Options -> Advanced -> Update -> Automatically check for updates to : ThunderbirdInstalled Extensions and Themespref("appextensions.update.enabled", false);   // Options -> Advanced -> Update -> Automatically check for updates to : Search Engines pref("browser.search.update", false); 
</source>
 
See the whole "HowTO prevent Autoupdate on Firefox / Thunderbird" thread: http://lists.wpkg.org/pipermail/wpkg-users/2007-February/001207.html
 
See bug [https://bugzilla.mozilla.org/show_bug.cgi?id=395660].
 
== Removing access to Outlook Express ==
 
If you want to remove access to OE, see [[Outlook Express]].
== Using thunderbird autoconfig == Autoconfig ====
See: http://mit.edu/~thunderbird/www/maintainers/autoconfig.html
</source>
''Note: Byteshifting does not seem to The file can optionally be required with versions 1byteshifted an optional security feature, using general.5config.* or 2obscure_value.0.*''
You can add functionality to the prefs by including javascript within the file.
}
</source>
 
 
== Prefs ==
 
 
=== Disable Auto Update ===
 
<source lang=javascript>
// Options -> Advanced -> Update -> Automatically check for updates to : Installed Extensions and Themes
pref("extensions.update.enabled", false);
 
// Options -> Advanced -> Update -> Automatically check for updates to : Thunderbird
pref("app.update.enabled", false);
 
// Options -> Advanced -> Update -> Automatically check for updates to : Search Engines
pref("browser.search.update", false);
</source>
 
See the whole "HowTO prevent Autoupdate on Firefox / Thunderbird" thread: http://lists.wpkg.org/pipermail/wpkg-users/2007-February/001207.html
 
See bug [https://bugzilla.mozilla.org/show_bug.cgi?id=395660].
 
 
 
=== Disable Migration Assistant and What's New page ===
 To prevent the Migration Assistant and the What's New page from showing after upgrades add the following lines to your thunderbird.cfg., use: 
<source lang=javascript>
pref("mail.ui.show.migration.on.upgrade", false);
pref("app.update.showInstalledUI", false);
pref("browser.startup.homepage_override.mstone", "ignore");
pref("mailnews.start_page_override.mstone", "ignore");
</source>
lockPref("===Disable 'Auto-sync' and 'Work Offline'===Tame Thunderbird 3.0.5 or 3.1.0 so that it doesn't automatically sync IMAP mailto a person's workstation in an organisation because they have roaming user profiles on Windows that would result in C: partitions filling up.uiThere is the old 'work offline' and the new 'auto-sync'.showWe want neither.Thunderbird's IMAP sync feature gives minimal improvement for a lot of pain. References:* http://kb.mozillazine.org/Thunderbird_3.0_-_New_Features_and_Changes#IMAP_Accounts* https://developer.mozilla.org/en/Thunderbird/Deploying_Thunderbird_in_the_Enterprise/Upgrading_Thunderbird_in_the_Enterprise* 'If I disable migrationwizard I'm in situation where all IMAP -folders are set to download no matter what I do to account in question (Needs a way to keep offline-use setting upon migration to Tb 3, even if Migration Assistant is disabled on purpose)' - https://bugzilla.mozilla.org/show_bug.cgi?id=562589. This is fixed in 3.0.5 and 3.1.  * Don't 'keep messages for this account onthis computer' (a 'work offline' setting)GUI: 'Synchronisation & Storage -> Message Synchronising -> [] keep messages for this account on this computer' Various prefs relevant to this: mail.upgrade"server.default.offline_download (on by default, falseunless specifically turned off by the use of mail.server.serverX.offline_downloadDon't confuse this with 'auto-sync, this just allows them to be downloaded when go offline or close Thunderbird. Auto-sync bypasses this setting like one big version equivalent to this. Controls whether or not newly created folders get flagged for downloading offline [TB 3.0.0 - 3.0.4];additionally in TB 3.0.5+, setting to "false" prior to first run of TB 3 will prevent the IMAP folders from being set to offline download (which they would otherwise have been by default)lockPrefYou need to turn this off _before_ the migration from Thunderbird 2 to 3.0.5+ else auto-sync will be enabled upon migration. In 3.0.0 - 3.0.4 auto-sync would be enabled anyway. <source lang=javascript>pref("appmail.server.updatedefault.showInstalledUIoffline_download", false);lockPref</source>  * Don't 'Synchronize all messages locally regardless of age' (an 'auto-sync' setting)GUI: 'Synchronisation & Storage -> Disk Space -> Synchronize all messages locally regardless of age - off' Various prefs relevant to this:mail.server.default.autosync_offline_stores - false mail.server.serverX.autosync_offline_stores - false ? Also there should be no mail.server.serverX.autosync_offline_stores=true ? If the above setting is made, folder property of offline-use=on/off becomes irrelevant to auto-sync because auto-sync is disabled, and the offline-use=on/off is used for download at "browserWork Offline" only.startup This ignores whether the folder is configured as an offline folder or not.homepage_override See http://kb.mstonemozillazine.org/Offline_folders#AutoSync <source lang=javascript>pref("mail.server.default.autosync_offline_stores", false);</source>  * 'Synchronise the most recent [1] [Days]' (a 'work offline' setting)GUI: 'Synchronisation & Storage -> Disk Space -> (*) Synchronise the most recent [1] [Days]' <source lang=javascript>pref("ignoremail.server.default.autosync_max_age_days", 1);lockPref</source>  * 'Don't download messages larger than 50KB' (a 'work offline' setting)GUI: Synchronisation & Storage -> Disk Space -> [*] Don't download messages larger than 50KB Various prefs relevant to this: mail.server.default.limit_offline_message_size - true (defaults to 50KB)  mail.server.serverX.limit_offline_message_size - true (defaults to 50KB) mail.server.default.max_size - XXX mail.server.serverX.max_size - XXX <source lang=javascript>pref("mailnewsmail.start_page_overrideserver.mstonedefault.limit_offline_message_size", true);</source>  * Disable the Migration AssistantPrevents users being asked if they want to enable auto-sync. Available in Thunderbird 3.1 and onwards.We could lock this pref using lockpref, which is an option that should be considered, but that would prevent the option from _ever_ being used and there might be an occasional sane situation in which to use it, for example roaming users with laptops. <source lang=javascript>pref("ignoremail.ui.show.migration.on.upgrade", false);
</source>
[[category:Silent Installers]]
577
edits