summaryrefslogtreecommitdiff
path: root/noncore/net
authoralwin <alwin>2004-01-10 03:19:09 (UTC)
committer alwin <alwin>2004-01-10 03:19:09 (UTC)
commitdcfd6e5e2e2021bc5ed0bcf42b1b0a7002c59a17 (patch) (side-by-side diff)
tree26f1eb9a79dfadd985e83618c70a116c91a8f810 /noncore/net
parent76cf4990cb4171a747ac31e9832f4ee694ced2cc (diff)
downloadopie-dcfd6e5e2e2021bc5ed0bcf42b1b0a7002c59a17.zip
opie-dcfd6e5e2e2021bc5ed0bcf42b1b0a7002c59a17.tar.gz
opie-dcfd6e5e2e2021bc5ed0bcf42b1b0a7002c59a17.tar.bz2
when header displayed print just the count of messages not having
the \deleted flag set.
Diffstat (limited to 'noncore/net') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/libmailwrapper/imapwrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/mail/libmailwrapper/imapwrapper.cpp b/noncore/net/mail/libmailwrapper/imapwrapper.cpp
index 1c22c26..098dbdc 100644
--- a/noncore/net/mail/libmailwrapper/imapwrapper.cpp
+++ b/noncore/net/mail/libmailwrapper/imapwrapper.cpp
@@ -148,25 +148,24 @@ void IMAPwrapper::listMessages(const QString&mailbox,QList<RecMail> &target )
/* select mailbox READONLY for operations */
err = selectMbox(mailbox);
if ( err != MAILIMAP_NO_ERROR ) {
return;
}
int last = m_imap->imap_selection_info->sel_exists;
if (last == 0) {
Global::statusMessage(tr("Mailbox has no mails"));
return;
} else {
- Global::statusMessage(tr("Mailbox has %1 mails").arg(last));
}
/* the range has to start at 1!!! not with 0!!!! */
set = mailimap_set_new_interval( 1, last );
fetchType = mailimap_fetch_type_new_fetch_att_list_empty();
mailimap_fetch_type_new_fetch_att_list_add(fetchType,mailimap_fetch_att_new_envelope());
mailimap_fetch_type_new_fetch_att_list_add(fetchType,mailimap_fetch_att_new_flags());
mailimap_fetch_type_new_fetch_att_list_add(fetchType,mailimap_fetch_att_new_internaldate());
mailimap_fetch_type_new_fetch_att_list_add(fetchType,mailimap_fetch_att_new_rfc822_size());
err = mailimap_fetch( m_imap, set, fetchType, &result );
mailimap_set_free( set );
@@ -179,24 +178,25 @@ void IMAPwrapper::listMessages(const QString&mailbox,QList<RecMail> &target )
int i = 0;
for (current = clist_begin(result); current != 0; current=clist_next(current)) {
++i;
msg_att = (mailimap_msg_att*)current->data;
RecMail*m = parse_list_result(msg_att);
if (m) {
m->setNumber(i);
m->setMbox(mailbox);
m->setWrapper(this);
target.append(m);
}
}
+ Global::statusMessage(tr("Mailbox has %1 mails").arg(target.count()));
} else {
Global::statusMessage(tr("Error fetching headers: %1").arg(m_imap->imap_response));
}
if (result) mailimap_fetch_list_free(result);
}
QList<Folder>* IMAPwrapper::listFolders()
{
const char *path, *mask;
int err = MAILIMAP_NO_ERROR;
clist *result = 0;
clistcell *current = 0;