* message-make-fqdn generating strange Message-ID
@ 2017-02-17 11:03 Adam Sjøgren
2017-02-17 11:25 ` Rasmus
0 siblings, 1 reply; 3+ messages in thread
From: Adam Sjøgren @ 2017-02-17 11:03 UTC (permalink / raw)
To: ding
Just having switched to Gnus from GNU Emacs master, Gnus complained:
The Message-ID looks strange: "<87lgt59kxb.fsf@tullinup>". Really post? (y or n)
This because gethostname() on my machine returns "tullinup" and
previously message-make-fqdn caught this by matching against
message-valid-fqdn-regexp, which was removed in 762986c9d36:
- ((and (string-match message-valid-fqdn-regexp sysname)
- (not (string-match message-bogus-system-names sysname)))
+ ((and (string-match message-bogus-system-names sysname))
(larsi fixed the "((and" to "((not" later).
Should message-make-fqdn grow a simpler check ("Is there a '.' in the
sysname"), should the order of checks in it be shuffled around, or is my
machine broken when gethostname()¹ returns just the hostname
(hostname(1) returns the fqdn when given the -f option)?
For now I have set message-user-fqdn.
Best regards,
Adam
¹: #include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
int main(void) {
char hostname[1001];
int ret;
ret=gethostname(hostname, 1000);
printf("%d gethostname: %s\n", ret, hostname);
exit(0);
}
prints: 0 gethostname: tullinup
--
"Angels can fly because they take themselves lightly." Adam Sjøgren
asjo@koldfront.dk
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-02-17 17:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-17 11:03 message-make-fqdn generating strange Message-ID Adam Sjøgren
2017-02-17 11:25 ` Rasmus
2017-02-17 17:48 ` Adam Sjøgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).