-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello, rex <[EMAIL PROTECTED]>, 
I use the script you are looking for together with
the naive and clueless PINE. PINE allows in '.pinerc'
to configure a:

sendmail-path=/usr/local/sbin/sendit.sh

In '.muttrc' I use:

set sendmail="/usr/local/sbin/sendit.sh"

I use this script to delete the 'root' from the header
of my mail to satisfy the sysadmin of 'uni-mainz.de'.
The script is still under construction:
- ---------------------------------------------------
#! /bin/sh
#
# $Id:$
#
#            T H E    P I N E    M A I L   S Y S T E M
#
#   Mike Seibel
#   Networks and Distributed Computing
#   Computing and Communications
#   University of Washington
#   Administration Building, AG-44
#   Seattle, Washington, 98195, USA
#   Internet: [EMAIL PROTECTED]
#
#   Please address all bugs and comments to "[EMAIL PROTECTED]"
#
#
#   Pine and Pico are registered trademarks of the University of
Washington.
#   No commercial use of these trademarks may be made without prior
written
#   permission of the University of Washington.
#
#   Pine, Pico, and Pilot software and its included text are Copyright
#   1989-1996 by the University of Washington.
#
#   The full text of our legal notices is contained in the file called
#   CPYRIGHT, included with this distribution.
#


#
#  Simple script to expedite mail posting at the expense of timely
#  error reporting and 8BITMIME support.
#
# NOTE: If for any reason POSTFILE below is created on an nfs mounted
#       file system, the trap statement below must get removed or
#       altered, and the last line must get replaced with:
#
#       ( ${POSTTOOL} ${POSTARGS} < ${POSTFILE} ; rm -f ${POSTFILE} ) &
#
###POSTFILE=/tmp/send$$
###POSTTOOL=/usr/lib/sendmail
###POSTARGS="-oi -oem -t"
###
###umask 077
###trap "rm -f ${POSTFILE}; exit 0" 0 1 2 13 15
###
###cat > ${POSTFILE}
###${POSTTOOL} ${POSTARGS} < ${POSTFILE} &
############ the above originates from PINE ######################
to_file=${HOME}/.sendit_post
from_file=${HOME}/.sendit_pre
args_file=${HOME}/.sendit_args
POSTTOOL=/usr/sbin/sendmail
POSTARGS="-oi -oem -t -B8BITMIME -f [EMAIL PROTECTED]"
any_args=$*
echo $any_args > ${args_file}

cat > ${from_file}
cat ${from_file} \
| /usr/bin/sed -e "s/From: winfried szukalski <[EMAIL PROTECTED]/From: 
|winfried szukalski
<[EMAIL PROTECTED]/g" \
| /usr/bin/sed -e "s/Sender: szukw000@localhost/Sender: szukw000@localhost/g"
\
| /usr/bin/sed -e "s/Sender: szukw000@localhost/Sender: szukw000@localhost/g"
\
| /usr/bin/sed -e "s/@localhost/@localhost/g" \
| /usr/bin/sed -e "s/From: winfried szukalski <[EMAIL PROTECTED]>/From: 
|winfried szukalski
<[EMAIL PROTECTED]>/g" > ${to_file}

${POSTTOOL} ${POSTARGS} < ${to_file} &
#rm -f ${from_file} ${to_file} ${args_file}
- ------------- ~/.sendit_pre --------------------------
Date: Mon, 11 Oct 1999 06:22:58 +0000
From: winfried szukalski <[EMAIL PROTECTED]>
To: szukw000@localhost
Subject: sendit.sh instead of sendmail
Message-ID: <19991011062258.A12860@localhost>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 1.0pre3i

test
- ----------------- ~/.sendit_post ----------------------
Date: Mon, 11 Oct 1999 06:22:58 +0000
From: winfried szukalski <[EMAIL PROTECTED]>
To: szukw000@localhost
Subject: sendit.sh instead of sendmail
Message-ID: <19991011062258.A12860@localhost>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 1.0pre3i

test
- ------------------------------------------------------
As you can see: it works with 'mutt-1.0pre3i'.

The 'sendmail' I use is the one of POSTFIX:

       -t     Extract  recipients  from  message  headers.   This
              requires  that  no  recipients  be specified on the
              command line.

       -f sender
              Set  the  envelope  sender  address.  This  is  the
              address where delivery problems are sent to, unless
              the message contains an Errors-To: message  header.

Options '-oi -oem' seem to be silently ignored.

winfried
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: Made with pgp4pine 1.62

iEYEARECAAYFAjgBjMIACgkQdoAGL0q6k7pDrgCfYYPHRlC+wfTIoCg+tiGYi/Ro
5DsAn111AwLbDgiqW+6naYNP3igzo6qJ
=ubji
-----END PGP SIGNATURE-----

Reply via email to