From f7a44a93b71a0e1a0fd2015d003036b1f4d110ae Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 17 Jan 2006 03:46:11 +0000 Subject: [PATCH] hack for INBOX... might be wrong darcs-hash:20060117034611-5007d-18f65334d4a8520efb6f01c3f1e0c3cee5717619.gz --- src/org/ibex/mail/protocol/IMAP.java | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 1.7.10.4