[Commits] [SCM] claws branch, master, updated. 3.9.2-92-g1907a08

claws at claws-mail.org claws at claws-mail.org
Thu Oct 10 14:26:20 CEST 2013


The branch master of project "claws" (Claws Mail) has been updated
       via  1907a085b18ccb65520d1f51d4f98164b1013496 (commit)
      from  65c117ed6fabe00737c01801b5eda6a04e9d1597 (commit)


- Log -----------------------------------------------------------------
commit 1907a085b18ccb65520d1f51d4f98164b1013496
Author: Paul <paul at claws-mail.org>
Date:   Thu Oct 10 13:26:12 2013 +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.

diff --git a/src/common/utils.c b/src/common/utils.c
index 0512289..53a9ddb 100644
--- 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
 }
 

-----------------------------------------------------------------------

Summary of changes:
 src/common/utils.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list