projects
/
org.ibex.mail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
39de1cc
)
use maxuid() in IMAP.java
author
adam
<adam@megacz.com>
Sat, 1 Mar 2008 08:15:26 +0000
(08:15 +0000)
committer
adam
<adam@megacz.com>
Sat, 1 Mar 2008 08:15:26 +0000
(08:15 +0000)
darcs-hash:
20080301081526
-5007d-
db6635d681d0b40b5e2ac00d717bfc1f99c1d5e4
.gz
src/org/ibex/mail/IMAP.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/mail/IMAP.java
b/src/org/ibex/mail/IMAP.java
index
f790298
..
9588cb4
100644
(file)
--- a/
src/org/ibex/mail/IMAP.java
+++ b/
src/org/ibex/mail/IMAP.java
@@
-215,8
+215,7
@@
public class IMAP {
int ret = 0;
Mailbox mb = selected();
if (mb == null) return 0;
int ret = 0;
Mailbox mb = selected();
if (mb == null) return 0;
- for(Mailbox.Iterator it = mb.iterator(); it.next(); ) ret = it.uid();
- return ret;
+ return mb.maxuid();
}
public int unseen(String mailbox) { return mailbox(mailbox, false).count(Query.not(Query.seen())); }
public int recent(String mailbox) { return mailbox(mailbox, false).count(Query.recent()); }
}
public int unseen(String mailbox) { return mailbox(mailbox, false).count(Query.not(Query.seen())); }
public int recent(String mailbox) { return mailbox(mailbox, false).count(Query.recent()); }