X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/51e598739b071778dd3f0eee3db5c50164346da1..dd4503c862644d4dbc45cf97db64c2c1ac001f8d:/uip/mhmail?ds=sidebyside diff --git a/uip/mhmail b/uip/mhmail index 2fbedccb..839b82a7 100755 --- a/uip/mhmail +++ b/uip/mhmail @@ -160,7 +160,8 @@ for arg in "$@"; do #### It's not strictly necessary to have one space after #### the : that separates the header field name from the #### body, but do it to avoid surprising someone. - add=`printf %s "$arg" | sed -e 's/:/: /' -e 's/: /: /'` + #### Solaris sed wants the trailing newline in its input. + add=`printf '%s\n' "$arg" | sed -e 's/:/: /' -e 's/: /: /'` headerfieldlist="${headerfieldlist:+$headerfieldlist}$add " headerfieldarg=0