105162 r=racham sr=mscott. Make download message size pref work for pop3 again. Remove unused pref.

This commit is contained in:
naving%netscape.com 2001-10-17 04:53:23 +00:00
parent 649d237d34
commit 051a5a2256
3 changed files with 3 additions and 8 deletions

View File

@ -233,7 +233,6 @@ interface nsIMsgIncomingServer : nsISupports {
attribute boolean loginAtStartUp;
attribute boolean limitMessageSize;
attribute boolean limitOfflineMessageSize;
attribute long maxMessageSize;

View File

@ -1507,10 +1507,6 @@ NS_IMPL_SERVERPREF_BOOL(nsMsgIncomingServer,
CanFileMessagesOnServer,
"canFileMessages");
NS_IMPL_SERVERPREF_BOOL(nsMsgIncomingServer,
LimitMessageSize,
"limit_message_size")
NS_IMPL_SERVERPREF_BOOL(nsMsgIncomingServer,
LimitOfflineMessageSize,
"limit_offline_message_size")

View File

@ -680,7 +680,7 @@ nsresult nsPop3Protocol::LoadUrl(nsIURI* aURL, nsISupports * /* aConsumer */)
nsCOMPtr<nsIMsgIncomingServer> server = do_QueryInterface(m_pop3Server);
if (server)
{
server->GetLimitMessageSize(&limitMessageSize);
server->GetLimitOfflineMessageSize(&limitMessageSize);
if (limitMessageSize)
{
PRInt32 max_size = 0;
@ -1088,12 +1088,12 @@ PRInt32 nsPop3Protocol::SendStatOrGurl(PRBool sendStat)
But if we're just checking for new mail (biff) then don't bother
prompting the user for a password: just fail silently. */
Error(POP3_PASSWORD_FAILURE);
SetFlag(POP3_PASSWORD_FAILED);
// libmsg event sink
if (m_nsIPop3Sink)
{
{
m_nsIPop3Sink->SetUserAuthenticated(PR_FALSE);
m_nsIPop3Sink->SetMailAccountURL(NULL);
}