4539l4.txt

Listing 4. Forwarding E-Mail to the Correct Users

PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
MAILDIR=$HOME/mail      # You'd better make sure it exists
DEFAULT=$MAILDIR/mbox
LOGFILE=$MAILDIR/from
LOCKFILE=$HOME/.lockmail

:0 c
    backup

:0 ic
              | cd backup && rm -f dummy `ls -t msg.* | sed -e 1,32d`

:0 c
* ^TO*Stew Benedict
!stew

    :0 A
     stew

:0 c
* ^TO*Joe User
!joe

    :0 A
     joe

#everything else goes to the default

