[rt-users] Move tickets to Queue

Kevin Falcone falcone at bestpractical.com
Mon Feb 22 09:57:37 EST 2010


On Mon, Feb 22, 2010 at 03:25:33PM +0100, polloxx wrote:
> if ($self->TicketObj->RequestorAddresses =~ /polloxx\@gmail\.com/){
>   $self->TicketObj->SetQueue("Gmail");
>   return(1);
> }

What happens when you check the return values of SetQueue?
You'll get two values, a $value and a $msg if $value is 0, the $msg
will contain the error.

You may also need to make your scrip TransactionBatch, but you should
always check return values.

-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100222/ba791347/attachment.sig>


More information about the rt-users mailing list