From 82d439ab4b351b4193521428fa449f392c8ec0ac Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 18 Jan 1998 17:59:03 +0000 Subject: Better behavior in absence of bind library. svn path=/trunk/; revision=1595 --- fetchmail.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index 49c163c2..90446961 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -654,16 +654,6 @@ static int load_params(int argc, char **argv, int optind) if (!ctl->localnames) /* for local delivery via SMTP */ save_str_pair(&ctl->localnames, user, NULL); -#if !defined(HAVE_GETHOSTBYNAME) || !defined(HAVE_RES_SEARCH) - /* can't handle multidrop mailboxes unless we can do DNS lookups */ - if (ctl->localnames && ctl->localnames->next && ctl->server.dns) - { - fputs("fetchmail: can't handle multidrop mailboxes without DNS\n", - stderr); - exit(PS_SYNTAX); - } -#endif /* !HAVE_GETHOSTBYNAME || !HAVE_RES_SEARCH */ - /* this code enables flags to be turned off */ #define DEFAULT(flag, dflt) if (flag == FLAG_TRUE)\ flag = TRUE;\ @@ -683,6 +673,15 @@ static int load_params(int argc, char **argv, int optind) DEFAULT(ctl->server.uidl, FALSE); #undef DEFAULT +#if !defined(HAVE_GETHOSTBYNAME) || !defined(HAVE_RES_SEARCH) + /* can't handle multidrop mailboxes unless we can do DNS lookups */ + if (ctl->localnames && ctl->localnames->next && ctl->server.dns) + { + ctl->server.dns = FALSE; + fprintf(stderr, "fetchmail: warning: no DNS available to check multidrop fetches from %s\n", ctl->server.pollname); + } +#endif /* !HAVE_GETHOSTBYNAME || !HAVE_RES_SEARCH */ + /* * * Compute the true name of the mailserver host. -- cgit v1.2.3