Hi!

In MH 6.8.4 a new feature was introduced for skipping parts of multipart
messages.  Traditionally you needed to generate SIGINT to skip a part or
SIGQUIT to exit mhn.  The new feature allowed you to skip a part at the
"Press <return> to show" prompt.

I've added this functionality to mhshow.  The first letter of user input
is checked and the following action taken:

    - "n" skips the next part (i.e. "no")
    - "q" exits mhshow immediately (i.e. "quit")

Some of you might notice that this is different from MH 6.8.4.  It used
"q" for skipping a part and had no input to exit.  I think the above
responses are more semantically correct.

The old SIGINT/SIGQUIT behaviour is of course still there.

Patch attached below.

Cheers,
+ Kim
$NetBSD: patch-ce,v 1.1 1999/03/07 19:39:19 kim Exp $

--- uip/mhshowsbr.c.orig        Wed Sep  9 16:59:17 1998
+++ uip/mhshowsbr.c     Sun Mar  7 14:14:59 1999
@@ -509,10 +509,11 @@
                read (fileno (stdout), prompt, sizeof(prompt));
            }
            SIGNAL (SIGINT, istat);
-           if (intr != OK) {
+           if (intr != OK || prompt[0] == 'n') {
                (*ct->c_ceclosefnx) (ct);
                return (alternate ? DONE : NOTOK);
            }
+           if (prompt[0] == 'q') done(OK);
        }
     }
 

Reply via email to