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:
ea39b54
)
hack for INBOX... might be wrong
author
adam
<adam@megacz.com>
Tue, 17 Jan 2006 03:46:11 +0000
(
03:46
+0000)
committer
adam
<adam@megacz.com>
Tue, 17 Jan 2006 03:46:11 +0000
(
03:46
+0000)
darcs-hash:
20060117034611
-5007d-
18f65334d4a8520efb6f01c3f1e0c3cee5717619
.gz
src/org/ibex/mail/protocol/IMAP.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/mail/protocol/IMAP.java
b/src/org/ibex/mail/protocol/IMAP.java
index
f60c912
..
e00f2d5
100644
(file)
--- a/
src/org/ibex/mail/protocol/IMAP.java
+++ b/
src/org/ibex/mail/protocol/IMAP.java
@@
-127,6
+127,10
@@
public class IMAP {
public void lsub(String start, String ref) { list(start, ref, true); }
public void list(String start, String ref) { list(start, ref, false); }
public void list(String start, String ref, boolean lsub) {
public void lsub(String start, String ref) { list(start, ref, true); }
public void list(String start, String ref) { list(start, ref, false); }
public void list(String start, String ref, boolean lsub) {
+
+ // FIXME this might be wrong
+ if (ref.equalsIgnoreCase("inbox")) { client.list(sep,"inbox",lsub,false); return; }
+
if (ref.length() == 0) { client.list(sep, start, lsub, false); return; }
while (start.endsWith(""+sep)) start = start.substring(0, start.length() - 1);
if (ref.endsWith("%")) ref = ref + sep;
if (ref.length() == 0) { client.list(sep, start, lsub, false); return; }
while (start.endsWith(""+sep)) start = start.substring(0, start.length() - 1);
if (ref.endsWith("%")) ref = ref + sep;