X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sendlib.c;h=1802e1da8b3b4f0c6f82c903312ca0c92df7410e;hp=669140d54473b555048dc85739450ac41bd57759;hb=b6980caf7b13994c57957872876cdecc21e54a82;hpb=82f35ae0a006c52d0f6e3c5e09fdac5d16cddaf3;ds=sidebyside diff --git a/sendlib.c b/sendlib.c index 669140d..1802e1d 100644 --- a/sendlib.c +++ b/sendlib.c @@ -1539,22 +1539,22 @@ static void encode_headers (string_list_t * h) } } -const char *mutt_fqdn (short may_hide_host) +const char *mutt_fqdn(short may_hide_host) { char *p = NULL, *q; - if (Fqdn && Fqdn[0] != '@') { - p = Fqdn; + if (MCore.hostname && MCore.hostname[0] != '@') { + p = MCore.hostname; if (may_hide_host && option (OPTHIDDENHOST)) { - if ((p = strchr (Fqdn, '.'))) + if ((p = strchr(MCore.hostname, '.'))) p++; /* sanity check: don't hide the host if the fqdn is something like detebe.org. */ - if (!p || !(q = strchr (p, '.'))) - p = Fqdn; + if (!p || !(q = strchr(p, '.'))) + p = MCore.hostname; } } @@ -1657,7 +1657,7 @@ static char *mutt_gen_msgid (void) const char *fqdn; if (!(fqdn = mutt_fqdn(0))) - fqdn = NONULL(Hostname); + fqdn = NONULL(MCore.shorthost); mutt_gen_localpart(localpart, sizeof(localpart), MsgIdFormat); snprintf(buf, sizeof(buf), "<%s@%s>", localpart, fqdn);