Re: basic plugin help

2008-01-21 Thread John Peacock
Jared Johnson wrote: So perhaps Data::Dumper is having some trouble handling our data structure? We get the same error trying to operating on $transaction alone or $self alone. Try setting $Data::Dumper::Purity = 1; (use the POD, Luke...;-) My questions right now -- anybody got ano

Re: basic plugin help

2008-01-18 Thread Jared Johnson
Everything is (should be?) fairly well documented. Just do: perldoc / path/to/qpsmtpd/lib/Qpsmtpd/Transaction.pm (and Connection.pm and so on). I guess it'd be good to get that stuff on the wiki. Thanks for the quick responses! I was noticing all the POD everywhere and working my way to the r

Re: basic plugin help

2008-01-18 Thread Matt Sergeant
On 18-Jan-08, at 3:11 PM, Jared Johnson wrote: I've made a bit of progress though, I found /var/log/qpsmtpd/ qpsmtpd.log which has the following output: FATAL PLUGIN ERROR: Can't coerce GLOB to string in entersub at / usr/lib/perl/5.8/Data/Dumper.pm line 179. So perhaps Data::Dumper is hav

Re: basic plugin help

2008-01-18 Thread Jared Johnson
Maybe it can't find debug() or Dumper()? Is this the entire plugin? No, the plugin has: use Data::Dumper; use DoubleCheck::Util qw(debug); I've made a bit of progress though, I found /var/log/qpsmtpd/qpsmtpd.log which has the following output: FATAL PLUGIN ERROR: Can't coerce GLOB to str

Re: basic plugin help

2008-01-18 Thread Matt Sergeant
On 18-Jan-08, at 2:49 PM, Jared Johnson wrote: Hi, I'm writing my first qp plugin, in order to write logs to our custom db when a message is queued. I first wrote a small routine to simply dump $self and $transaction in order to better understand the resources available for plugin writin

basic plugin help

2008-01-18 Thread Jared Johnson
Hi, I'm writing my first qp plugin, in order to write logs to our custom db when a message is queued. I first wrote a small routine to simply dump $self and $transaction in order to better understand the resources available for plugin writing: sub hook_queue { my ($self,$transaction) = @