{
if (substr(line,RSTART-1,1) == "\\")
{
- tmp = substr(line, 0, RSTART-1);
+ tmp = substr(line, 1, RSTART-2);
var = substr(line, RSTART+1, RLENGTH-1);
printf "%s$%s", tmp, var
} else
{
- tmp = substr(line, 0, RSTART);
+ tmp = substr(line, 1, RSTART-1);
var = substr(line, RSTART+1, RLENGTH-1);
printf "%s%s", tmp, ENVIRON[var];
}
# First we take the top part of the e-mail for headers
# Excluding any "Content-" lines, which need to stay with
# the actual template content
- $SED -e '/^$/Q' $1 \
+ $SED -e '/^$/q' $1 \
| $GREP -v ^Content \
| template
fi
# Now print the Content-* headers for the template
- $SED -e '/^$/Q' $1 \
+ $SED -e '/^$/q' $1 \
| $GREP ^Content \
| template
echo ""
- body_encoding=`$SED -e '/^$/Q' $1 \
+ body_encoding=`$SED -e '/^$/q' $1 \
| $GREP -i ^Content-Transfer-Encoding \
| template \
| $SED -e 's/^[^ ]*: *//'`;
test "$body_encoding" || body_encoding=7bit;
- $SED -e '0,/^$/d' $1 | template > $TMPDIR/body.txt
+ $SED -e '1,/^$/d' $1 | template > $TMPDIR/body.txt
mimeEncode $TMPDIR/body.txt $body_encoding
if [ -n "$2" ]; then