From 8dd8648b0e82b16bcb0c976d330eaf670081a748 Mon Sep 17 00:00:00 2001 From: harlekin Date: Fri, 09 Jan 2004 12:38:04 +0000 Subject: only read accounts that are set online --- (limited to 'noncore') diff --git a/noncore/net/mail/libmailwrapper/statusmail.cpp b/noncore/net/mail/libmailwrapper/statusmail.cpp index 1d7d559..172c58f 100644 --- a/noncore/net/mail/libmailwrapper/statusmail.cpp +++ b/noncore/net/mail/libmailwrapper/statusmail.cpp @@ -27,7 +27,7 @@ void StatusMail::initAccounts(QList&accounts) currentPop3Stat.message_recent=0; currentPop3Stat.message_unseen=0; for ( it = accounts.first(); it; it = accounts.next() ) { - if ( it->getType().compare( "IMAP" ) == 0 ) { + if ( it->getType().compare( "IMAP" ) == 0 && !it->getOffline() ) { IMAPaccount*ima = static_cast(it); current = AbstractMail::getWrapper(ima); connectionList.append(current); @@ -35,7 +35,7 @@ void StatusMail::initAccounts(QList&accounts) currentImapStat.message_count+=currentStat.message_unseen; currentImapStat.message_count+=currentStat.message_recent; currentImapStat.message_count+=currentStat.message_count; - } else if ( it->getType().compare( "POP3" ) == 0 ) { + } else if ( it->getType().compare( "POP3" ) == 0 && !it->getOffline() ) { POP3account *pop3 = static_cast(it); current = AbstractMail::getWrapper(pop3); connectionList.append(current); -- cgit v0.9.0.2