[rt-users] RT-2.0.10 : rt-mailgate with external data source.

Kristopher Lalletti kris at eclipseci.com
Wed Jan 16 15:14:59 EST 2002


Indeed, works perfectly with stock config.

Thanks!

-----Original Message-----
From: Matthew Kalastro [mailto:mkalastro at soe.ucsc.edu] 
Sent: January 16, 2002 3:03 PM
To: Kristopher Lalletti
Cc: rt-users at lists.fsck.com
Subject: Re: [rt-users] RT-2.0.10 : rt-mailgate with external data
source.

Hi Kristopher,

I found the problem wasn't with the code in config.pm (which you've got
to
modify for the external lookup anyway), but with rt-mailgate.  Here's
the
changed code I use in my rt-mailgate (2.0.8).

# {{{ If we require that the sender be found in an external DB and
they're not
# forward this message to RTOwner
# modified by mkalastro at soe.ucsc.edu

my @ExternalUserInfo = &RT::LookupExternalUserInfo
    ( $CurrentUser -> UserObj -> EmailAddress,
     $CurrentUser -> UserObj -> RealName );
my $FoundUser = shift @ExternalUserInfo;

if ( $RT::LookupSenderInExternalDatabase &&
    $RT::SenderMustExistInExternalDatabase &!
    $FoundUser )  {

    MailError(To => $RT::OwnerEmail,
              Subject => "RT Bounce: $Subject",
              Explanation => "RT couldn't find requestor via its
external datab\
ase lookup",
              MIMEObj => $entity);

}

# }}}





More information about the rt-users mailing list