Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Ticket filter rules does not work in some occasion

Environment:
  php 5.4.45
  mysql 5.5.52
  apache 2.2.15 centos
  vanilla install version 1.9.14
  email piping: tested and working

currently set up a rule to reject tickets with non-ASCII chars (email body):
  admin -> manage -> ticket filter ->

  Target Channel: any
  Ticket / Issue Details: Match Regex /[^\x00-\x7F\x80-\xFF]+/
  Reject Ticket: checked

It blocks most of the tickets falling into the rule (verified this by looking at the osticket syslog and the mailbox). but still a few emails containing unwanted chars are slipping through into the open tickets list daily.

Hope my question is clear, Any insight?
Tagged:

Comments

  • Can you provide a real world example of something that got through your filter?
  • Hi Thanks

    Just copy an email's body below:

    =================================

    info,您好

       郗迡继
       2017-1-5
    =================================


    hope this helps
  • Hello StephenD,

    Try putting double or single quotes around the whole regex, save changes and try again.
  • So after looking at it closely, if you remove the '^' in the beginning and remove the front/back '/' it should work. I tested and it works on v1.10!
Sign In or Register to comment.