[qpsmtpd] port while in pre_connection hook?

2009-05-05 Thread b-sub-bdf0e9f
qpsmtpd 0.31 We are using the following to determine the local port when in the 'connect' hook: my $localport = $self->qp->connection->local_port ; We would like to do the same thing in the 'pre_connection' hook. The above line doesn't work, and shows 'uninitialized value' in the logs. Is there

Re: [qpsmtpd] port while in pre_connection hook?

2009-05-05 Thread b-sub-bdf0e9f
On Tue, 5 May 2009, Hanno Hecker wrote: > On Tue, 5 May 2009 17:20:13 + (UTC) > b-sub-bdf0...@rope.net wrote: > > > qpsmtpd 0.31 > > > > We are using the following to determine the local port when in the > > 'connect' hook: > > > > my $localport = $self->qp->connection->local_port ; > > > > We

Re: [qpsmtpd] port while in pre_connection hook?

2009-05-05 Thread b-sub-bdf0e9f
On Tue, 5 May 2009, Jared Johnson wrote: > In current qp it would be about like so: > > sub hook_pre_connection { > my ($self,$transaction,%arg) = @_; > my $port = $arg{local_port}; > } > > -Jared Exactly what I want. Thanks. Always more than one way to do it. (But there's still room for