diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-01-18 17:59:03 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-01-18 17:59:03 +0000 |
commit | 82d439ab4b351b4193521428fa449f392c8ec0ac (patch) | |
tree | 51843f4a9e003cc1c5804685ed9e5ff8213def94 /fetchmail.c | |
parent | bc1dbec642a692d2b84d32cee53837dc5f01b726 (diff) | |
download | fetchmail-82d439ab4b351b4193521428fa449f392c8ec0ac.tar.gz fetchmail-82d439ab4b351b4193521428fa449f392c8ec0ac.tar.bz2 fetchmail-82d439ab4b351b4193521428fa449f392c8ec0ac.zip |
Better behavior in absence of bind library.
svn path=/trunk/; revision=1595
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 19 |
1 files changed, 9 insertions, 10 deletions
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. |