int fd1, fd2;
char buffer[BUFSIZ];
+#ifdef APOP
+ int apop;
+
+ if ((apop = rpop) < 0)
+ rpop = 0;
+#endif
+
if (proxy && *proxy) {
int pid;
int inpipe[2]; /* for reading from the server */
} else {
-#ifdef APOP
- int apop;
-
- if ((apop = rpop) < 0)
- rpop = 0;
-#endif
-
#ifndef NNTP
-# ifdef KPOP
if ( kpop ) {
+# ifdef KPOP
snprintf (buffer, sizeof(buffer), "%s/%s", KPOP_PRINCIPAL, "kpop");
if ((fd1 = client (host, "tcp", buffer, 0, response, sizeof(response))) == NOTOK) {
return NOTOK;
}
- } else {
+# else /* KPOP */
+ snprintf (response, sizeof(response), "this version of nmh compiled without KPOP support");
+ return NOTOK;
# endif /* KPOP */
+ } else {
if ((fd1 = client (host, "tcp", POPSERVICE, rpop, response, sizeof(response))) == NOTOK) {
return NOTOK;
}
-# ifdef KPOP
}
-# endif /* KPOP */
#else /* NNTP */
if ((fd1 = client (host, "tcp", "nntp", rpop, response, sizeof(response))) == NOTOK)
return NOTOK;