======== /home/verbal/.forward =======================
"|/usr/bin/procmail"
======== /home/verbal/.procmailrc =====================
LOGFILE=$HOME/.procmail/pm.log
VERBOSE=on
LOGABSTRACT=all
SHELL=/bin/bash
# PMDIR=$HOME/.procmail
MAILDIR=$HOME/Mail
SUBJECT=`formail -zcxSubject:`
# /usr/sbin/sendmail
#
# the lines below help to prevent an endless mail-loop
#
:0 hc
* !^FROM_DAEMON
* !^X-Loop: ${LOGNAME}@${HOST}
{
#
TMPFILE=tmp.$$
TOADDRESS=`formail -uReceived: | formail -xReceived: \
| sed -e 's/^.*for /' -e 's/>;.*$//'`
FRADDRESS=`formail -uFrom: | formail -xFrom:`
# | sed -e 's/^.*for /' -e 's/>;.*$//'`
ORADDRESS=`formail -uOriginal-To: | formail -xOriginal-To`
#
# copy the e-mail to the directory named "record"
#
:0 c
/home/verbal/record
:0 ah
| (formail -rk -I"Precedence: junk" \
-A"X-Loop: verbal@setbit.org" ; \
echo " " ; \
echo " " ; \
echo "Your internet e-mail address is $FRADDRESS " ; \
echo " " ; \
echo " " ; \
cat /home/verbal/mymsg.txt ) | $SENDMAIL -t
#
}
======== /home/verbal/mymsg.txt =======================
Echo-Address version 1.0 by Verbal
Sunday Aug 29, 2010