Hi,
I've been bitten by a problem where my whole list of mail-accounts hasn't
been checked for a time because one mailserver wasn't resolvable due to
provider problems.
I always got the message "couldn't find canonical DNS name of xxx" directly
after startup and fetchmail exited with PS_DNS.
I think the correct behavior should be to print out an errormessage like
that and skip this host but poll the others.
So I wrote a patch which does exactly that (at least I hope so...).
Would you fetchmail-gods please take a look at it and tell my if it could
have unwanted side-effects like missing an alias for multidrop or something
else.
Thank you.
Regards,
Gerd
diff -r -u fetchmail-5.8.7.orig/fetchmail.c fetchmail-5.8.7/fetchmail.c
--- fetchmail-5.8.7.orig/fetchmail.c Sun Jun 17 16:11:29 2001
+++ fetchmail-5.8.7/fetchmail.c Tue Jun 19 14:36:23 2001
@@ -1159,7 +1159,8 @@
report(stderr,
_("couldn't find canonical DNS name of %s\n"),
ctl->server.pollname);
- exit(PS_DNS);
+ ctl->server.truename = xstrdup(ctl->server.queryname);
+ ctl->server.trueaddr = NULL;
}
else {
ctl->server.truename=xstrdup((char *)namerec->h_name);