add default pref for password protecting local hdr cache, 214402, r=scott, sr/a=sspitzer

git-svn-id: svn://10.0.0.236/trunk@145747 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bienvenu%nventure.com 2003-08-08 14:16:11 +00:00
parent e282c49922
commit 37ee45aad0
3 changed files with 11 additions and 1 deletions

View File

@ -211,7 +211,13 @@ function ChangeFolderByURI(uri, viewType, viewFlags, sortType, sortOrder)
var showMessagesAfterLoading;
try {
var server = msgfolder.server;
if (server.redirectorType) {
if (gPrefs.getBoolPref("mail.password_protect_local_cache"))
{
showMessagesAfterLoading = !server.isAuthenticated;
// servers w/o passwords (like local mail) will always be non-authenticated.
// So we need to use the account manager for that case.
}
else if (server.redirectorType) {
var prefString = server.type + "." + server.redirectorType + ".showMessagesAfterLoading";
showMessagesAfterLoading = gPrefs.getBoolPref(prefString);
}

View File

@ -534,6 +534,8 @@ pref("mail.compose.add_undisclosed_recipients", true);
pref("mail.purge.min_delay",480);
pref("mail.purge.timer_interval",5);
// require a password before showing imap or local headers in thread pane
pref("mail.password_protect_local_cache", false);
// to reduce forking in the js / C++
// overridden by stand alone mail
pref("mail.standalone", false);

View File

@ -534,6 +534,8 @@ pref("mail.compose.add_undisclosed_recipients", true);
pref("mail.purge.min_delay",480);
pref("mail.purge.timer_interval",5);
// require a password before showing imap or local headers in thread pane
pref("mail.password_protect_local_cache", false);
// to reduce forking in the js / C++
// overridden by stand alone mail
pref("mail.standalone", false);