]> diplodocus.org Git - nmh/commitdiff
Merge remote-tracking branch 'origin' into xoauth
authorDavid Levine <david.levine@gonift.com>
Fri, 25 Mar 2016 00:24:15 +0000 (20:24 -0400)
committerDavid Levine <david.levine@gonift.com>
Fri, 25 Mar 2016 00:24:15 +0000 (20:24 -0400)
man/mhshow.man
man/show.man
uip/new.c
uip/show.c

index c2bba35..58e2c19 100644 (file)
@@ -1,4 +1,4 @@
-.TH MHSHOW %manext1% "February 8, 2015" "%nmhversion%"
+.TH MHSHOW %manext1% "March 24, 2016" "%nmhversion%"
 .\"
 .\" %nmhwarning%
 .\"
@@ -93,7 +93,7 @@ string representing the current folder.
 .PP
 By default
 .B mhshow
-will concatenate all content under one pager.  If you which each part to
+will concatenate all content under one pager.  If you want each part to
 displayed separately, you can override the default behavior with
 .B \-noconcat.
 .PP
index 57832c3..2e9169a 100644 (file)
@@ -1,4 +1,4 @@
-.TH SHOW %manext1% "February 8, 2015" "%nmhversion%"
+.TH SHOW %manext1% "March 24, 2016" "%nmhversion%"
 .\"
 .\" %nmhwarning%
 .\"
@@ -17,6 +17,7 @@ show \- show (display) messages
 .IR program ]
 .RB [ \-header " | " \-noheader ]
 .RB [ \-checkmime " | " \-nocheckmime ]
+.RB [ \-concat " | " \-noconcat ]
 [switches\ for
 .I showproc
 or
@@ -142,6 +143,12 @@ to display a one\-line
 description of the message being shown.  This description includes
 the folder and the message number.
 .PP
+By default
+.B show
+will concatenate all content under one pager.  If you want each part to
+displayed separately, you can override the default behavior with
+.B \-noconcat.
+.PP
 If no `msgs' are specified, the current message is used.  Although
 it depends on the specific
 .I showproc
@@ -196,6 +203,7 @@ from each sequence named by the profile entry.
 .RB ` msgs "' defaults to cur"
 .RB ` \-checkmime '
 .RB ` \-header '
+.RB ` \-concat '
 .fi
 .SH CONTEXT
 If a folder is given, it will become the current folder.  The last
index 2bb8c17..9a7f9d4 100644 (file)
--- a/uip/new.c
+++ b/uip/new.c
@@ -370,6 +370,8 @@ doit(char *cur, char *folders, char *sequences[])
                 return prev;
             }
         } else if (run_mode == UNSEEN) {
+            int status;
+
             if (node->n_field == NULL) {
                 continue;
             }
@@ -388,7 +390,8 @@ doit(char *cur, char *folders, char *sequences[])
            /* TODO: Split enough of scan.c out so that we can call it here. */
            command = concat("scan +", node->n_name, " ", sequences_s,
                             (void *)NULL);
-           if (system(command) == NOTOK) {
+           status = system(command);
+           if (! WIFEXITED (status)) {
                adios (command, "system");
            }
            free(command);
index 5b815f4..3291739 100644 (file)
@@ -32,8 +32,8 @@
     /*                         \
      * switches for mhlproc    \
      */                                \
-    X("concat", -6, CONCATSW) \
-    X("noconcat", -8, NCONCATSW) \
+    X("concat", 0, CONCATSW) \
+    X("noconcat", 0, NCONCATSW) \
     /*                         \
      * switches for mhshow     \
      */                                \