Post Master Filter

English! place to talk about development, programming and coding
Post Reply
n123
Znuny newbie
Posts: 7
Joined: 18 Oct 2013, 05:51
Znuny Version: OTRS 3.2.11

Post Master Filter

Post by n123 »

I used the settings in the below, but still the incorrect subject format creates a ticket. Please help.

Postmaster Filter:

* Stop after match: No

Filter Condition
Header 1:Subject
Value 1: /^TSC-CAB+[[:space:]]+ACTIVITY+[[:space:]]+REQUEST:+[[:space:]]+[a-zA-Z0-9]/

Set Email Headers
Header 1:X-OTRS-Ignore
Value 1: yes
Im using OTRS Version 3.2.11
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Post Master Filter

Post by crythias »

+ says one or more of the preceding element
http://regexpal.com
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Post Master Filter

Post by reneeb »

If you have the slashes in the field, please remove them as they are part of the regex, not the delimiter.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
n123
Znuny newbie
Posts: 7
Joined: 18 Oct 2013, 05:51
Znuny Version: OTRS 3.2.11

Re: Post Master Filter

Post by n123 »

thanks for the reply, its already work, :)
Im using OTRS Version 3.2.11
n123
Znuny newbie
Posts: 7
Joined: 18 Oct 2013, 05:51
Znuny Version: OTRS 3.2.11

Re: Post Master Filter

Post by n123 »

crythias wrote:+ says one or more of the preceding element
http://regexpal.com
how to use this link? I cant see the error message if I type a wrong data
Im using OTRS Version 3.2.11
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Post Master Filter

Post by crythias »

n123 wrote:how to use this link?
In the top, put in your filter criteria (as reneeb said, slashes aren't necessary.):

^TSC-CAB+[[:space:]]+ACTIVITY+[[:space:]]+REQUEST:+[[:space:]]+[a-zA-Z0-9]

In the bottom, type in something that might match it:

TSC-CAB ACTIVITY REQUEST a

Below will turn yellow as it matches.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Post Reply