Using RegExp in postmaster filter

Moderator: crythias

Locked
eitarad
Znuny newbie
Posts: 15
Joined: 21 Dec 2010, 13:30
Znuny Version: 3.0.6

Using RegExp in postmaster filter

Post by eitarad »

Hi All,

I would like to define a rule in postmaster filter as following:

If the Subject contains the strings "completed successfully" do.. 1 2 3....
As far as i understand i cannot use regular wildcards in the postmaster filter rules (e.g Match Subject Value: *Completed Successfully* Set: X-OTRS-QUEUE Value: 'SomeQueue')..

Also, i understand that i can use Regular Expressions .. so i wanted to make sure my syntax is correct (according to http://www.regular-expressions.info/completelines.html) .. but also when i used the RegExp , it still doesn't works..

Maybe i should add another string that should allow the use of Regular Expressions in the rule filter?
Ive also tried using "*Completed Successfully*" which also didn`t work..

I have no idea what`s wrong neither how to accomplish this task in ANY other way...

thanks in advance!
Eitam.
You do not have the required permissions to view the files attached to this post.
OTRS 3.0.6 On CentOS 4.1.2 with MySQL
eitarad
Znuny newbie
Posts: 15
Joined: 21 Dec 2010, 13:30
Znuny Version: 3.0.6

Re: Using RegExp in postmaster filter

Post by eitarad »

Hi All,

i haven't tried the most simple way, only defining the strings i wanted.. "Completed Successfully".. OTRS see`s this as a wildcard.

hope that will help anyone who ran into the same problem, i have wasted ALOT of time trying to solve that one out.

Thanks anyway :)

Cheers,

Eitam.
OTRS 3.0.6 On CentOS 4.1.2 with MySQL
Locked