Updating user programs to use <h/tws> instead of <zotnet/tws/tws.h>
[mmh] / uip / msgchk.c
index 23ede03..fdf32d6 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <h/mh.h>
 #include <zotnet/mts/mts.h>
-#include <zotnet/tws/tws.h>
+#include <h/tws.h>
 #include <pwd.h>
 
 #ifdef POP
@@ -66,7 +66,7 @@ static struct swit switches[] = {
 #define VERSIONSW               10
     { "version", 0 },
 #define        HELPSW                  11
-    { "help", 4 },
+    { "help", 0 },
 #define SNOOPSW                 12
     { "snoop", -5 },
 #define KPOPSW                  13
@@ -259,6 +259,9 @@ main (int argc, char **argv)
 
 #ifdef POP
     if (host) {
+       if ( strcmp( POPSERVICE, "kpop" ) == 0 ) {
+           kpop = 1;
+       }
        if (vecp == 0) {
            status = remotemail (host, user, rpop, kpop, notifysw, 1, snoop);
        } else {