diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-06-24 19:24:02 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-06-24 19:24:02 +0000 |
commit | c0221cbe360b83eac652d474c6c72a1eb3016268 (patch) | |
tree | 7c265e03cc5e838e696d8531629914aadf694e10 /odmr.c | |
parent | 6006dd080700778ae0e7cefc4e56b5e800e8db1e (diff) | |
download | fetchmail-c0221cbe360b83eac652d474c6c72a1eb3016268.tar.gz fetchmail-c0221cbe360b83eac652d474c6c72a1eb3016268.tar.bz2 fetchmail-c0221cbe360b83eac652d474c6c72a1eb3016268.zip |
Implemented fetchdomains.
svn path=/trunk/; revision=3373
Diffstat (limited to 'odmr.c')
-rw-r--r-- | odmr.c | 20 |
1 files changed, 6 insertions, 14 deletions
@@ -74,7 +74,7 @@ static int odmr_getrange(int sock, struct query *ctl, const char *id, * canonical DNS name. */ buf[0] = '\0'; - for (qnp = ctl->smtphunt; qnp; qnp = qnp->next) + for (qnp = ctl->domainlist; qnp; qnp = qnp->next) if (strlen(buf) + strlen(qnp->id) + 1 >= sizeof(buf)) break; else @@ -125,20 +125,12 @@ static int odmr_getrange(int sock, struct query *ctl, const char *id, /* * OK, if we got here it's time to become a pipe between the ODMR - * remote server (sending) and the local SMTP daemon (receiving). - * We're npt going to try to be a protocol machine; instead, we'll - * use select(2) to watch the read sides of both sockets and just - * throw their data at each other. + * remote server (sending) and the SMTP listener we've designated + * (receiving). We're not going to try to be a protocol machine; + * instead, we'll use select(2) to watch the read sides of both + * sockets and just throw their data at each other. */ - /* - * FIXME: we hardcode "localhost" here because ODMR is fighting - * over the ETRN meaning of smtphost and the POP/IMAP meaning. - * ODMR needs both meanings, but there is only one config var. So - * for now ODMR always uses the "localhost" SMTP server to connect - * with locally. - */ - smtp_sock = SockOpen("localhost", SMTP_PORT, NULL, NULL); - if (smtp_sock == -1) + if ((smtp_sock = smtp_open(ctl)) == -1) return(PS_SOCKET); else { |