[rt-users] Changing Queue based on Incoming Email address
Kimberly McKinnis
kmckinnis at tivo.com
Tue Feb 5 20:30:13 EST 2008
I create all tickets in our general queue and move them based on domain
name. Here's the scrip I use:
# Domains we want to move
my $domains = {};
my %domain_map = (
'\@.*\.?comcast\.com' => "comcast-server",
'\@.*\.?cox\.com' => "cox-server"
);
#Check each of our defined domains for a match
foreach my $domainKey (keys %domain_map ){
if($self->TicketObj->RequestorAddresses =~ /^.*?${domainKey}/) {
# Domain matches - move to the right queue
$self->TicketObj->SetQueue($domain_map{$domainKey});
}
}
________________________________
From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Fixer
(Robert Smith)
Sent: Tuesday, February 05, 2008 4:48 PM
To: rt-users at lists.bestpractical.com
Subject: [rt-users] Changing Queue based on Incoming Email address
I can't seem to get the syntax correct for a User Defined scrip to
change queue on an existing ticket, based on which email address they
send to. I have two queues, post at mydomain and review at mydomain. We have
an external database that sends emails based on where a project is in
our workflow, so we need the tickets to drift thru the queues based on
emails from the db.
Any existing scrips or extensions I might be able to look at?
--
Robert Smith | Post Production Manager
*:: +1.800.929.0737 x55 | +1.310.882.5584 fax
*:: fixer at livenation.com | AIM:: bigdaddyfix
*:: 6255 Sunset Blvd, 17th Floor, | Hollywood, CA, | 90028
*:: http://www.livenation.com <http://www.livenation.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20080205/511ffafc/attachment.htm>
More information about the rt-users
mailing list