Re: Plugins on CPAN

2008-05-13 Thread Pedro Melo
Hi, On May 13, 2008, at 7:48 PM, Hanno Hecker wrote: On Tue, 13 May 2008 18:40:51 +0100 Pedro Melo <[EMAIL PROTECTED]> wrote: On May 12, 2008, at 4:59 PM, Hanno Hecker wrote: The main disadvantage of having plugins as regular perl modules is, that you can not load them twice like "normal" qps

Re: Plugins on CPAN

2008-05-13 Thread Juerd Waalboer
Hanno Hecker skribis 2008-05-13 20:48 (+0200): > Plugins as perl packages (My::Plugin) must have at least one "::" in > their name (no problem, all plugins will probably have a > Qpsmtpd::Plugin:: and can not be loaded twice. Attempting to load these > twice would either overwrite the first or the

Re: Plugins on CPAN

2008-05-13 Thread Hanno Hecker
On Tue, 13 May 2008 18:40:51 +0100 Pedro Melo <[EMAIL PROTECTED]> wrote: > On May 12, 2008, at 4:59 PM, Hanno Hecker wrote: > > The main disadvantage of having plugins as regular perl modules is, > > that you can not load them twice like "normal" qpsmtpd plugins (by > > using > > my_plugin some_arg

Re: Plugins on CPAN

2008-05-13 Thread Pedro Melo
Hi, On May 12, 2008, at 4:59 PM, Hanno Hecker wrote: On Sat, 10 May 2008 14:51:34 -0700 Ask Bjørn Hansen <[EMAIL PROTECTED]> wrote: On May 10, 2008, at 2:38 PM, Juerd Waalboer wrote: 1. The plugin loading code must be changed to allow loading Perl modules in addition to regular plugin fi

Re: Plugins on CPAN

2008-05-12 Thread Hanno Hecker
On Sat, 10 May 2008 14:51:34 -0700 Ask Bjørn Hansen <[EMAIL PROTECTED]> wrote: > > On May 10, 2008, at 2:38 PM, Juerd Waalboer wrote: > > > 1. The plugin loading code must be changed to allow loading Perl > > modules > > in addition to regular plugin files. I believe the changes would be > >

Re: Plugins on CPAN

2008-05-10 Thread Juerd Waalboer
Ask Bjørn Hansen skribis 2008-05-10 14:51 (-0700): > > If the whole idea is generally considered a good idea, I volunteer > > to do these things. > +1! I'll start documenting then. What's the preferred patch protocol? Unified diff to the mailinglist? -- Met vriendelijke groet, Kind regards, Ko

Re: Plugins on CPAN

2008-05-10 Thread Juerd Waalboer
Ask Bjørn Hansen skribis 2008-05-10 14:51 (-0700): > I thought I did that a while ago - you should be able to put in a > module name in the plugins config and it'll load that module rather > than do the wrapper around a single plugin file. Ah, so you did! I had expected this in Qpstmpd::Plugin

Re: Plugins on CPAN

2008-05-10 Thread Ask Bjørn Hansen
On May 10, 2008, at 2:38 PM, Juerd Waalboer wrote: If the whole idea is generally considered a good idea, I volunteer to do these things. +1! -- http://develooper.com/ - http://askask.com/

Re: Plugins on CPAN

2008-05-10 Thread Ask Bjørn Hansen
On May 10, 2008, at 2:38 PM, Juerd Waalboer wrote: 1. The plugin loading code must be changed to allow loading Perl modules in addition to regular plugin files. I believe the changes would be minimal. I thought I did that a while ago - you should be able to put in a module name in the