On Jan 18, 2004, at 10:16 am, Andrew Ross wrote:


You are erroneously escaping the shell variables on line 61 of your script:

cat $1 | $MAKEMIME -c \"$TYPE\" -e \"$ENCODING\" -

Change it to this:

cat $1 | $MAKEMIME -c "$TYPE" -e "$ENCODING" -

and it should work (or at least, it did for me).

*DING!* Many thanks. That seems perfect.

Rereading the man page for makemime it all seems to make sense:

Options and their arguments may contain characters that are special
characters to the shell, such as '(' and ')'. These characters must be
backslashed when specified on the command line, to avoid their special
meaning to the shell. These characters MUST NOT be backslashed when
options are read from a file or a pipe. Similarly, the contents of most
headers nearly always include spaces. Therefore they must be quoted
when specified on the command line. Header contents MUST NOT be quoted
when options come from a file or a pipe.


Many many thanks,

Stroller.


-- [EMAIL PROTECTED] mailing list



Reply via email to