зеркало из https://github.com/mozilla/gecko-dev.git
add new pref for limiting size of messages downloaded for offline 15865 sr=sspitzer
This commit is contained in:
Родитель
436c636874
Коммит
847a0288ea
|
@ -202,6 +202,7 @@ interface nsIMsgIncomingServer : nsISupports {
|
||||||
attribute boolean loginAtStartUp;
|
attribute boolean loginAtStartUp;
|
||||||
|
|
||||||
attribute boolean limitMessageSize;
|
attribute boolean limitMessageSize;
|
||||||
|
attribute boolean limitOfflineMessageSize;
|
||||||
attribute long maxMessageSize;
|
attribute long maxMessageSize;
|
||||||
|
|
||||||
attribute nsIMsgRetentionSettings retentionSettings;
|
attribute nsIMsgRetentionSettings retentionSettings;
|
||||||
|
|
|
@ -859,7 +859,7 @@ NS_IMETHODIMP nsMsgDBFolder::ShouldStoreMsgOffline(nsMsgKey msgKey, PRBool *resu
|
||||||
if (NS_SUCCEEDED(rv) && incomingServer)
|
if (NS_SUCCEEDED(rv) && incomingServer)
|
||||||
{
|
{
|
||||||
PRBool limitDownloadSize = PR_FALSE;
|
PRBool limitDownloadSize = PR_FALSE;
|
||||||
rv = incomingServer->GetLimitMessageSize(&limitDownloadSize);
|
rv = incomingServer->GetLimitOfflineMessageSize(&limitDownloadSize);
|
||||||
NS_ENSURE_SUCCESS(rv, rv);
|
NS_ENSURE_SUCCESS(rv, rv);
|
||||||
if (limitDownloadSize)
|
if (limitDownloadSize)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1315,4 +1315,8 @@ NS_IMPL_SERVERPREF_BOOL(nsMsgIncomingServer,
|
||||||
LimitMessageSize,
|
LimitMessageSize,
|
||||||
"limit_message_size")
|
"limit_message_size")
|
||||||
|
|
||||||
|
NS_IMPL_SERVERPREF_BOOL(nsMsgIncomingServer,
|
||||||
|
LimitOfflineMessageSize,
|
||||||
|
"limit_offline_message_size")
|
||||||
|
|
||||||
NS_IMPL_SERVERPREF_INT(nsMsgIncomingServer, MaxMessageSize, "max_size")
|
NS_IMPL_SERVERPREF_INT(nsMsgIncomingServer, MaxMessageSize, "max_size")
|
||||||
|
|
|
@ -255,6 +255,7 @@ pref("mail.server.default.check_time", 10);
|
||||||
// "mail.server.default.check_new_mail" now lives in the protocol info
|
// "mail.server.default.check_new_mail" now lives in the protocol info
|
||||||
pref("mail.server.default.dot_fix", true);
|
pref("mail.server.default.dot_fix", true);
|
||||||
pref("mail.server.default.limit_message_size", false);
|
pref("mail.server.default.limit_message_size", false);
|
||||||
|
pref("mail.server.default.limit_offline_message_size", true);
|
||||||
pref("mail.server.default.max_size", 50);
|
pref("mail.server.default.max_size", 50);
|
||||||
pref("mail.server.default.auth_login", true);
|
pref("mail.server.default.auth_login", true);
|
||||||
pref("mail.server.default.delete_mail_left_on_server", false);
|
pref("mail.server.default.delete_mail_left_on_server", false);
|
||||||
|
|
|
@ -255,6 +255,7 @@ pref("mail.server.default.check_time", 10);
|
||||||
// "mail.server.default.check_new_mail" now lives in the protocol info
|
// "mail.server.default.check_new_mail" now lives in the protocol info
|
||||||
pref("mail.server.default.dot_fix", true);
|
pref("mail.server.default.dot_fix", true);
|
||||||
pref("mail.server.default.limit_message_size", false);
|
pref("mail.server.default.limit_message_size", false);
|
||||||
|
pref("mail.server.default.limit_offline_message_size", true);
|
||||||
pref("mail.server.default.max_size", 50);
|
pref("mail.server.default.max_size", 50);
|
||||||
pref("mail.server.default.auth_login", true);
|
pref("mail.server.default.auth_login", true);
|
||||||
pref("mail.server.default.delete_mail_left_on_server", false);
|
pref("mail.server.default.delete_mail_left_on_server", false);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче