talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 1907a085b18ccb65520d1f51d4f98164b1013496
parent 65c117ed6fabe00737c01801b5eda6a04e9d1597
Author: Paul <paul@claws-mail.org>
Date:   Thu, 10 Oct 2013 13:26:12 +0100

fallback to 'localhost' rather than 'unknown' as some SMTP servers reject 'EHLO unknown', e.g. gmx and web.de. Thanks to Hanno Meyer-Thurow.

Diffstat:
Msrc/common/utils.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/common/utils.c b/src/common/utils.c @@ -2048,7 +2048,7 @@ const gchar *get_domain_name(void) if (gethostname(hostname, sizeof(hostname)) != 0) { perror("gethostname"); - domain_name = "unknown"; + domain_name = "localhost"; } else { hostname[sizeof(hostname) - 1] = '\0'; if ((hp = my_gethostbyname(hostname)) == NULL) { @@ -2063,7 +2063,7 @@ const gchar *get_domain_name(void) return domain_name; #else - return "unknown"; + return "localhost"; #endif }