This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Puremessage Offensive Language Block Exceptions?

We work in a school and have offensive language turned on. the word        cu**ng       with the     mi     replacing the stars gets blocked. Great. Apart from we have a supplier called      dave cu**ng associates    so how do we block the original word but let through things to the associates in? or with their name in the message?

I've tried having a go with regular expressions but I just can't see a way to exclude a word if it's surrounded by other good words making the phrase ok even if the word is wrong. I have to say the documentation on this part of the product is wofully inadequate. Is it possible? If not can we have it? Is there a different way to do it?

J

:24427


This thread was automatically locked due to age.
  • Hi,

    The type of regex recipe required to allow something like this is tricky since you need to have an expression that has to handle substrings.

    You'd need to construct something that looks for words that don't match "Dave" or "Associates" around the offending word, which means the syntax would work to find a postive hit for NOT DAVE and OFFENDING WORD and NOT ASSOCIATES -- anything that matches could then be quarantined.

    You can review the documentation on the regex library that PureMessage for Exchange relies on here: http://www.boost.org/doc/libs/1_49_0/libs/regex/doc/html/boost_regex/syntax.html If you are using a different version of PureMessage (either Unix or Domino), the regex should be similar enough since they're all somewhat dependent upon on Perl.

    However, the easist solution may be to remove that regex entry. If "Dave" or "Associates" were on separate lines, then the regex would have to further enhanced to detect anything other than what's a space away. As well, there's no way within PureMessage for Exchange to allow certain "regex" through and if exceptions are required, it's only at the recipient level, not the sender. The default list of offensive words that is provided with PureMessage for Exchange is only a suggested list; there may be entries that need to be removed or added depending on organizational requirements.

    Please note that creating and troubleshooting regex falls into "best efforts" for Sophos Support; if you need a proper custom solution for your organization, our Professional Services team can be booked to assist in building a solution suited for your needs.

    :24581
  • So I guess you are saying that it's impossible. I don't see this request as something particularly out of the ordinary as context is vital when discussing if something is "offensive" or not. The inability to make an exeception for specific groups of words in pure message, i'm sure it would be something documented somewhere instead of "look through the inpenetrable manual on another site". So the real solution is don't be unlucky enough to be born with / use a name that could be misinterpreted as offensive.

    Thanks for letting me know, one afternoon was enough banging my head against this particular brick wall.

    :24589
  • It is worthwhile learning about Regular Expressions.  To test your expressions in a safe environment, try TextPad, whose search uses RegEx.

    I made the following to catch Russian website links:    http:\/\/[^ ]*\.ru\/

    and this to catch V**gra and variant misspellings:  [Vv][iIaAgGrRoO]{5}          (there's a space on the end you can't see here)

    Hope this helps.

    :35615