Filtros de correo... Como funcionan?

Post Reply
evillegas
OTRS newbie
Posts: 35
Joined: 16 Aug 2018, 01:01
OTRS Version?: 6.0.10
Real Name: Edu

Filtros de correo... Como funcionan?

Post by evillegas » 21 Sep 2018, 16:33

Buenas he estado intentando configurar algunos filtros para que no se creen tickets, por ejemplo los correos que en el asunto empiecen con unas palabras como... [The job succeeded.] SQL Server Job System: ... pero no ha estado funcionando... lo que hice fue agregar lo siguiente

Image

Image


De este modo creo que funciono por un momento y luego ya no llegaron tickets de ningún lado, no se si estoy aplicando mal el filtro...

reneeb
OTRS guru
Posts: 4795
Joined: 13 Mar 2011, 09:54
OTRS Version?: 3.3.x
Company: Perl-Services.de
Contact:

Re: Filtros de correo... Como funcionan?

Post by reneeb » 21 Sep 2018, 16:38

As these are regular expressions, you have to escape the "[" and "]"...

Code: Select all

\[The job succeeded.\]
Perl / OTRS development: http://perl-services.de
Free OTRS add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de

evillegas
OTRS newbie
Posts: 35
Joined: 16 Aug 2018, 01:01
OTRS Version?: 6.0.10
Real Name: Edu

Re: Filtros de correo... Como funcionan?

Post by evillegas » 21 Sep 2018, 19:12

reneeb wrote:
21 Sep 2018, 16:38
As these are regular expressions, you have to escape the "[" and "]"...

Code: Select all

\[The job succeeded.\]
Thanks, the example that you gave me was useful to filter emails with this subject, is there a guide to use regular expressions ? since I would like to filter some emails from noreply @ ..., donotreply @ ...

And some other words in the subject for example "Failed" I try to do it according to your example but I got an error

Image


And I could not make the filters.

reneeb
OTRS guru
Posts: 4795
Joined: 13 Mar 2011, 09:54
OTRS Version?: 3.3.x
Company: Perl-Services.de
Contact:

Re: Filtros de correo... Como funcionan?

Post by reneeb » 21 Sep 2018, 20:52

You just have to escape "special characters". So in the second case you have to use

Code: Select all

Failed
https://medium.com/factory-mind/regex-t ... 9dc1c3f285
https://www.regular-expressions.info/tutorial.html
Perl / OTRS development: http://perl-services.de
Free OTRS add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de

marcosaurelio
OTRS wizard
Posts: 184
Joined: 08 May 2014, 16:05
OTRS Version?: 6.0.10
Real Name: Marcos Aurelio Silverio
Company: Infracerta
Location: Brazil
Contact:

Re: Filtros de correo... Como funcionan?

Post by marcosaurelio » 25 Sep 2018, 04:24

Reneeb esta correcto. pero una cosa que deberias pensar es porque el sistema está enviando correos para OTRS si no es la idea abrir ticket con ellos, talvez puedes hacer con que la origen pare de enviar este tipo de correo.

Bueno, es solo una idea.

Un abrazo.
OTRS 6.0.10 Centos 7 Mysql 5.6
Videos de OTRS no Youtube: https://www.youtube.com/channel/UCscGon ... 7hADe3AalA
http://infracerta.com.br

Post Reply