[rt-users] Email Queue Routing

Pierre Buhas pierre.buhas at duolog.com
Thu Jan 20 04:14:05 EST 2011


This is my loop on the queues which is not working..

my $queues = new RT::Queues(RT::SystemUser);
foreach my $queue ($queues->Next) {


there must be some mistake above. Is the creation of my variable $queues
correct ?

I also tried the following:

my $queues = new RT::Queues(RT::SystemUser);
while ( my $queue = $queues->Next ) {

but it did not work better. So that's why I suspect this is the way I get
the list of queues which is not the way it should be..

Any idea ?

Thanks

Pierre BUHAS
+353 1 217 8422

Duolog Technologies



On 19 January 2011 21:43, Kevin Falcone <falcone at bestpractical.com> wrote:

> On Wed, Jan 19, 2011 at 02:09:38PM +0000, 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 $queue = $queues->Next ) {
>
> The new is really old-style but should be fine
>
> -kevin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110120/477c89d4/attachment.htm>


More information about the rt-users mailing list