[rt-users] Filter on body
Machiel van Veen
m.vanveen at franksolutions.nl
Tue Sep 11 11:15:41 EDT 2007
On IRC someone suggested,
---
if ($self->$TicketObj->Transactions->First->Content =~ /Zylab body filter
test /i )
---
It does not work though, does anyone know how I can refine this?
If any one can point me to the right docs that would be great too, I tried the
wiki but it seems to be incomplete. I attempted the read from the code but
thats way over my head.
Thanks again for any replies on this.
--
Best regards
Machiel van Veen
On Tuesday 11 September 2007 10:46, Machiel van Veen wrote:
> Hi list,
>
> I need to create a filter to move messages to a queue automaticly depending
> on the contents of the email body. I already have filters checking on
> subject so I think I can reuse that one.
>
> Would the following filter work?
>
> ---
>
> Condition: On Create
>
> Action: User Defined
>
> Template: Global template: Blank
>
> Stage: TransactionCreate
>
> Custom condition:
>
> Custom action preparation code: return 1;
>
> Custom action cleanup code:
> if ($self->TicketObj->Body( ) =~ /Content I filter on /i ) {
>
> $self->TicketObj->SetQueue('Destination queue');
> return 1;
> }
>
> ---
>
> Thanks for any help on this in advance.
More information about the rt-users
mailing list