> Because I may want to have multiple inheritance (which Perl isn't
> known for handling well).  How can I say that my plugin
> isa(smtp-forward, qmail-queue, qmail-qmqpc) and have control over
> which order hook_queue is called in?  I may also have multiple
> instances of smtp-forward, depending on the recipient and a single
> e-mail might need to call multiple queue methods.

Sorry, you missed my point.

I'm saying do something like this:

Create a set of wrapped plugins....

my-smtp-forward
my-qmail-queue
my-qmail-qmqpc

We know what order they will run in because it is defined in the
config file.

Then just OK/DECLINE as needed in the wrapper.

> I was planning on using the same sort of "create a new class from the
> old class" methodology as isa_plugin() uses, just storing the
> resulting plugin objects in a cache inside $self instead of making
> them first class objects (i.e. I wouldn't tie them in using the
> regular hook stack).

This might not be a bad thing to have either...  but could get mighty
confusing. 

Reply via email to