[geary/mjog/dovecot-envelope-mailbox-quirk: 1/5] Geary.Imap.ClientSession: Add property for the IMAP server's greeting
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/dovecot-envelope-mailbox-quirk: 1/5] Geary.Imap.ClientSession: Add property for the IMAP server's greeting
- Date: Tue, 18 Aug 2020 06:34:36 +0000 (UTC)
commit 15a87be780405de06f4114067bfca74359d2942f
Author: Michael Gratton <mike vee net>
Date: Tue Aug 18 15:10:20 2020 +1000
Geary.Imap.ClientSession: Add property for the IMAP server's greeting
src/engine/imap/transport/imap-client-session.vala | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/src/engine/imap/transport/imap-client-session.vala
b/src/engine/imap/transport/imap-client-session.vala
index 68e6f06e2..27e84837c 100644
--- a/src/engine/imap/transport/imap-client-session.vala
+++ b/src/engine/imap/transport/imap-client-session.vala
@@ -245,6 +245,14 @@ public class Geary.Imap.ClientSession : BaseObject, Logging.Source {
get { return this.capabilities.has_capability(Capabilities.IDLE); }
}
+ /**
+ * The server's greeting, if any.
+ *
+ * This will be null up until the session has successfully
+ * connected and the server has responded with a greeting.
+ */
+ public StatusResponse? server_greeting { get; private set; default = null; }
+
/** The currently selected mailbox, if any. */
public MailboxSpecifier? selected_mailbox = null;
@@ -846,9 +854,12 @@ public class Geary.Imap.ClientSession : BaseObject, Logging.Source {
new_state = State.LOGOUT;
}
+ this.server_greeting = status_response;
+ debug("Server greeting: %s", status_response.get_text());
+
try {
- connect_waiter.notify();
- } catch (Error err) {
+ this.connect_waiter.notify();
+ } catch (GLib.Error err) {
warning(
"Unable to notify connect_waiter of connection: %s",
err.message
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]