Hi there, i'm trying to exclude all email that arrives on my IMAP server and marking it as resolved.I'm using the "Does not Match Regex" with the "Set ticket status " to Resolved.the ideal behaviour is that only email that contains determined words should be open as ticket. The others should be closed or resolved.My regex is"/((consulta)|(enquiry)|(frage)|(information)|(petici)|(rechnung)|(richiesta)|(solicitud))/gi"but obviously it's not working.How can i manage to build?thanks

@[deleted]This is an issue with our Regex filter backend. I have created a pull request to address this issue:https://github.com/osTicket/osTicket/pull/4443Please test this and get back to me.SIDE NOTEYour Regex is a over-done. You could use something as simple as:/consulta|enquiry|frage|information|petici|rechnung|richiesta|solicitud/giCheers.

Hi Kevin, no, i'ts not working.If i change the code as you show me, it set "closed" all emails.now it looks like it's not filtering. it 's setting open all emails and without filtering.Thanks for help"

@[deleted]Unfortunately the code fix is working for me every time.I setup the filter just like yours:https://pasteboard.co/HzrI2Q6.pngI reversed the fix, sent an email without the words in the Filter, and it indeed  work (it set the status to Resolved):https://pasteboard.co/HzrILQg.pngI then re-applied the fix, repeated the same process, and like expected (it set the status to Resolved):https://pasteboard.co/HzrJr6e.pngFor good measure I sent an email containing "consulta" (which should not set the status to Resolved) and it set the status to Resolved:https://pasteboard.co/HzrKSio.pngSo, all appears to be working correctly to me. Make sure you are in fact making the changes correctly, clear cache, restart the webserver, and make sure your Regex is like the example I posted above.Cheers.

Hi Kevin , yes it looks like it's working.I see that with my previuos regex there was an error because i must insert the double quote"/((consulta)|(enquiry)|(frage)|(information)|(petici)|(rechnung)|(richiesta)|(solicitud))/gi"now i changed all the regex and should be working... i will test it for a week and i'll let you know.Best regardsFrancesco

Write a Reply...