[geary] Fixes bgo #724709 "Unable to enter IDLE" from Dovecot server



commit 042c661e7f7f97675dbee7e70e44b1e64a36b2a1
Author: Michael Gratton <mike vee net>
Date:   Thu Feb 20 12:48:36 2014 -0800

    Fixes bgo #724709 "Unable to enter IDLE" from Dovecot server

 THANKS                                             |    1 +
 .../imap/transport/imap-client-connection.vala     |    7 +++++--
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/THANKS b/THANKS
index 84d8e17..0418450 100644
--- a/THANKS
+++ b/THANKS
@@ -14,6 +14,7 @@ Victor Eduardo <victor elementaryos org>
 Daniel Foré <daniel elementaryos org>
 Jens Georg <mail jensge org>
 Michael George <mdgeorge cs cornell edu>
+Michael Gratton <mike vee net>
 Sven Hagemann <sven rednose nl>
 Mathias Hasselmann <mathias openismus com>
 Timo Kluck <tkluck infty nl>
diff --git a/src/engine/imap/transport/imap-client-connection.vala 
b/src/engine/imap/transport/imap-client-connection.vala
index d14b69d..9ca950f 100644
--- a/src/engine/imap/transport/imap-client-connection.vala
+++ b/src/engine/imap/transport/imap-client-connection.vala
@@ -32,6 +32,9 @@ public class Geary.Imap.ClientConnection : BaseObject {
     
     private const int FLUSH_TIMEOUT_MSEC = 10;
     
+    // At least one server out there requires this to be in caps
+    private const string IDLE_DONE = "DONE";
+    
     private enum State {
         UNCONNECTED,
         CONNECTED,
@@ -951,8 +954,8 @@ public class Geary.Imap.ClientConnection : BaseObject {
         }
         
         try {
-            Logging.debug(Logging.Flag.NETWORK, "[%s S] %s", to_string(), "done");
-            ser.push_unquoted_string("done");
+            Logging.debug(Logging.Flag.NETWORK, "[%s S] %s", to_string(), IDLE_DONE);
+            ser.push_unquoted_string(IDLE_DONE);
             ser.push_eol();
         } catch (Error err) {
             debug("[%s] Unable to close IDLE: %s", to_string(), err.message);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]