hack for INBOX... might be wrong
authoradam <adam@megacz.com>
Tue, 17 Jan 2006 03:46:11 +0000 (03:46 +0000)
committeradam <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

index f60c912..e00f2d5 100644 (file)
@@ -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;