]> granicus.if.org Git - neomutt/commitdiff
Update the $hostname documentation.
authorKevin McCarthy <kevin@8t8.us>
Mon, 14 Mar 2016 02:04:12 +0000 (19:04 -0700)
committerKevin McCarthy <kevin@8t8.us>
Mon, 14 Mar 2016 02:04:12 +0000 (19:04 -0700)
Change to reflect the updates in changeset ce71d168c819.

init.h

diff --git a/init.h b/init.h
index 8b581f1979dc5d15f931b744a9e7aaf159218424..5a12ec0d06b7267b630e858b8393704ff85fb5cd 100644 (file)
--- a/init.h
+++ b/init.h
@@ -1067,13 +1067,13 @@ struct option_t MuttVars[] = {
   ** 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 \fCuname(3)\fP 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 \fC/etc/resolv.conf\fP to determine the domain. Optionally, Mutt
-  ** can be compiled with a fixed domain name in which case a detected
-  ** one is not used.
+  ** Its value is determined at startup as follows: the node's
+  ** hostname is first determined by the \fCuname(3)\fP function.  The
+  ** domain is then looked up using the \fCgethostname(2)\fP and
+  ** \fCgetaddrinfo(3)\fP functions.  If those calls are unable to
+  ** determine the domain, the full value returned by uname is used.
+  ** 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.
   */