From 46753cb77877f4807ab9b1ba3e6c7a4eed7bc1bd Mon Sep 17 00:00:00 2001 From: alwin Date: Tue, 06 Jan 2004 12:57:52 +0000 Subject: status of pop3 accounts slightly reworked when starting opiemail from taskbar applet the status will be reset --- (limited to 'noncore/net/mail/libmailwrapper/statusmail.cpp') diff --git a/noncore/net/mail/libmailwrapper/statusmail.cpp b/noncore/net/mail/libmailwrapper/statusmail.cpp index 98f6204..1d7d559 100644 --- a/noncore/net/mail/libmailwrapper/statusmail.cpp +++ b/noncore/net/mail/libmailwrapper/statusmail.cpp @@ -40,13 +40,15 @@ void StatusMail::initAccounts(QList&accounts) current = AbstractMail::getWrapper(pop3); connectionList.append(current); current->statusFolder(currentStat); - currentPop3Stat.message_count+=currentStat.message_unseen; - currentPop3Stat.message_count+=currentStat.message_recent; currentPop3Stat.message_count+=currentStat.message_count; } current->logout(); } - lastPop3Stat = currentPop3Stat; + qDebug("Pop3 init count: %i",currentPop3Stat.message_count); + currentPop3Stat.message_recent = currentPop3Stat.message_unseen = 0; + lastPop3Stat.message_unseen = currentPop3Stat.message_unseen; + lastPop3Stat.message_recent = currentPop3Stat.message_recent; + lastPop3Stat.message_count = currentPop3Stat.message_count; } void StatusMail::reset_status() -- cgit v0.9.0.2