diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-07-05 19:08:18 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-07-05 19:08:18 +0000 |
commit | 4640f5541a1699ea3805e8a0801811201d9c24ef (patch) | |
tree | aa5c89f92e5d1426386f71faefbf1c13eadd16d3 /fetchmail.c | |
parent | 3fdc882c9627f13b63eb087c71e96caf045da05d (diff) | |
download | fetchmail-4640f5541a1699ea3805e8a0801811201d9c24ef.tar.gz fetchmail-4640f5541a1699ea3805e8a0801811201d9c24ef.tar.bz2 fetchmail-4640f5541a1699ea3805e8a0801811201d9c24ef.zip |
Allow duplicate hostnames again.
svn path=/trunk/; revision=1152
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 53 |
1 files changed, 1 insertions, 52 deletions
diff --git a/fetchmail.c b/fetchmail.c index 3700b0e8..86f7e15d 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -49,7 +49,6 @@ static int load_params(int, char **, int); static void dump_params (struct query *); static int query_host(struct query *); -static char *visbuf(const char *); /* controls the detail level of status/progress messages written to stderr */ int outlevel; /* see the O_.* constants above */ @@ -579,16 +578,6 @@ static int load_params(int argc, char **argv, int optind) } #endif /* !HAVE_GETHOSTBYNAME || !HAVE_RES_SEARCH */ - /* compute server leaders for queries */ - for (mp = querylist; mp && mp != ctl; mp = mp->next) - if (strcmp(mp->server.names->id, ctl->server.names->id) == 0) - { - ctl->server.lead_server = mp->server.lead_server; - goto no_new_server; - } - ctl->server.lead_server = &(ctl->server); - no_new_server:; - /* this code enables flags to be turned off */ #define DEFAULT(flag, dflt) if (flag == FLAG_TRUE)\ flag = TRUE;\ @@ -597,8 +586,8 @@ static int load_params(int argc, char **argv, int optind) else\ flag = (dflt) DEFAULT(ctl->keep, FALSE); - DEFAULT(ctl->flush, FALSE); DEFAULT(ctl->fetchall, FALSE); + DEFAULT(ctl->flush, FALSE); DEFAULT(ctl->rewrite, TRUE); DEFAULT(ctl->stripcr, (ctl->mda != (char *)NULL)); DEFAULT(ctl->forcecr, FALSE); @@ -954,44 +943,4 @@ void dump_params (struct query *ctl) } } -static char *visbuf(const char *buf) -/* visibilize a given string */ -{ - static char vbuf[BUFSIZ]; - char *tp = vbuf; - - while (*buf) - { - if (isprint(*buf) || *buf == ' ') - *tp++ = *buf++; - else if (*buf == '\n') - { - *tp++ = '\\'; *tp++ = 'n'; - buf++; - } - else if (*buf == '\r') - { - *tp++ = '\\'; *tp++ = 'r'; - buf++; - } - else if (*buf == '\b') - { - *tp++ = '\\'; *tp++ = 'b'; - buf++; - } - else if (*buf < ' ') - { - *tp++ = '\\'; *tp++ = '^'; *tp++ = '@' + *buf; - buf++; - } - else - { - (void) sprintf(tp, "\\0x%02x", *buf++); - tp += strlen(tp); - } - } - *tp++ = '\0'; - return(vbuf); -} - /* fetchmail.c ends here */ |