Capture block of text from email body and create note with it. How?

Moderator: crythias

Post Reply
voiprodrigo
Znuny newbie
Posts: 62
Joined: 03 Dec 2014, 18:49
Znuny Version: OTRS 4
Location: Portugal
Contact:

Capture block of text from email body and create note with it. How?

Post by voiprodrigo »

Hello,

I'm looking to do something like capture a block of text from an email (that comes from another ticketing system), and add it as a note to the ticket (it will either be a new ticket creation, or updating an existing ticket, but that part I have covered).

So, I need to run a regexp against the body, and place the match inside a new note, but I'm not seeing how to do this.

Any creative solution to achieve this through configuration, or, alternatively, a suggestion for best way to do this with code? (my first instinct here would be a custom postmaster module that does the matching and note creation, not sure if the best way).

Thanks!
Linux (Ubuntu 14.04.1 LTS) | MySQL 5.5.40 | OTRS 4.0.7
Post Reply