changeset: 6572:73c8c033e184
user:      Kevin McCarthy <[email protected]>
date:      Sun Mar 13 19:04:12 2016 -0700
link:      http://dev.mutt.org/hg/mutt/rev/73c8c033e184

Update the $hostname documentation.

Change to reflect the updates in changeset ce71d168c819.

diffs (24 lines):

diff -r ad14066bf6c1 -r 73c8c033e184 init.h
--- a/init.h    Sun Mar 13 18:18:28 2016 -0700
+++ b/init.h    Sun Mar 13 19:04:12 2016 -0700
@@ -1067,13 +1067,13 @@
   ** 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.
   */

Reply via email to