Character stripping from email/file properties

note

 Configurable only via configuration update process

OnePlace Solutions can be configured to strips out specific characters from email or file properties and replace them with an underscore.To provide a custom set of rules to define which characters get stripped you can provide your own regular expression (regex)  statement.

The <filePropertiesIllegalCharactersRegEx> tag must be inserted within opening and closing <sendToHandler> tags.

You must also insert a & <![CDATA[[u0026]]]> which is a regular expression (U00226 = ampersand - &)

Replace "u0026" with your own regex statement, characters matching the regex statement will be stripped.  

 

To ensure that the standard OnePlaceMail characters are continued to be stripped, please include the full range that we already strip, as per the example below.

 

Example: prevent ampersand from being stripped. 

<configuration>
    <sendToHandler>
        <filePropertiesIllegalCharactersRegEx action="delete"/>
        <filePropertiesIllegalCharactersRegEx action="insert">
        <![CDATA[^a-zA-Z0-9\x20\-\u00C0\u00C2\u00C4\u00C5\u00C6\u00C7\u00C8\u00C9\u00CA\u00CB\u00CE\u00CF\u00D4\u00D6\u00D8\u00D9\u00DB\u00DC\u00E0\u00E2\u00E4\u00E5\u00E6\u00E7\u00E8\u00E9\u00EA\u00EB\u00EE\u00EF\u00F4\u00F6\u00F8\u00F9\u00FB\u00FC\u00FF\u0040\u0021\u0024\u005E\u0028\u0029\u002D\u005F\u003B\u0027\u005B\u005D\u0152\u0153\u0178\u0026] ]>
        </filePropertiesIllegalCharactersRegEx>
    </sendToHandler>
</configuration>

 

Example: Disable the Custom Character Stripping (reverts to default)   

<configuration>
    <sendToHandler>
        <filePropertiesIllegalCharactersRegEx action="delete"/>
    </sendToHandler>
</configuration>

 

 

Illegal character stripping from filenames

note

 

Configurable only via configuration update process

 

 

By default illegal characters are stripped of the email  when creating the filename or an attachment and replaces them with an underscore. To provide a custom set of rules to define which characters get stripped you can provide your own regular expression (regex) statement.

 

The<filenameIllegalCharactersRegEx> tag must be inserted within opening and closing <outlook> tags. You must also insert a <![CDATA[[^a-zA-Z0-9\x0020\u0026]]]> which is a regular expression. Replace " ^a-zA-Z0-9\x0020\u0026" with your own regex statement.

Example: prevent stripping of letters, numbers, spaces, and some Norwegian language characters.

<configuration>
<outlook>
<filenameIllegalCharactersRegEx action="delete"/>
<filenameIllegalCharactersRegEx action="insert">
<![CDATA[ [^a-zA-Z0-9\x0020\U0026] ]]>
</filenameIllegalCharactersRegEx>
</outlook>
</configuration> 

 

 

Example: Disable the Illegal Custom Character Stripping (reverts to default) 

<configuration>
<outlook>
<filenameIllegalCharactersRegEx action="delete"/>
</outlook>
</configuration>