<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Changing Queue based on Incoming Email address</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3199" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=821092801-06022008><FONT face=Arial
color=#0000ff size=2>I create all tickets in our general queue and move them
based on domain name. Here's the scrip I use:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=821092801-06022008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=821092801-06022008><FONT face=Arial
color=#0000ff size=2># Domains we want to move<BR>my $domains =
{};</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><SPAN class=821092801-06022008><FONT face=Arial
color=#0000ff size=2>my %domain_map =
(<BR>
'\@.*\.?comcast\.com' =>
"comcast-server",<BR> '\@.*\.?cox\.com'
=>
"cox-server"<BR>
);</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><SPAN class=821092801-06022008><FONT face=Arial
color=#0000ff size=2>#Check each of our defined domains for a match<BR>foreach
my $domainKey (keys %domain_map
){<BR>if($self->TicketObj->RequestorAddresses =~ /^.*?${domainKey}/)
{<BR> # Domain matches - move to the right
queue<BR>
$self->TicketObj->SetQueue($domain_map{$domainKey});<BR>
}<BR>}</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] <B>On Behalf Of </B>Fixer
(Robert Smith)<BR><B>Sent:</B> Tuesday, February 05, 2008 4:48 PM<BR><B>To:</B>
rt-users@lists.bestpractical.com<BR><B>Subject:</B> [rt-users] Changing Queue
based on Incoming Email address<BR></FONT><BR></DIV>
<DIV></DIV><FONT size=4><FONT face="Calibri, Verdana, Helvetica, Arial"><SPAN
style="FONT-SIZE: 11pt">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@mydomain and
review@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.<BR><BR>Any existing scrips or extensions I
might be able to look at?<BR><BR><BR></SPAN></FONT></FONT><FONT
color=#7f7f7f><FONT size=1><FONT face="Verdana, Helvetica, Arial"><SPAN
style="FONT-SIZE: 7pt"><B>-- <BR>Robert Smith</B> | Post Production
Manager<BR></SPAN></FONT><SPAN style="FONT-SIZE: 7pt"><FONT
face=Wingdings>(</FONT><FONT face="Verdana, Helvetica, Arial">:: +1.800.929.0737
x55 | +1.310.882.5584 fax<BR></FONT><FONT face=Wingdings>8</FONT><FONT
face="Verdana, Helvetica, Arial">:: </FONT></SPAN></FONT></FONT><FONT
size=1><SPAN style="FONT-SIZE: 7pt"><FONT face="Verdana, Helvetica, Arial"><FONT
color=#0000ff><U>fixer@livenation.com</U></FONT><FONT color=#7f7f7f> | AIM::
bigdaddyfix<BR></FONT></FONT><FONT color=#7f7f7f><FONT
face=Wingdings>*</FONT><FONT face="Verdana, Helvetica, Arial">:: 6255 Sunset
Blvd, 17th Floor, | Hollywood, CA, | 90028<BR></FONT><FONT
face=Wingdings>:</FONT><FONT face="Verdana, Helvetica, Arial">::
</FONT></FONT><FONT face="Verdana, Helvetica, Arial"><FONT color=#0000ff><U><A
href="http://www.livenation.com">http://www.livenation.com</A></U></FONT><FONT
color=#7f7f7f> <</FONT><FONT color=#0000ff><U><A
href="http://www.livenation.com/">http://www.livenation.com/</A></U></FONT><FONT
color=#7f7f7f>> </FONT></FONT></SPAN></FONT><FONT size=4><FONT
face="Calibri, Verdana, Helvetica, Arial"><SPAN
style="FONT-SIZE: 11pt"><BR></SPAN></FONT></FONT></BODY></HTML>