This article applies to:
- MailMarshal 11.1 and above
- TextCensor
Question:
- How can I limit the time allowed for TextCensor evaluation?
Background:
TextCensor is the MailMarshal feature that checks the text of email bodies and attachments for specific content.
TextCensor scripts can be complex, and when run over large documents they can take a long time to complete.
If TextCensor scripts are consuming excessive resource or slowing email evaluation, you can choose to limit the time allowed for each script evaluation.
- This is an advanced feature that is generally not required. You should only consider configuring a timeout if TextCensor evaluations are often exceeding 30 seconds.
If the limit is exceeded, evaluation stops and the message is deadlettered with the code DL40000: Unexpected exception
By default there is no timeout for TextCensor evaluation
Configuring the Timeout:
To add a timeout for TextCensor - In the Management Console navigate to Configuration > Advanced Settings
- Add a setting: Engine.TextCensorTimeout (integer)
- The minimum recommended value is 30 (seconds)
- Commit configuration
Note that the timeout applies to each evaluation. A single message may include many TextCensor evaluations.