Message body size limit properties
Add properties to control the maximum email body size allowed for inbound and outbound email messages.
Properties
By default, the system processes up to 524,000 characters in the email body and body_text fields.
You can add and configure system properties glide.email.inbound.max_body_chars and glide.email.outbound.max_body_chars to increase or decrease the email body size limits. The system truncates the email body when it exceeds the configured limit. For example, if you configure the body size limit of glide.email.inbound.max_body_chars to 1,000 characters but receive an inbound email that is 2,000 characters, then the system truncates the email body at 1,000 characters.
| Name | Description |
|---|---|
| glide.email.inbound.max_body_chars | Sets the maximum body size in characters allowed per
inbound email.
|
| glide.email.outbound.max_body_chars | Sets the maximum body size in characters allowed per
outbound email.
|
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
glide.email.inbound.max_body_chars 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 glide.email.inbound.max_body_chars.
Outbound email body processing
For outbound emails, the system enforces the maximum body size as set by the
glide.email.outbound.max_body_chars 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_chars. 1337 character(s) were truncated from the body field.