Support Global Relay export of individual attachments up to 250MiB (total post size approx. 1.6GiB)

Description

Current support is total post size (message + all attachments) up to 250MiB.

A single post could potentially (but probably very rarely) be greater than 250MiB.

In such a case currently in Global Relay beta the attachments are skipped from being emailed to Global Relay and the associated post ID is logged and the message is displayed in the UI.

However:

  • there is no record of the attachments being skipped in Global Relay itself.

  • there is no manual or retry path for admin.

  • in the case that another error occurs during the same upload the message would not bubble up into the UI (because there's only one error at a time).

  • in the case that the error does not bubble up to the UI AND then the user deletes their logs there would be not recored of the skipped attachments at all.

Proposed changes (as recommended by Global Relay):

1. Export messages of size up to 250MB - any larger exports may result in timeouts and those exceeding 300MB will fail automatically.
2. If we have a message that exceeds 250MB, we can split it into separate emails (e.g. one attachment per email) as long as they have the same thread ID so that the system knows those attachments belong to the same message.

We should make sure the following is documented once this ticket is implemented:
1. Using the same thread_ID will automatically create a thread of messages in Global Relay's A10 environment; for A9, reviewers can leverage the search tools to retrieve related messages by using the specific thread_ID

QA Test Steps

None

Status

Mana

8

Assignee

Martin Kraft

QA Assignee

None

Reporter

Martin Kraft

Epic Link

Fix versions

Mattermost Team

Platform

Sprint

None

Labels

None

QA Testing Areas

None

GitHub Issue

None
Configure