diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-10-19 08:42:41 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-10-19 08:42:41 +0000 |
commit | 4a71a39c4168eb0643989db264ccecc4d550b454 (patch) | |
tree | 8372762721ee5882f4324008b8dcf6109fdd1d21 /init.c | |
parent | 73e857cf45c82da4fcdd53e8a4a94d31ed45479f (diff) |
handle domain == "@" properly.
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1548,10 +1548,13 @@ void mutt_init (int skip_sys_rc, LIST *commands) Fqdn = safe_strdup ("@"); else #endif /* DOMAIN */ + if (*DOMAIN != '@') { Fqdn = safe_malloc (strlen (DOMAIN) + strlen (NONULL(Hostname)) + 2); sprintf (Fqdn, "%s.%s", NONULL(Hostname), DOMAIN); } + else + Fqdn = safe_strdup(NONULL(Hostname)); if ((p = getenv ("MAIL"))) Spoolfile = safe_strdup (p); |