Activated Jon's attachment system by default and steamlined it.
[mmh] / uip / mhshowsbr.c
index 0136ca3..ee401a7 100644 (file)
@@ -110,7 +110,7 @@ show_all_messages(CT *cts)
        /*
        ** If form is "mhl.null", suppress display of header.
        */
-       if (!strcmp(formsw, "mhl.null"))
+       if (strcmp(formsw, "mhl.null")==0)
                formsw = NULL;
 
        for (ctp = cts; *ctp; ctp++) {
@@ -220,7 +220,7 @@ DisplayMsgHeader(CT ct, char *form)
 
        fflush(stdout);
 
-       for (i = 0; (child_id = vfork()) == NOTOK && i < 5; i++)
+       for (i = 0; (child_id = fork()) == NOTOK && i < 5; i++)
                sleep(5);
 
        switch (child_id) {
@@ -348,7 +348,7 @@ show_content_aux(CT ct, int serial, int alternate, char *cp, char *cracked)
        file = NULL;
        if ((fd = (*ct->c_ceopenfnx) (ct, &file)) == NOTOK)
                return NOTOK;
-       if (ct->c_showproc && !strcmp(ct->c_showproc, "true"))
+       if (ct->c_showproc && strcmp(ct->c_showproc, "true")==0)
                return (alternate ? DONE : OK);
 
        xlist  = 0;
@@ -602,7 +602,7 @@ show_content_aux2(CT ct, int serial, int alternate, char *cracked,
 
        fflush(stdout);
 
-       for (i = 0; (child_id = vfork()) == NOTOK && i < 5; i++)
+       for (i = 0; (child_id = fork()) == NOTOK && i < 5; i++)
                sleep(5);
        switch (child_id) {
        case NOTOK:
@@ -884,7 +884,7 @@ show_multi_aux(CT ct, int serial, int alternate, char *cp)
                        /* I'm not sure if this is necessary? */
                        p->c_storage = getcpy(file);
 
-                       if (p->c_showproc && !strcmp(p->c_showproc, "true"))
+                       if (p->c_showproc && strcmp(p->c_showproc, "true")==0)
                                return (alternate ? DONE : OK);
                        (*p->c_ceclosefnx) (p);
                }