mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
The content of a message is truncated to `MAX_MESSAGE_LENGTH`, which is 1000 characters. Since the email gateway places attachments at the very end of the extracted body, that means that they are the first thing to get truncated off. That is, if an incoming email message contains 1000 `a`s and an image attachment, the link that attaches the attachment to the message will get truncated off, leaving it dangling in the database. Truncate the message body content separately from the attachment links which are included at the end of the body.
18 KiB
18 KiB