Fixes bgo #724709 "Unable to enter IDLE" from Dovecot server
This commit is contained in:
parent
cb36fa5176
commit
042c661e7f
2 changed files with 6 additions and 2 deletions
1
THANKS
1
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>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue