"Stop after match" - purpose of the option?

Moderator: crythias

Locked
andy17d
Znuny newbie
Posts: 78
Joined: 30 Jan 2014, 15:27
Znuny Version: 4.0.19
Location: Poland
Contact:

"Stop after match" - purpose of the option?

Post by andy17d »

What is the purpose of the option "Stop after match" in PostMaster Filter?
OTRS 4.0.19/6.0.26, openSUSE 12, MySQL 5.5

KodIT Usługi Informatyczne - Odzyskiwanie danych Poznań - Serwis Komputerowy
voiprodrigo
Znuny newbie
Posts: 62
Joined: 03 Dec 2014, 18:49
Znuny Version: OTRS 4
Location: Portugal
Contact:

Re: "Stop after match" - purpose of the option?

Post by voiprodrigo »

The filter is final if selected, otherwise other matching filters may still be applied
Linux (Ubuntu 14.04.1 LTS) | MySQL 5.5.40 | OTRS 4.0.7
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: "Stop after match" - purpose of the option?

Post by EXG133 »

All filters are checked alphabetically like you see them on the postmaster filter page:

Filter A sets a ticket to Type "Change Request" if the mail was sent from changes@example.com
Filter B sets a ticket to Type "Incident" if a mail is sent from any address from the @example.com domain

Now we receive a mail from changes@example.com.
If you selected 'Stop after match' "YES" it will not check filter B so the result is type "Change Request".
Otherwise with 'Stop after match' set to "NO" it will also check B and the type will be "Incident" because X-OTRS-Type will be overwritten by the second filter.

So you have to be real careful about the order of your filters and about that 'Stop after match' option.
andy17d
Znuny newbie
Posts: 78
Joined: 30 Jan 2014, 15:27
Znuny Version: 4.0.19
Location: Poland
Contact:

Re: "Stop after match" - purpose of the option?

Post by andy17d »

EXG133 - Thank you veru much for explains. Now all it is clear :)
OTRS 4.0.19/6.0.26, openSUSE 12, MySQL 5.5

KodIT Usługi Informatyczne - Odzyskiwanie danych Poznań - Serwis Komputerowy
Locked