In continuation for the previous mail - for this purpose I got a small scrip


 

# Domains we want to move

my $domains = {};

 

my %domain_map = (

                   '[EMAIL PROTECTED]'        => "xxxx",

                   '[EMAIL PROTECTED]'        => "yyyy"

                );

 

#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});

     

$self->TicketObj->SetQueue(new_queue);

    }

}

 

 

I created a new global scrip for the new queue and put this under the custom
action field of the scrip. Can anyone put some light on this?

 

Thanks

Manohar

  _____  

From: rt-users-boun...@lists.bestpractical.com
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of H Manohar
Rayker
Sent: Tuesday, April 06, 2010 6:41 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] how to move tickets to different queue?

 

Hi,

 

How can I move a ticket to a different queue on the time of creation based
on the senders email domain?

 

For eg: 

 

myn...@somedomain.com   tickets should be moved to new_queue

 

 

Thanks

Manohar

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Reply via email to