On Sun, 12 Nov 1995 14:48:18 -0800 (PST),
jadestar(_at_)netcom(_dot_)com (JaDe) said:
J> I'd like to be able to test some scripts (recipes) on my existing inbox
J> (force procmail to sort my existing messages according to a particular rc
J> file). So, how does one do this?
I usually do this:
- copy my inbox to a temporary file and then clear it out
- copy my .procmailrc file and make changes to the copy
- use formail to run procmail on the temporary file using the copy of
.procmailrc
The Unix commands would be:
% cp $HOME/.procmailrc $HOME/newproc
[ edit newproc, put in my new recipe]
% cp /var/mail/vogelke /tmp/inbox
% lockfile -ml
% cp /dev/null /var/mail/vogelke
% lockfile -mu
% formail -ds procmail -m $HOME/newproc < /tmp/inbox
--
Karl Vogel
vogelke(_at_)c17mis(_dot_)wpafb(_dot_)af(_dot_)mil
Control Data Systems, Inc. ASC/YCOA, Wright-Patterson AFB, OH 45433