On 6/22/09 at 8:50 AM -0500 Larry Nedry wrote:
>On 6/22/09 at 1:23 PM +0000 b-sub-0bfe...@rope.net wrote:
>>I'd like to retrieve the HOSTNAME. Can someone please point out how to get
>>that information into a plugin? Thanks.
>
>
>sub hook_mail {
>       my ($self, $transaction, $sender) = @_;
>
>       my $host = $sender->host;
>
>       return DECLINED;
>}

Please ignore my earlier pre-caffinated response.  I'm a little more awake now.

This should work:

sub hook_connect {
        my ($self, $transaction) = @_;

        my $host = $self->qp->connection->remote_host;

        return DECLINED;
}

Reply via email to