aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-05-12 06:13:46 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-05-12 06:13:46 +0000
commite69917e02f0ec379fc87f163421c5404c702fa6b (patch)
treec79106ddad20f15939b6136f363095225ad499b5 /fetchmail.c
parent4e475032328d5fdaead5daaf6a00a46979cabf6e (diff)
downloadfetchmail-e69917e02f0ec379fc87f163421c5404c702fa6b.tar.gz
fetchmail-e69917e02f0ec379fc87f163421c5404c702fa6b.tar.bz2
fetchmail-e69917e02f0ec379fc87f163421c5404c702fa6b.zip
via localhost is gone.
svn path=/trunk/; revision=3302
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/fetchmail.c b/fetchmail.c
index cbddf07b..621a69f6 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -1062,25 +1062,7 @@ static int load_params(int argc, char **argv, int optind)
}
#endif /* !HAVE_GETHOSTBYNAME || !HAVE_RES_SEARCH */
- /*
- *
- * Compute the true name of the mailserver host.
- * There are two clashing cases here:
- *
- * (1) The poll name is a label, possibly on one of several
- * poll configurations for the same host. In this case
- * the `via' option will be present and give the true name.
- *
- * (2) The poll name is the true one, the via name is
- * localhost. This is going to be typical for ssh-using
- * configurations.
- *
- * We're going to assume the via name is true unless it's
- * localhost.
- */
- if ((ctl->server.via) &&
- (!(ctl->localnames && ctl->localnames->next) ||
- strcmp(ctl->server.via, "localhost")))
+ if (ctl->server.via)
ctl->server.queryname = xstrdup(ctl->server.via);
else
ctl->server.queryname = xstrdup(ctl->server.pollname);