From 1aa5b7ad191fe589eb7b9bd8256d55c925185a1e Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 24 Sep 2001 23:31:48 +0000 Subject: Move Hesiod lookups away from startup time. svn path=/trunk/; revision=3484 --- fetchmail.c | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index 5cd7bc5e..7ff33f25 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -34,13 +34,6 @@ #ifdef HAVE_NET_SOCKET_H #include #endif -#ifdef HAVE_GETHOSTBYNAME -#include -#endif /* HAVE_GETHOSTBYNAME */ - -#ifdef HESIOD -#include -#endif #include "getopt.h" #include "fetchmail.h" @@ -1087,26 +1080,6 @@ static int load_params(int argc, char **argv, int optind) else ctl->server.queryname = xstrdup(ctl->server.pollname); -#ifdef HESIOD - /* If either the pollname or vianame are "hesiod" we want to - lookup the user's hesiod pobox host */ - if (!strcasecmp(ctl->server.queryname, "hesiod")) { - struct hes_postoffice *hes_p; - hes_p = hes_getmailhost(ctl->remotename); - if (hes_p != NULL && strcmp(hes_p->po_type, "POP") == 0) { - free(ctl->server.queryname); - ctl->server.queryname = xstrdup(hes_p->po_host); - if (ctl->server.via) - free(ctl->server.via); - ctl->server.via = xstrdup(hes_p->po_host); - } else { - report(stderr, - GT_("couldn't find HESIOD pobox for %s\n"), - ctl->remotename); - } - } -#endif /* HESIOD */ - /* * We no longer do DNS lookups at startup. * This is a kluge. It enables users to edit their -- cgit v1.2.3