Re: [rt-users] Email Queue Routing

2011-01-20 Thread Raed El-Hames
-users-boun...@lists.bestpractical.com [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Pierre Buhas Sent: 20 January 2011 09:14 To: rt-users@lists.bestpractical.com Subject: Re: [rt-users] Email Queue Routing This is my loop on the queues which is not working.. my $queues = new RT

[rt-users] Email Queue Routing

2011-01-19 Thread Pierre Buhas
Hello, I am trying to customize one Scrip I found ( http://requesttracker.wikia.com/wiki/EmailRouting) .. Now what I would like to do is automatically routing and creating the ticket in the right queue by looking at a queues customField MailDomain where I store the domain name like: \@gmail\.com

Re: [rt-users] Email Queue Routing

2011-01-19 Thread Kenneth Crocker
Pierre, Have you tried other methods? If all the email is coming into the same Queue, why not just move them to another Queue based on the CustomFiled Value (I'm assuming your using CommandByMail for that). I do this for several Queues. We have a Triage Queue that receives the email tickets and

Re: [rt-users] Email Queue Routing

2011-01-19 Thread Pierre Buhas
Hi Kenneth, I suppose you are talking about a ticket CF. But in this case I presume you need to set this CF manually when it falls into your triage queue. Here I was thinking about a Queue CF that will be defining the email extension (like @bestpractical.com) so that all the tickets sent by the

Re: [rt-users] Email Queue Routing

2011-01-19 Thread Kenneth Crocker
List, Opps. On Wed, Jan 19, 2011 at 1:33 PM, Kenneth Crocker kfcroc...@lbl.gov wrote: Pierre, No, I was talking about a CF that is already set up with pre-defined values Select One. Each/or severl values can be used to correlate to a Support Queue. If you are using COmmandByMail, then a

Re: [rt-users] Email Queue Routing

2011-01-19 Thread Kevin Falcone
On Wed, Jan 19, 2011 at 02:09:38PM +, Pierre Buhas wrote: my %domain_map = (); my $queues = new RT::Queues(RT::SystemUser); foreach my $queue ($queues-Next) { $domain_map { $queue-FirstCustomFieldValue('MailDomain') } = $queue-Name; } That really wants to be a while ( my