From: Kevin McCarthy Date: Mon, 14 Mar 2016 02:04:12 +0000 (-0700) Subject: Update the $hostname documentation. X-Git-Tag: neomutt-20160404~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cebc34966f178cdefb3b859eaf56073ab5f8b047;p=neomutt Update the $hostname documentation. Change to reflect the updates in changeset ce71d168c819. --- diff --git a/init.h b/init.h index 8b581f197..5a12ec0d0 100644 --- 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. */