mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
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:
parent
af20fbe788
commit
d51b248764
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user