PostMaster Filter - keyword in the subject

Moderator: crythias

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

PostMaster Filter - keyword in the subject

Post by andy17d »

Hello.
I need to set up filtering of mail with tickets so that emails with a specific keyword in the subject are directed to a specific queue.
Let's say the keyword is "AGE". Therefore, topics should be caught, e.g. [AGE] example subject, AGE - example subject, subject AGE xxxxx, etc.
However, topics where AGE is part of a word should not be included, e.g. stAGE, messAGEs, etc.

I have now created a filter:

Code: Select all

Check email header: Subject Look for value: .*(AGE).*
It works almost well, but unfortunately there are topics where there are words containing the phrase AGE.
Please help me define it.
Regards
OTRS 4.0.19/6.0.26, openSUSE 12, MySQL 5.5

KodIT Usługi Informatyczne - Odzyskiwanie danych Poznań - Serwis Komputerowy
zzz
Znuny superhero
Posts: 888
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: PostMaster Filter - keyword in the subject

Post by zzz »

Hey,

This is not really OTRS related, but you might take a look at Word Boundaries.

Code: Select all

\bAGE\b
Best regards
Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
andy17d
Znuny newbie
Posts: 78
Joined: 30 Jan 2014, 15:27
Znuny Version: 4.0.19
Location: Poland
Contact:

Re: PostMaster Filter - keyword in the subject

Post by andy17d »

Super, it works. You are great!
Thank you very much.
Regards.
OTRS 4.0.19/6.0.26, openSUSE 12, MySQL 5.5

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