X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fpopsbr.c;h=6d8d820c40ffe6a1a19887fbcb6c53410b8a77d6;hp=10d9cba05879709e2ea0a45cbfa4b677a4bb771f;hb=cb5d4a7527ee37577fc0c49eed564f237ec7c909;hpb=0dcc45fd5273ba3df3bcbb2e0c32b26777d665ce diff --git a/uip/popsbr.c b/uip/popsbr.c index 10d9cba..6d8d820 100644 --- a/uip/popsbr.c +++ b/uip/popsbr.c @@ -557,20 +557,21 @@ pop_init (char *host, char *user, char *pass, char *proxy, int snoop, #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;