On Thu Dec 18, 2008 at 17:01:21 -0800, Michael Papet wrote:

> I'm attempting an LDAP whitelist. I cannot seem to get the  sender's full 
> address. 

  This is the code I use:

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

      #
      #  Get sender.  Untaint it.
      #
      my $sender = $transaction->sender->address || '<>';

  }

  That'll only work in some hooks though, after a sender has been set.
  I guess that's kinda obvious ..

Steve
-- 
Managed Anti-Spam Service
http://mail-scanning.com/

Reply via email to