From f6fa2808753f84a66037d8ca4f62f7ce412a386b Mon Sep 17 00:00:00 2001 From: alwin Date: Sat, 12 Mar 2005 02:15:18 +0000 Subject: as in most other applets mails on pop3-acounts counts always as new mail --- diff --git a/noncore/net/mail/libmailwrapper/statusmail.cpp b/noncore/net/mail/libmailwrapper/statusmail.cpp index 7e14df3..4d87e56 100644 --- a/noncore/net/mail/libmailwrapper/statusmail.cpp +++ b/noncore/net/mail/libmailwrapper/statusmail.cpp @@ -47,7 +47,7 @@ void StatusMail::initAccounts(QList&accounts) } current->logout(); } - odebug << "Pop3 init count: " << currentPop3Stat.message_count << "" << oendl; + odebug << "Pop3 init count: " << currentPop3Stat.message_count << "" << oendl; currentPop3Stat.message_recent = currentPop3Stat.message_unseen = 0; lastPop3Stat.message_unseen = currentPop3Stat.message_unseen; lastPop3Stat.message_recent = currentPop3Stat.message_recent; @@ -76,10 +76,12 @@ void StatusMail::check_current_stat(folderStat&targetStat) currentImapStat.message_count+=currentStat.message_count; } else if (it->getType() == MAILLIB::A_POP3) { currentPop3Stat.message_count+=currentStat.message_count; - odebug << "Pop3 count: " << currentPop3Stat.message_count << "" << oendl; + odebug << "Pop3 count: " << currentPop3Stat.message_count << "" << oendl; } } - odebug << "Pop3 last: " << lastPop3Stat.message_count << "" << oendl; + odebug << "Pop3 last: " << lastPop3Stat.message_count << "" << oendl; + +#if 0 if (currentPop3Stat.message_count > lastPop3Stat.message_count) { currentPop3Stat.message_recent = currentPop3Stat.message_count - lastPop3Stat.message_count; currentPop3Stat.message_unseen = currentPop3Stat.message_recent; @@ -87,6 +89,10 @@ void StatusMail::check_current_stat(folderStat&targetStat) lastPop3Stat.message_count = currentPop3Stat.message_count; currentPop3Stat.message_recent = currentPop3Stat.message_unseen = 0; } +#else + currentPop3Stat.message_recent = currentPop3Stat.message_unseen=currentPop3Stat.message_count; +#endif + targetStat = currentImapStat; targetStat.message_unseen+=currentPop3Stat.message_unseen; targetStat.message_recent+=currentPop3Stat.message_recent; -- cgit v0.9.0.2