diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-02-11 16:41:05 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-02-11 16:41:05 +0000 |
commit | 6a29b0a26a977979e2fdc53fc3419447827fe61c (patch) | |
tree | 5469144318de090bfd27a45a86d5e586eeddac99 /etrn.c | |
parent | caabfa5d935ae2799e9830f70ac68ea69443ac8e (diff) | |
download | fetchmail-6a29b0a26a977979e2fdc53fc3419447827fe61c.tar.gz fetchmail-6a29b0a26a977979e2fdc53fc3419447827fe61c.tar.bz2 fetchmail-6a29b0a26a977979e2fdc53fc3419447827fe61c.zip |
Get the ETRN command right.
svn path=/trunk/; revision=865
Diffstat (limited to 'etrn.c')
-rw-r--r-- | etrn.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -45,7 +45,8 @@ static int etrn_getrange(FILE *sockfp, struct query *ctl, int*countp, int*newp) *countp = *newp = -1; /* make sure we don't enter the fetch loop */ /* ship the actual poll and get the response */ - gen_send(sockfp, "ETRN %s", ctl->server.names->id); + gethostbyname(buf, sizeof(buf)); + gen_send(sockfp, "ETRN %s", buf); if (ok = gen_recv(sockfp, buf, sizeof(buf))) return(ok); |