X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/99e5043db7ee6cf80f93708610a6e584a8068c6a..e79165e0c2c80b68ece9aaf418a59c6a169a17f5:/uip/popsbr.c diff --git a/uip/popsbr.c b/uip/popsbr.c index aa396fd2..6d8d820c 100644 --- a/uip/popsbr.c +++ b/uip/popsbr.c @@ -26,8 +26,8 @@ extern int client(char *args, char *protocol, char *service, int rproto, #endif #ifdef CYRUS_SASL -# include -# include +# include +# include #endif /* CYRUS_SASL */ #include @@ -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;