#3298: Mutt's way to get the FQDN is broken
---------------------+----------------------
Reporter: vinc17 | Owner: mutt-dev
Type: defect | Status: reopened
Priority: major | Milestone:
Component: mutt | Version: 1.5.20
Resolution: | Keywords:
---------------------+----------------------
Comment (by code@…):
{{{
Here's an updated patch that does what I described in my previous
reply. This'll be fairly similar to my previous patch, but the extra
bits that dealt with replacing getaddrinfo() on systems that might not
have it have been removed. This version also makes the relevant code
in init.c a little nicer IMO... opinions may vary. ;-)
Patch is against the 4/11 snapshot. Note that I added a copyright/GPL
notice to the getdomain.c file (as I had previously); there's none in
the current file, though one is required for GPL licensing. I
included only myself as author as there was no previous notice, and
because every line of the original file is removed, excepting a couple
of includes.
I tested this for the cases where hostname is configured in muttrc,
compiled in via --with-domain, and using the default host resolution
scheme (which is NOT DNS on my system, as it happens). I can't test
other cases without breaking my system, but that should suffice. I
added an error message for which translations will be required...
Side note: compiling with "--with-domain foo" broke on my system,
whereas "--with-domain=foo" worked. Is that expected?
}}}
[attachment:"domain_patch"]
--
Ticket URL: </ticket/3298#comment:30>
Mutt <http://www.mutt.org/>
The Mutt mail user agent