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 = (
'[EMAIL PROTECTED]' => "comcast-server",
'[EMAIL PROTECTED]' => "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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Fixer
(Robert Smith)
Sent: Tuesday, February 05, 2008 4:48 PM
To: [email protected]
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, [EMAIL PROTECTED] and [EMAIL PROTECTED] 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
*:: [EMAIL PROTECTED] | AIM:: bigdaddyfix
*:: 6255 Sunset Blvd, 17th Floor, | Hollywood, CA, | 90028
*:: http://www.livenation.com <http://www.livenation.com/>
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com