Op zo. 10 okt 1999 14:54:21 zei rex:

> I'd change the sendmail call in .muttrc to call a shell script to allow
> me to edit the message before calling sendmail, but I don't know how
> to pass the message to the shell script. IOW, I don't know how/where 
> sendmail is getting the message.

man sendmail(1):

  With no flags, sendmail reads its standard input up to an end-of-file
  or a line consisting only of a single dot and sends a copy of the
  message found there to all of the addresses listed.  It
  determines the network(s) to use based on the syntax and contents of
  the addresses.

> The line in .muttrc is
> set sendmail="usr/lib/sendmail -oi -oem"
> I can't find any docs on what "-oi" and "-oem" do.

man sendmail(1):

  There are also a number of processing options that may be set.
  Normally these will only be used by a system administrator.  Options
  may be set either on the command line using the -o flag (for short
  names), the -O flag (for long names), or in the configuration file.

I don't know what these two options do, you'can try taking a peek in
/etc/mail/sendmail.conf (comment-documented configuration file).

So what I suggest your script does is:

- redirect stdin of your script into a temp file.
- vi the tempfile
- redirect sendmail's stdin from the tempfile
- remove the tempfile

best of luck,

stasinos

Reply via email to