@ -520,8 +520,10 @@ public class ImapConnection extends AbstractConnection {
@@ -520,8 +520,10 @@ public class ImapConnection extends AbstractConnection {
// clear cache before going to idle mode
currentFolder.clearCache();
DavGatewayTray.resetIcon();
intoriginalTimeout=client.getSoTimeout();
try{
intcount=0;
client.setSoTimeout(1000);
while(in.available()==0){
if(++count>=imapIdleDelay){
count=0;
@ -530,8 +532,15 @@ public class ImapConnection extends AbstractConnection {
@@ -530,8 +532,15 @@ public class ImapConnection extends AbstractConnection {
@ -543,6 +552,8 @@ public class ImapConnection extends AbstractConnection {
@@ -543,6 +552,8 @@ public class ImapConnection extends AbstractConnection {