How to use regex in postamster filter

Úr Balázs <[email protected]>
Newsgroups gmane.comp.otrs.user
Message-ID <CAAcT46Wud1ic25d4_ayWC0x+5gEjsEu+LGpg+FSGoU--kH0QVA@mail.gmail.com>
Hi,

We are trying to use regex in postmaster filter, but is doesn't work.
I don't know if is it a bug, or we use it wrongly.
We need to automaticaly close a ticket, which body contains a line
with word "Closeable". Only this word is allow in the line.

Sample email:

To: [email protected]
From: [email protected]
Subject: This is a test for auto close

Closeable
Accounted time: 30 min

This ticket can be closed.


Regex what we are trying to use in postmaster filter:

Filter condition:
Check email header: Body
Look for value: ^Closeable$

Set Email Headers:
Set email header: X-OTRS-State
Set value: closed successful


We tried ^Closeable.*$ but it also doesn't work.
^Closeable works, but this also matches the line "Closeable or not
closeable, that is the question...", but this is not allowed by our
policy.

Can anybody help?

Regards,
Balázs
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.