OTRS 5.0.27 how to set postmaster filter (if a string is not present in mail)?

Moderator: crythias

Post Reply
Thomymaster
OTRS newbie
Posts: 76
Joined: 26 Sep 2016, 10:50
OTRS Version?: 5.0.12
Company: MPImF Heidelberg

OTRS 5.0.27 how to set postmaster filter (if a string is not present in mail)?

Post by Thomymaster »

Hi


OTRS: 5.0.27


I have some postmaster filters that filter specific values of the incoming mail and set the queue and custom fields accordingly.

Now i need a postmaster filter that sets the queue (to the queue "else") if a string is not (!) found inside the complete mail body.

How can i achieve this (lets say the whole mail body should be searched for the string "test" and if not present, the queue should be set to "else")?


Best,
Thomas
OTRS 5.0.12 on Ubuntu 14.04 LTS
OTRS 5.0.27 on Ubuntu 16.04 LTS

Thomymaster
OTRS newbie
Posts: 76
Joined: 26 Sep 2016, 10:50
OTRS Version?: 5.0.12
Company: MPImF Heidelberg

Re: OTRS 5.0.27 how to set postmaster filter (if a string is not present in mail)?

Post by Thomymaster »

Is there anybody who can help me with this?
OTRS 5.0.12 on Ubuntu 14.04 LTS
OTRS 5.0.27 on Ubuntu 16.04 LTS

zzz
OTRS wizard
Posts: 569
Joined: 15 Dec 2016, 15:13
OTRS Version?: 3.x–6.0.x
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: OTRS 5.0.27 how to set postmaster filter (if a string is not present in mail)?

Post by zzz »

Hello Thomas,

Postmaster filters are executed from the bottom to the bottom, as they are sorted alphanumerically.
Unless you select 'Stop after match', all filters will be executed.
That means you'll need one that is listed at the bottom. Search for the term in the body and negate it (the button is right to the value field).

Best regards
Emin
Professional OTRS services for development, consulting, hosting and support:
efflux.de – German | efflux.de/en/ – English

Free and premium OTRS add-ons (TextModule, AdBlocker, ModernSkin, ModernSkinCustomer etc.): portal.efflux.de

Post Reply