View Single Post
  #7   (View Single Post)  
Old 12th October 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

For FreeBSD, I had to change line 200:
mktemp -p .
to
mktemp MATTS

Because FreeBSD doesn't support the -p option...

Also, it would be nice use EDITOR for filling in headers and the message, I really like the way mutt does this for example:

Code:
From: Martin Tournoij <carpetsmoker@rwxrwxrwx.net>
To: test@example.com
Cc: 
Bcc: 
Subject: some subject
Reply-To: 

A little message with text
... More text
... And even more ...
--

Vermaden, your script doesn't make MIME compliant messages. Entourage must do some magic/parsing on the message to sniff suspected attachments because all your script is sending is a bunch of good ol' MIME-less RFC822 plain text.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote