Postmaster external ticket recognition regex

Moderator: crythias

Locked
soos
Znuny newbie
Posts: 38
Joined: 12 Mar 2014, 11:53
Znuny Version: 3.3.1
Real Name: O

Postmaster external ticket recognition regex

Post by soos »

Hi,

I'm trying to get the external ticket ID from the postmaster filter, I have attached a screenshot from SysConfig, the regex works if I use it in an external perl script, but I don't get any error messages and the emails are not interpreted correctly as followups.

The ticket format is [Company XYZ-829829] where XYZ-829829 is the relevant part. There are some mungled messages where there's a ~ in front of XYZ, so that's why I made it optional.

I'm a little bit stumped and I'd really appreciate the help! :)
You do not have the required permissions to view the files attached to this post.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Postmaster external ticket recognition regex

Post by crythias »

I recommend testing at regexpal.com
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
soos
Znuny newbie
Posts: 38
Joined: 12 Mar 2014, 11:53
Znuny Version: 3.3.1
Real Name: O

Re: Postmaster external ticket recognition regex

Post by soos »

Thanks, I ended up looking at the source for the filter and I realized it wanted a match expression, so I rewrote it and it seems to work, but I must've misunderstood the functionality because now it just adds the incoming message as a "note-report", I thought it would add it as a follow-up to a ticket with that ID in the subject or similar.
Locked