** generated unless the user explicitly sets one using the ``$my_hdr''
** command.
*/
+ { "use_ipv6", DT_BOOL, R_NONE, OPTUSEIPV6, 1},
+ /*
+ ** .pp
+ ** When \fIset\fP, Mutt will look for IPv6 addresses of hosts it tries to
+ ** contact. If this option is unset, Mutt will restrict itself to IPv4 addresses.
+ ** Normally, the default should work.
+ */
{ "user_agent", DT_BOOL, R_NONE, OPTXMAILER, 1},
/*
** .pp
/* we accept v4 or v6 STREAM sockets */
memset (&hints, 0, sizeof (hints));
- hints.ai_family = AF_UNSPEC;
+
+ if (option (OPTUSEIPV6))
+ hints.ai_family = AF_UNSPEC;
+ else
+ hints.ai_family = AF_INET;
+
hints.ai_socktype = SOCK_STREAM;
snprintf (port, sizeof (port), "%d", conn->account.port);