author | alwin <alwin> | 2004-01-06 12:57:52 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-01-06 12:57:52 (UTC) |
commit | 46753cb77877f4807ab9b1ba3e6c7a4eed7bc1bd (patch) (side-by-side diff) | |
tree | cd0b99b0856f65499f7d15aaf5670822183dd660 | |
parent | 71b6178795294dcdc85dee7a8ec8e8470c5b06e0 (diff) | |
download | opie-46753cb77877f4807ab9b1ba3e6c7a4eed7bc1bd.zip opie-46753cb77877f4807ab9b1ba3e6c7a4eed7bc1bd.tar.gz opie-46753cb77877f4807ab9b1ba3e6c7a4eed7bc1bd.tar.bz2 |
status of pop3 accounts slightly reworked
when starting opiemail from taskbar applet the status will be
reset
-rw-r--r-- | noncore/net/mail/libmailwrapper/mailtypes.cpp | 9 | ||||
-rw-r--r-- | noncore/net/mail/libmailwrapper/mailtypes.h | 1 | ||||
-rw-r--r-- | noncore/net/mail/libmailwrapper/statusmail.cpp | 8 | ||||
-rw-r--r-- | noncore/net/mail/taskbarapplet/mailapplet.cpp | 2 |
4 files changed, 16 insertions, 4 deletions
diff --git a/noncore/net/mail/libmailwrapper/mailtypes.cpp b/noncore/net/mail/libmailwrapper/mailtypes.cpp index d8a36e7..bf91c63 100644 --- a/noncore/net/mail/libmailwrapper/mailtypes.cpp +++ b/noncore/net/mail/libmailwrapper/mailtypes.cpp @@ -334,2 +334,11 @@ void encodedString::setContent(char*nContent,int nSize) size = nSize; } + +folderStat&folderStat::operator=(const folderStat&old) +{ + message_count = old.message_count; + message_unseen = old.message_unseen; + message_recent = old.message_recent; + return *this; +} + diff --git a/noncore/net/mail/libmailwrapper/mailtypes.h b/noncore/net/mail/libmailwrapper/mailtypes.h index 05c4816..b2047cb 100644 --- a/noncore/net/mail/libmailwrapper/mailtypes.h +++ b/noncore/net/mail/libmailwrapper/mailtypes.h @@ -188,4 +188,5 @@ struct folderStat unsigned int message_unseen; unsigned int message_recent; + folderStat&operator=(const folderStat&old); }; 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 @@ -41,11 +41,13 @@ void StatusMail::initAccounts(QList<Account>&accounts) 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; } diff --git a/noncore/net/mail/taskbarapplet/mailapplet.cpp b/noncore/net/mail/taskbarapplet/mailapplet.cpp index 991b5fb..6078013 100644 --- a/noncore/net/mail/taskbarapplet/mailapplet.cpp +++ b/noncore/net/mail/taskbarapplet/mailapplet.cpp @@ -71,5 +71,5 @@ void MailApplet::slotClicked() { } - // m_statusMails->reset_status(); + if (m_statusMail) m_statusMail->reset_status(); } |