summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/mail/libmailwrapper/statusmail.cpp6
1 files changed, 6 insertions, 0 deletions
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
@@ -80,6 +80,8 @@ void StatusMail::check_current_stat(folderStat&targetStat)
80 } 80 }
81 } 81 }
82 odebug << "Pop3 last: " << lastPop3Stat.message_count << "" << oendl; 82 odebug << "Pop3 last: " << lastPop3Stat.message_count << "" << oendl;
83
84#if 0
83 if (currentPop3Stat.message_count > lastPop3Stat.message_count) { 85 if (currentPop3Stat.message_count > lastPop3Stat.message_count) {
84 currentPop3Stat.message_recent = currentPop3Stat.message_count - lastPop3Stat.message_count; 86 currentPop3Stat.message_recent = currentPop3Stat.message_count - lastPop3Stat.message_count;
85 currentPop3Stat.message_unseen = currentPop3Stat.message_recent; 87 currentPop3Stat.message_unseen = currentPop3Stat.message_recent;
@@ -87,6 +89,10 @@ void StatusMail::check_current_stat(folderStat&targetStat)
87 lastPop3Stat.message_count = currentPop3Stat.message_count; 89 lastPop3Stat.message_count = currentPop3Stat.message_count;
88 currentPop3Stat.message_recent = currentPop3Stat.message_unseen = 0; 90 currentPop3Stat.message_recent = currentPop3Stat.message_unseen = 0;
89 } 91 }
92#else
93 currentPop3Stat.message_recent = currentPop3Stat.message_unseen=currentPop3Stat.message_count;
94#endif
95
90 targetStat = currentImapStat; 96 targetStat = currentImapStat;
91 targetStat.message_unseen+=currentPop3Stat.message_unseen; 97 targetStat.message_unseen+=currentPop3Stat.message_unseen;
92 targetStat.message_recent+=currentPop3Stat.message_recent; 98 targetStat.message_recent+=currentPop3Stat.message_recent;