author | alwin <alwin> | 2004-01-05 23:33:29 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-01-05 23:33:29 (UTC) |
commit | fa6a2e24a70be69724387355970814c0fb63701d (patch) (unidiff) | |
tree | 6c11151aef233a96157ba575e3b12668691a266a /noncore/net/mail/libmailwrapper/statusmail.cpp | |
parent | c8d0dd53a75b7142a5ce924e4afbea77b86e56b0 (diff) | |
download | opie-fa6a2e24a70be69724387355970814c0fb63701d.zip opie-fa6a2e24a70be69724387355970814c0fb63701d.tar.gz opie-fa6a2e24a70be69724387355970814c0fb63701d.tar.bz2 |
small bugfix
Diffstat (limited to 'noncore/net/mail/libmailwrapper/statusmail.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/statusmail.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/noncore/net/mail/libmailwrapper/statusmail.cpp b/noncore/net/mail/libmailwrapper/statusmail.cpp index 9f4c47c..98f6204 100644 --- a/noncore/net/mail/libmailwrapper/statusmail.cpp +++ b/noncore/net/mail/libmailwrapper/statusmail.cpp | |||
@@ -24,4 +24,7 @@ void StatusMail::initAccounts(QList<Account>&accounts) | |||
24 | folderStat currentStat; | 24 | folderStat currentStat; |
25 | AbstractMail * current = 0; | 25 | AbstractMail * current = 0; |
26 | currentPop3Stat.message_count=0; | ||
27 | currentPop3Stat.message_recent=0; | ||
28 | currentPop3Stat.message_unseen=0; | ||
26 | for ( it = accounts.first(); it; it = accounts.next() ) { | 29 | for ( it = accounts.first(); it; it = accounts.next() ) { |
27 | if ( it->getType().compare( "IMAP" ) == 0 ) { | 30 | if ( it->getType().compare( "IMAP" ) == 0 ) { |
@@ -69,9 +72,14 @@ void StatusMail::check_current_stat(folderStat&targetStat) | |||
69 | } else if (it->getType().lower()=="pop3") { | 72 | } else if (it->getType().lower()=="pop3") { |
70 | currentPop3Stat.message_count+=currentStat.message_count; | 73 | currentPop3Stat.message_count+=currentStat.message_count; |
74 | qDebug("Pop3 count: %i",currentPop3Stat.message_count); | ||
71 | } | 75 | } |
72 | } | 76 | } |
77 | qDebug("Pop3 last: %i",lastPop3Stat.message_count); | ||
73 | if (currentPop3Stat.message_count > lastPop3Stat.message_count) { | 78 | if (currentPop3Stat.message_count > lastPop3Stat.message_count) { |
74 | currentPop3Stat.message_recent = currentPop3Stat.message_count - lastPop3Stat.message_count; | 79 | currentPop3Stat.message_recent = currentPop3Stat.message_count - lastPop3Stat.message_count; |
75 | currentPop3Stat.message_unseen = currentPop3Stat.message_recent; | 80 | currentPop3Stat.message_unseen = currentPop3Stat.message_recent; |
81 | } else { | ||
82 | lastPop3Stat.message_count = currentPop3Stat.message_count; | ||
83 | currentPop3Stat.message_recent = currentPop3Stat.message_unseen = 0; | ||
76 | } | 84 | } |
77 | targetStat = currentImapStat; | 85 | targetStat = currentImapStat; |