From c1fbfa354fd49adcb87550f74991ee4721591f0a Mon Sep 17 00:00:00 2001 From: mguessan Date: Tue, 29 Sep 2009 00:10:45 +0000 Subject: [PATCH] IMAP: detect HttpNotFoundException on folder select git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@759 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/imap/ImapConnection.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/java/davmail/imap/ImapConnection.java b/src/java/davmail/imap/ImapConnection.java index 5ff29514..cbea2aca 100644 --- a/src/java/davmail/imap/ImapConnection.java +++ b/src/java/davmail/imap/ImapConnection.java @@ -201,6 +201,8 @@ public class ImapConnection extends AbstractConnection { } else { sendClient(commandId + " OK [READ-ONLY] " + command + " completed"); } + } catch (HttpNotFoundException e) { + sendClient(commandId + " NO Not found"); } catch (HttpForbiddenException e) { sendClient(commandId + " NO Forbidden"); }