[Mimedefang] MySQL connection per slave
Jason Englander
jason at englanders.cc
Fri Jul 11 13:45:01 EDT 2003
On Thu, 10 Jul 2003, Chris Masters wrote:
> I need to ammend the mimedefang code to maintain a
> database connection per slave.
One way would be to add a filter_init() subroutine to your filter
(anywhere you like but outside of any other subs) like this:
filter_init () {
# Code to maintain a database connection per slave
}
Then right above this part of your filter (all the way at the bottom):
# DO NOT delete the next line, or Perl will complain.
1;
Add this:
filter_init();
And if you need to clean up things when the slave goes away, read about
filter_cleanup() in the mimedefang-filter man page.
Jason
--
Jason Englander <jason at englanders.cc>
394F 7E02 C105 7268 777A 3F5A 0AC0 C618 0675 80CA
More information about the MIMEDefang
mailing list