PPerl + Mail::Audit = Love
Jeff Bisbee <[email protected]> Thu, 5 Aug 2004 11:52:27 -0400
| Newsgroups | gmane.comp.lang.perl.modules.mail-audit |
|---|---|
| Message-ID | <[email protected]> |
1. Install -> http://search.cpan.org/~msergeant/PPerl/
2. Change '#!/usr/bin/perl' to '#!/usr/bin/pperl'
Now the next time your script runs, it says in memory... Yay, no more
loading up all the modules for every mail that comes in!
jbisbee 14671 1 /home/jbisbee/.mutt/bin/bizmail
jbisbee 14672 14671 /home/jbisbee/.mutt/bin/bizmail
jbisbee 14673 14671 /home/jbisbee/.mutt/bin/bizmail
jbisbee 14674 14671 /home/jbisbee/.mutt/bin/bizmail
jbisbee 14675 14671 /home/jbisbee/.mutt/bin/bizmail
jbisbee 14676 14671 /home/jbisbee/.mutt/bin/bizmail
The only trick is killing the script properly to reload it.
pperl -- -k ~/.mutt/bin/bizmail
If you don't kill it via 'pperl', you'll need to clean out the files in
the '/tmp' directory that pperl uses.
-- Jeff Bisbee / [email protected] / jbisbee.com