]> granicus.if.org Git - neomutt/commitdiff
Properly document $hostname, link it to $use_domain and $hidden_host. Closes #891.
authorRocco Rutte <pdmef@gmx.net>
Tue, 13 Nov 2007 10:15:04 +0000 (11:15 +0100)
committerRocco Rutte <pdmef@gmx.net>
Tue, 13 Nov 2007 10:15:04 +0000 (11:15 +0100)
init.h

diff --git a/init.h b/init.h
index 6521810202c0e2bac354aab6de0485a01e5c5256..527a3660844403e8763b5fe420d07f4ddcf71dd0 100644 (file)
--- a/init.h
+++ b/init.h
@@ -811,9 +811,20 @@ struct option_t MuttVars[] = {
   { "hostname",                DT_STR,  R_NONE, UL &Fqdn, 0 },
   /*
   ** .pp
-  ** Specifies the hostname to use after the ``@'' in local e-mail
-  ** addresses.  This overrides the compile time definition obtained from
-  ** /etc/resolv.conf.
+  ** Specifies the fully-qualified hostname of the system mutt is running on
+  ** containing the host's name and the DNS domain it belongs to. It is used
+  ** as the domain part (after ``@'') for local email addresses as well as
+  ** Message-Id headers.
+  ** .pp
+  ** Its value is determined at startup as follows: If the node's name
+  ** as returned by the uname(3) function contains the hostname and the
+  ** domain, these are used to construct $$hostname. If there is no
+  ** domain part returned, Mutt will look for a ``domain'' or ``search''
+  ** line in /etc/resolv.conf to determine the domain. Optionally, Mutt
+  ** can be compiled with a fixed domain name in which case a detected
+  ** one is not used.
+  ** .pp
+  ** Also see ``$$use_domain'' and ``$$hidden_host''.
   */
   { "ignore_linear_white_space",    DT_BOOL, R_NONE, OPTIGNORELWS, 0 },
   /*