summaryrefslogtreecommitdiff
authoralwin <alwin>2004-01-10 03:19:09 (UTC)
committer alwin <alwin>2004-01-10 03:19:09 (UTC)
commitdcfd6e5e2e2021bc5ed0bcf42b1b0a7002c59a17 (patch) (unidiff)
tree26f1eb9a79dfadd985e83618c70a116c91a8f810
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 (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
@@ -152,17 +152,16 @@ void IMAPwrapper::listMessages(const QString&mailbox,QList<RecMail> &target )
152 } 152 }
153 153
154 int last = m_imap->imap_selection_info->sel_exists; 154 int last = m_imap->imap_selection_info->sel_exists;
155 155
156 if (last == 0) { 156 if (last == 0) {
157 Global::statusMessage(tr("Mailbox has no mails")); 157 Global::statusMessage(tr("Mailbox has no mails"));
158 return; 158 return;
159 } else { 159 } else {
160 Global::statusMessage(tr("Mailbox has %1 mails").arg(last));
161 } 160 }
162 161
163 /* the range has to start at 1!!! not with 0!!!! */ 162 /* the range has to start at 1!!! not with 0!!!! */
164 set = mailimap_set_new_interval( 1, last ); 163 set = mailimap_set_new_interval( 1, last );
165 fetchType = mailimap_fetch_type_new_fetch_att_list_empty(); 164 fetchType = mailimap_fetch_type_new_fetch_att_list_empty();
166 mailimap_fetch_type_new_fetch_att_list_add(fetchType,mailimap_fetch_att_new_envelope()); 165 mailimap_fetch_type_new_fetch_att_list_add(fetchType,mailimap_fetch_att_new_envelope());
167 mailimap_fetch_type_new_fetch_att_list_add(fetchType,mailimap_fetch_att_new_flags()); 166 mailimap_fetch_type_new_fetch_att_list_add(fetchType,mailimap_fetch_att_new_flags());
168 mailimap_fetch_type_new_fetch_att_list_add(fetchType,mailimap_fetch_att_new_internaldate()); 167 mailimap_fetch_type_new_fetch_att_list_add(fetchType,mailimap_fetch_att_new_internaldate());
@@ -183,16 +182,17 @@ void IMAPwrapper::listMessages(const QString&mailbox,QList<RecMail> &target )
183 RecMail*m = parse_list_result(msg_att); 182 RecMail*m = parse_list_result(msg_att);
184 if (m) { 183 if (m) {
185 m->setNumber(i); 184 m->setNumber(i);
186 m->setMbox(mailbox); 185 m->setMbox(mailbox);
187 m->setWrapper(this); 186 m->setWrapper(this);
188 target.append(m); 187 target.append(m);
189 } 188 }
190 } 189 }
190 Global::statusMessage(tr("Mailbox has %1 mails").arg(target.count()));
191 } else { 191 } else {
192 Global::statusMessage(tr("Error fetching headers: %1").arg(m_imap->imap_response)); 192 Global::statusMessage(tr("Error fetching headers: %1").arg(m_imap->imap_response));
193 } 193 }
194 if (result) mailimap_fetch_list_free(result); 194 if (result) mailimap_fetch_list_free(result);
195} 195}
196 196
197QList<Folder>* IMAPwrapper::listFolders() 197QList<Folder>* IMAPwrapper::listFolders()
198{ 198{