Hello,
In the man page it gave a script which is supposed to run procmail on
systems that aren't able to use .forward files but there wasn't any
information on how to configure the script correctly.
Anyone know how to do this? Also--how would you run the script?
The following is the script:
#!/bin/sh
ORGMAIL=/usr/spool/mail/$LOGNAME
if cd $HOME &&
test -s $ORGMAIL &&
lockfile -r0 -l3600 .newmail.lock 2>/dev/null
then
trap "rm -f .newmail.lock" 1 2 3 15
umask 077
umask 077
lockfile -l3600 -ml
cat $ORGMAIL >>.newmail &&
cat /dev/null >$ORGMAIL
lockfile -mu
formail -s procmail <.newmail &&
rm -f .newmail
rm -f .newmail.lock
fi
exit 0
Thanks,
Ben