From: adam Date: Tue, 17 Jan 2006 03:46:11 +0000 (+0000) Subject: hack for INBOX... might be wrong X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=f7a44a93b71a0e1a0fd2015d003036b1f4d110ae;p=org.ibex.mail.git hack for INBOX... might be wrong darcs-hash:20060117034611-5007d-18f65334d4a8520efb6f01c3f1e0c3cee5717619.gz --- diff --git a/src/org/ibex/mail/protocol/IMAP.java b/src/org/ibex/mail/protocol/IMAP.java index f60c912..e00f2d5 100644 --- 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) { + + // 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;