[geary/wip/182-goa-smtp-auth-method-b0rked] Consult correct GOA settings when configuring SMTP TLS method
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/182-goa-smtp-auth-method-b0rked] Consult correct GOA settings when configuring SMTP TLS method
- Date: Tue, 8 Jan 2019 21:54:02 +0000 (UTC)
commit 6cd7f066f501ed6afc4983135a227a3b76645f98
Author: Michael Gratton <mike vee net>
Date: Wed Jan 9 08:52:36 2019 +1100
Consult correct GOA settings when configuring SMTP TLS method
Fixes #182
src/client/application/goa-mediator.vala | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/client/application/goa-mediator.vala b/src/client/application/goa-mediator.vala
index 21e79d6e..5495db5e 100644
--- a/src/client/application/goa-mediator.vala
+++ b/src/client/application/goa-mediator.vala
@@ -47,16 +47,12 @@ public class GoaMediator : Geary.CredentialsMediator, Object {
public async void update(Geary.AccountInformation geary_account,
GLib.Cancellable? cancellable)
throws GLib.Error {
- debug("checking auth");
// Call this to get the exception thrown if no auth method is
// supported.
get_auth_method();
- debug("updating imap");
update_imap_config(geary_account.incoming);
- debug("updating smtp");
update_smtp_config(geary_account.outgoing);
- debug("updating done");
}
public virtual async bool load_token(Geary.AccountInformation account,
@@ -165,9 +161,9 @@ public class GoaMediator : Geary.CredentialsMediator, Object {
if (mail != null) {
parse_host_name(service, mail.smtp_host);
- if (mail.imap_use_ssl) {
+ if (mail.smtp_use_ssl) {
service.transport_security = Geary.TlsNegotiationMethod.TRANSPORT;
- } else if (mail.imap_use_tls) {
+ } else if (mail.smtp_use_tls) {
service.transport_security = Geary.TlsNegotiationMethod.START_TLS;
} else {
service.transport_security = Geary.TlsNegotiationMethod.NONE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]