*selah* <soma(_at_)dorsai(_dot_)org> writes:
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
I just joined this list to ask a similar question. I wanted to use
the script to process old mailboxes. I changed the value of ORGMAIL
to the name of a copy of the mailbox in question, but once it invoked
"formail -s procmail < .newmail" it just hung. Any advice would be
appreciated. I'd also like to be able to filter a single message.
Sometimes a message I didn't want in my mailbox gets through the
filter anyway, and I have to update .procmailrc to catch it. When I
used the elm "filter" command I could just say "|filter" in emacs
after the update to send the errant message on its way.
--
David Fox http://www.cat.nyu.edu/fox xoF divaD
NYU Media Research Lab fox(_at_)cat(_dot_)nyu(_dot_)edu baL hcraeseR aideM
UYN