From b902a9507bd596307ce39b4d44c8b588b1c09336 Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 17 Aug 2004 23:15:17 +0000 Subject: [PATCH] handle lack of INBOX more gracefully in IMAP darcs-hash:20040817231517-5007d-5c33089967de4335d330952ded99b9df47a9ce38.gz --- src/org/ibex/mail/protocol/IMAP.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/ibex/mail/protocol/IMAP.java b/src/org/ibex/mail/protocol/IMAP.java index 45ff1dc..d418ca5 100644 --- a/src/org/ibex/mail/protocol/IMAP.java +++ b/src/org/ibex/mail/protocol/IMAP.java @@ -120,6 +120,7 @@ public class IMAP { String[] children = (start.length() == 0 ? root : mailbox(start, false)).children(); for(int i=0; i 0 ? sep+"" : "") + s; + if (mailbox(kid, false) == null) continue; boolean phantom = mailbox(kid, false).phantom(); while(true) { if (pre.length() == 0) { @@ -157,7 +158,7 @@ public class IMAP { Account account = null; if ((account = auth.login(u,p)) == null) throw new No("Login failed."); root = account.getMailbox(IMAP.class); - inbox = mailbox("INBOX", false); // FEATURE: ?? + inbox = root.slash("INBOX", false); if (inbox == null) inbox = root; } public void unselect() { selected = null; } -- 1.7.10.4