[SOLVED] PostMaster Filter Set Dynamic Field from Body

Moderator: crythias

Locked
ppreininger
Znuny newbie
Posts: 12
Joined: 20 Jun 2024, 10:21
Znuny Version: Znuny LTS
Real Name: Peter Preininger

[SOLVED] PostMaster Filter Set Dynamic Field from Body

Post by ppreininger »

Hi,
I want to set some dynamic fields depending on the body of an E-Mail:

The E-Mail looks like this:

blabla...
Serial: 123456789
Failure: Some Failure Description
Addditional stuff...

In This case, the fields should be set as follows:

DynamicFieldSerial <- 123456789
DynamicFieldFailure <- Some Failure Description

I found this: viewtopic.php?t=34285

but when using (.*?(?:Serial:).*) as filter and [***] as setter, the dynamic field is filled with "Serial: 123456789"

Furthermore I'd like to tag the group in order to have only one PostMaster Filter for all fields I'm intersted in.
Filter: (.*?(?:Serial:)(?<serial>))
Setter [**\serial**]

does not work.

Any ideas how I can solve this?

Thank you!
Last edited by ppreininger on 26 Jun 2024, 18:06, edited 1 time in total.
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: PostMaster Filter Set Dynamic Field from Body

Post by skullz »

My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
ppreininger
Znuny newbie
Posts: 12
Joined: 20 Jun 2024, 10:21
Znuny Version: Znuny LTS
Real Name: Peter Preininger

Re: PostMaster Filter Set Dynamic Field from Body

Post by ppreininger »

Yes, this did the trick - I was stuck to the enhanced stuff of version 5...

Thank you
Locked