X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/8f772a97d75286630db2f15e9e1318c6d2f14e67..a376784b51d76aee169b9f358bc7ccef9d70a04a:/test/mhmail/test-mhmail?ds=sidebyside diff --git a/test/mhmail/test-mhmail b/test/mhmail/test-mhmail index bd03c780..27188c77 100755 --- a/test/mhmail/test-mhmail +++ b/test/mhmail/test-mhmail @@ -17,17 +17,13 @@ fi # Find MIME type string, using mimetypeproc if configured with it. MIMETYPEPROC=`mhparam mimetypeproc` content_type_string() { -echo $MIMETYPEPROC; $MIMETYPEPROC $1 # temporary, for debugging on OpenBSD -ls -l dead.letter; /bin/rm -f dead.letter # temporary, for debugging on OpenBSD - if test -z "$MIMETYPEPROC"; then echo "text/plain; name=\"`basename $1`\"; charset=\"us-ascii\"" else # 1) Excise leading filename followed by : and any whitespace. # 2) Wrap charset value in double quotes. Assume that it isn't already. - printf "%s %s%s" \ - `$MIMETYPEPROC $1 | sed -e 's/.*: *//' -e 's/\(charset=\)\(.*\)/\1"\2"/'`\ - "; name=\"`basename $1`\"" + printf "%s%s" \ + `$MIMETYPEPROC $1` "; name=\"`basename $1`\"; charset=\"us-ascii\"" fi }