[rt-users] Custom Conditions
Andy Harrison
ah30 at harrisonfamily.com
Fri Mar 5 08:16:50 EST 2004
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On Fri, 5 Mar 2004 09:44:42 -0000, Dermot Williams wrote
Subject: "[rt-users] Custom Conditions"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Hi,
>
> Can anyone tell me what the custom condition box in Scrips is for? Can I
> type Perl scripts directly into to it to, for example, dump mail into
> particular queues depending on the subject line?
>
> Any help would be much appreciated, as always.
For conditions that aren't available in the Condition selection menu.
Use perl, just make it return true or false.
For example:
undef unless ($self->TicketObj->Subject =~ m/foo/ or $self->TicketObj->Subject =~ m/bar/ );
But the queue has an e-mail address, so doing a queue change is
probably complicating something that doesn't need to be complicated.
--
Andy Harrison
(full headers for details)
More information about the rt-users
mailing list