Land Bug #214402 for David into thunderbird --> Keep thread pane blank until we are logged in for online imap and pop cases.

This commit is contained in:
scott%scott-macgregor.org 2003-08-08 17:17:50 +00:00
parent af20fbe788
commit d51b248764
2 changed files with 10 additions and 1 deletions

View File

@ -499,3 +499,6 @@ pref("mail.purge.min_delay",480);
// "mail.purge.timer_interval", fire the purge timer every 5 minutes, starting 5 minutes after we load accounts
pref("mail.purge.timer_interval",5);
pref("mailnews.view.last",0); // 0 == "all" view
// require a password before showing imap or local headers in thread pane
pref("mail.password_protect_local_cache", false);

View File

@ -210,7 +210,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);
}