On Wed, 7 May 1997, Suciu Catalin wrote:
-> How can I use procmail to process my mail messages *after* they are in a
->mail folder ?
Read the procmail manpage. The below shell script is in there.
----------------------------------------------------------------------------
#!/bin/sh
ORGMAIL=/var/mail/$LOGNAME #adjust for your INBOX path
if cd $HOME &&
test -s $ORGMAIL &&
lockfile -r0 -l1024 .newmail.lock 2>/dev/null
then
trap "rm -f .newmail.lock" 1 2 3 13 15
umask 077
lockfile -l1024 -ml
cat $ORGMAIL >>.newmail &&
cat /dev/null >$ORGMAIL
lockfile -mu
formail -s procmail <.newmail &&
rm -f .newmail
rm -f .newmail.lock
fi
exit 0
jamie
jamie(_at_)comet(_dot_)net
***************************************************************************
http://www.comet.net Charlottesville, Va. 804-295-2407
Why do you need PGP? mail jamie(_at_)comet(_dot_)net with Subject:GET
PGPDOC
For PGP public key, mail jamie(_at_)comet(_dot_)net with Subject:GET KEY
The Borg assimilated my race, and all I got was this crummy tagline.