I am running nmh 1.0.4 on an IBM RS/6000 running AIX 4.3.2.
I'm trying to write a ksh script that will pick up a file that has rich
text and maybe attachments, run mhbuild on the file and send the file.
When I create my file and then run the script, the file gets sent, but
loses the rich text formatting (attachments show up as expected). If I
create the exact same file using comp and calling mhbuild from the whatnow?
prompt, the message shows up with all the rich text formatting intact.

Some more specifics about my configuration:
my mts is sendmail, but sendmail uses an smtp relay host (Lotus Domino mail
server) to send email to the non-unix side of our domain.
Microsoft Outlook and Netscape Messenger are the mua's I'm sending the
e-mails to.

Here is the text of the script

#!/bin/ksh

FILE=$1

[[ ! -f $FILE ]] && echo "ERROR: File $FILE does not exist" && exit 2
[[ $(head -1 $FILE |grep -i ^to: >/dev/null 2>&1;echo $?) -ne 0 ]] && echo
"ERROR: The first line of the file to be sent must be To: <receipient>" &&
exit 1

/usr/bin/mhbuild $FILE
/usr/bin/send $FILE


Any help at all would be greatly appreciated.

Blayne
________________________________________________________
G. Blayne Davidson, II         When the only tool you own is a hammer,
System Programmer           every problem begins to resemble a nail.
Goody's Family Clothing                        -Abraham Maslow
[EMAIL PROTECTED]
865-966-2000 x 1876

Reply via email to