Deal with $hostname and $shorthost
[apps/madmutt.git] / compose.c
index 9d37626..b0e93d4 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -426,7 +426,7 @@ static const char *compose_format_str (char *buf, ssize_t buflen, char op,
 
   case 'h':                    /* hostname */
     snprintf (fmt, sizeof (fmt), "%%%ss", prefix);
-    snprintf (buf, buflen, fmt, NONULL (Hostname));
+    snprintf (buf, buflen, fmt, NONULL(MCore.shorthost));
     break;
 
   case 'l':                    /* approx length of current message in bytes */