On Sep 12, 2006, at 13:44, David Muir Sharnoff wrote:
I'm writing a plugin that needs fairly high-level control and idealy
would use the results from other plugins. Are there hooks for
qpsmtpd plugins to have plugins?
Yup, look at the very bottom of README.plugins. It's not exactly
what you describe, but it might be useful.
- ask
=head1 Inheritance
Instead of modifying @ISA directly in your plugin, use the
C< isa_plugin > method from the init subroutine.
# rcpt_ok_child
sub init {
my ($self, $qp) = @_;
$self->isa_plugin('rcpt_ok');
}
sub hook_rcpt {
my ($self, $transaction, $recipient) = @_;
# do something special here...
$self->SUPER::hook_rcpt( $transaction, $recipient );
}
--
http://www.askbjoernhansen.com/