[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated

From: Ken Hornstein
Subject: [Nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated. 5f531c1fc79b88bb0d1dd5ec15f03342b0a3ffd5
Date: Wed, 21 Mar 2012 00:22:32 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The nmh Mail Handling System".

The branch, master has been updated
       via  5f531c1fc79b88bb0d1dd5ec15f03342b0a3ffd5 (commit)
       via  878f39953d1d908e8c151e33ea14172ea10b7c4b (commit)
      from  dd16d13e6e96a0ed6e7d7a23d6e45fd628420ae4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------

commit 5f531c1fc79b88bb0d1dd5ec15f03342b0a3ffd5
Author: Ken Hornstein <address@hidden>
Date:   Tue Mar 20 20:22:19 2012 -0400

    Document formatarg.

diff --git a/man/mhl.man b/man/mhl.man
index 5c0af06..0f2c670 100644
--- a/man/mhl.man
+++ b/man/mhl.man
@@ -21,6 +21,9 @@ mhl \- produce formatted listings of nmh messages
 .RB [ \-moreproc
 .IR program ]
 .RB [ \-nomoreproc ]
+.RB [ \-fmtproc
+.IR program ]
+.RB [ \-nofmtproc ]
 .RI [ files
 .IR \&... ]
 .RB [ \-version ]
@@ -254,6 +257,7 @@ format      flag    Run component through formatproc filter
                (body only)
 noformat       flag    Do not run component through
                formatproc filter (default)
+formatarg      string  Argument to format filter
@@ -337,6 +341,23 @@ is as follows:
 .RS 5
+.B \-fmtproc
+.B \-nofmtproc
+switches can be used to override the
+.I formatproc
+profile entry.
+.I formatarg
+option specifies a string that is used as an argument to the format filter.
+This string is processed by 
+.BR mh\-format (5)
+and all of the message components are available for use.  Multiple
+.I formatarg
+options can be used to build up multiple arguments to the format filter.
 .fc ^ ~
@@ -376,3 +397,6 @@ front\-end.
 The \*(lqnonewline\*(rq option interacts badly with \*(lqcompress\*(rq
 and \*(lqsplit\*(rq.
+The \*(lqformat\*(rq option really should work on something other than the body


commit 878f39953d1d908e8c151e33ea14172ea10b7c4b
Author: Ken Hornstein <address@hidden>
Date:   Tue Mar 20 19:52:29 2012 -0400

    Use _exit() instead of exit() so our writer process doesn't flush out
    the stdio buffers on exit.

diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c
index ae1fb5d..0798746 100644
--- a/uip/mhlsbr.c
+++ b/uip/mhlsbr.c
@@ -2119,7 +2119,11 @@ filterbody (struct mcomp *c1, char *buf, int bufsz, int 
state, FILE *fp)
-       exit(0);
+       /*
+        * Make sure we call _exit(), otherwise we may flush out the stdio
+        * buffers that we have duplicated from the parent.
+        */
+       _exit(0);
     case -1:
        adios(NULL, "Unable to fork for filter writer process");


Summary of changes:
 man/mhl.man  |   24 ++++++++++++++++++++++++
 uip/mhlsbr.c |    6 +++++-
 2 files changed, 29 insertions(+), 1 deletions(-)

The nmh Mail Handling System

reply via email to

[Prev in Thread] Current Thread [Next in Thread]