From d1a7eb08cad465c5fc0de53f75aaecf7803f0945 Mon Sep 17 00:00:00 2001 From: alwin Date: Sun, 28 Dec 2003 02:45:07 +0000 Subject: - dir handling for mbox accounts (delete, new, delete all mail) - fixed memory leaks in mbox account class - reduced count of used string constants while using "tr" with context string - mbox displays messages into global status bar - fixed a possible raise condition when deleting a mail directory --- (limited to 'noncore/net/mail/libmailwrapper/pop3wrapper.cpp') diff --git a/noncore/net/mail/libmailwrapper/pop3wrapper.cpp b/noncore/net/mail/libmailwrapper/pop3wrapper.cpp index efd83ba..b85fbf6 100644 --- a/noncore/net/mail/libmailwrapper/pop3wrapper.cpp +++ b/noncore/net/mail/libmailwrapper/pop3wrapper.cpp @@ -2,9 +2,8 @@ #include "pop3wrapper.h" #include "mailtypes.h" #include "logindialog.h" -#include -#include -#include +#include +#include #include /* we don't fetch messages larger than 5 MB */ @@ -112,6 +111,7 @@ void POP3wrapper::listMessages(const QString &, QList &target ) login(); if (!m_pop3) return; + mailpop3_list( m_pop3, &messages ); for (unsigned int i = 0; i < carray_count(messages);++i) { @@ -132,6 +132,7 @@ void POP3wrapper::listMessages(const QString &, QList &target ) target.append( mail ); free(header); } + Global::statusMessage( tr("Mailbox contains %1 mail(s)").arg(carray_count(messages)-m_pop3->pop3_deleted_count)); } void POP3wrapper::login() -- cgit v0.9.0.2