-headerfield argument, to squelch complain from Solaris sed.
# Message-ID.
#
-ls -l $actual >&2 # ???? temporary
-od -t a $actual | tail -n 4
-
sed -e 's/^Date:.*/Date:/' \
-e 's/^Resent-Date:.*/Resent-Date:/' \
-e 's/^Message-ID:.*/Message-ID:/' "$actual" > "$actual".nodate
-echo after sed # ???? temporary
rm -f "$actual"
check "$actual".nodate "$1"
#### 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