[balsa/wip/gtk4] imap-server: Unconditionally set the user and host
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/wip/gtk4] imap-server: Unconditionally set the user and host
- Date: Thu, 7 Jun 2018 01:04:42 +0000 (UTC)
commit d2da9d3f584c82976acd696e0dd5f9fbb7237031
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Wed Jun 6 21:03:26 2018 -0400
imap-server: Unconditionally set the user and host
libbalsa/imap-server.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/libbalsa/imap-server.c b/libbalsa/imap-server.c
index 86852ae9..c2043f85 100644
--- a/libbalsa/imap-server.c
+++ b/libbalsa/imap-server.c
@@ -405,9 +405,8 @@ g_print("%s host from newhost %s\n", G_STRFUNC, host);
imap_server = get_or_create(user, host);
server = LIBBALSA_SERVER(imap_server);
- if (libbalsa_server_get_username(server) == NULL) {
- libbalsa_server_set_username(server, user);
- }
+ libbalsa_server_set_username(server, user);
+ libbalsa_server_set_host(server, host, 0); /* Security is set later */
g_free(user);
g_free(host);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]