Matthias Kahlert schrieb:
Am 26.02.2010 12:23, schrieb David Wilkinson:
Matthias Kahlert wrote:
Hi!
I'm looking into migrating several users from 1.1.18 to SM 2.
On a test-run I realised that folder synchronisation seems to be on as a
default in SM 2. (This spilled 15GB of junk into my test-profile.)
I see that it can be turned off manually in the settings, but I would
prefer to turn it off once and for all, because mail shoud stay on the
imap-server only anyway.
Is there a user-pref to turn off synchronisation completely?
No, all accounts need to be changed.
This might help:
/* 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);
}
}
}
Locking prefs is very useful in a corporate environment. Just have a
look on the internet, there are tutorials for Thunderbird whch apply to
Seamonkey in the same way mostly.
Here's a doc about autoconfig, which needs to be used for the example
above: https://developer.mozilla.org/en/MCD
Thunderbird Example:
<http://mit.edu/~thunderbird/www/maintainers/autoconfig.html>
Every mail-account (there are around 10 in this profile) has "Keep
messages for this account on this computer" checked and seems to start
duplicating the mail store right away. This is a very bad idea.
That depends on the environment, for others that'S a very good idea ;-)
(e.g. dial-up users)
But I have noticed some other problems in the migration process:
* The profile is in the users home directory in our case, but the cache
folder was on a local harddrive. The migration moved the cache directory
back in the profile directory and thus on a mapped network drive, which
is bad.
* The location of the signature files of the mail accounts was changend
and the sig-files themselves were copied into the profile directory. Bad
because the sigs are shared with several users and should stay in their
place on the network, so changes have to be made only once and not for
every user.
that's the standard location in both cases, if you don't like it, you'll
need to change it. ;-)
(maybe autoconfig again?)
* Auto-update and extension installation is enabled. I dont want this,
because the installation is also shared and maintained on a network
drive. This needs to be turned off centrally.
Then disable it. ;-)
It'S in the GUI and of course there's a pref too if GUI is no option in
your case, just use the user.js or autoconfig.
for the app itself app.update.auto and/or app.update.enabled should be
of interest.
Also see: http://kb.mozillazine.org/App.update.enabled
What I need is a solution to convert around 20 user-profiles without any
user intervention. The users should just get SM2 in place of 1.1.18 with
all setting premigrated. I have read
http://kb.mozillazine.org/Profile_migration_-_SeaMonkey but that doesn't
cover all these issues in depth.
That mainly covers home-environment where usually one or maybe 2 or 3
profiles are being migrated. Good luck with MCD/autoconfig ;-)
regards
Martin
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey