Message body size limit properties

Several properties enforce the maximum email body size allowed for inbound and outbound emails.

Properties

In some situations, an email message may contain more information in the body than the system can process, especially when string searches and regular expressions are used. By default, the system can process only up to 16MB worth of information in the email body and body_text fields (8MB each). If the email body exceeds this limit, the system truncates the body text.

Users with the admin role can configure the following properties to control email body size limits. The properties can be added to the System Property [sys_properties] table. Neither property should exceed the system limit of 16MB. Setting either of the following properties to an excessively large value may cause performance issues.

Table 1. Message body size limit properties
Name Description
com.glide.email.max_body_bytes Sets the maximum body size in bytes allowed per inbound email. Ensure that the sum of this property and the glide.email.inbound.max_total_attachment_size_bytes property is well below the maximum total email size.
  • Type: integer
  • Default value: 1048576
  • Learn more: Inbound Email Attachment Processing
glide.email.outbound.max_body_bytes Sets the maximum body size in bytes allowed per outbound email. Ensure that the sum of this property and theglide.email.outbound.max_total_attachment_size_bytes property is well below the maximum total email size.
  • Type: integer
  • Default value: 1048576
  • Learn more: Outbound Email Attachment Processing
Note: A different property, com.glide.attachment.max_size, sets the maximum file size allowed for any attachment in the system and overrides any larger values of glide.email.inbound.max_total_attachment_size_bytes and glide.email.outbound.max_total_attachment_size_bytes.

Inbound email body processing

For inbound emails, the system enforces the maximum body size as set by the com.glide.email.max_body_bytes property. When the body size exceeds the configured value:
  • The system does not run inbound email actions that would otherwise be triggered by the email.
  • The system truncates the Body text on the Email form.
  • The system logs a warning and sets the Error string field on the Email form. The log message for such an email might look like this:
    Email set to receive-ignored because its size exceeds the value set in com.glide.email.max_body_bytes. 1995 character(s) were truncated from the body field.

Outbound email body processing

For outbound emails, the system enforces the maximum body size as set by the glide.email.outbound.max_body_bytes property. When the body size exceeds the configured value:
  • The system does not send the email.
  • The system truncates the Body text on the Email form.
  • The system logs a warning and sets the Error string field on the Email form. The log message for such an email might look like this:
    Email set to send-ignored because its size exceeds the value set in glide.email.outbound.max_body_bytes. 1337 character(s) were truncated from the body field.