Skip to content

Delayed message body loading - #904

Merged
dvlbot merged 4 commits into
cytopia:masterfrom
mmcev106:large-email-support
Dec 13, 2022
Merged

dvlbot merged 4 commits into
cytopia:masterfrom
mmcev106:large-email-support

Conversation

@mmcev106

Copy link
Copy Markdown
Contributor

Delayed message body loading

Goal

The Mail page was crashing for me because I had a lot of large emails that were more than the browser could load at once. This PR fixes that problem by delaying message body loading until each message is clicked to reveal the body (which is now loaded via AJAX). I'm happy to do this a different way if you'd prefer.

DESCRIPTION

Not much else to say...

@mmcev106

Copy link
Copy Markdown
Contributor Author

@cytopia, just checking in to see if you have notifications setup for PRs and saw this. Again, I'm happy to accomplish this goal a different way if you'd prefer.

@cytopia cytopia self-assigned this Dec 11, 2022
@cytopia

cytopia commented Dec 11, 2022

Copy link
Copy Markdown
Owner

@mmcev106 unfortunately this currently breaks the integration tests here: https://github.com/cytopia/devilbox/blob/master/.tests/tests/intranet-email.sh#L72-L74

Do you have an idea, how to rewrite them and still make sure it tests for successful mail delivery?

@mmcev106

mmcev106 commented Dec 12, 2022 •

Copy link
Copy Markdown
Contributor Author

@cytopia, I just pushed a commit that should fix that test script. Let me know if you need anything else!

@mmcev106

Copy link
Copy Markdown
Contributor Author

Would you like me to fix the PHP 5.3 test failures, or perhaps limit testing to PHP 7+?

@cytopia

cytopia commented Dec 12, 2022 •

Copy link
Copy Markdown
Owner

Yes please. The intranet is supposed to work from PHP 5.3 onwards (5.2 is currently available, but not supported via the intranet)

@cytopia cytopia closed this Dec 12, 2022
@cytopia cytopia reopened this Dec 12, 2022
@cytopia

cytopia commented Dec 12, 2022

Copy link
Copy Markdown
Owner

Accidentally closed 🤦 now the checks are running from scratch :-/

@mmcev106

Copy link
Copy Markdown
Contributor Author

Done! However, you might want to consider dropping support for very old PHP versions. PHP has not supported 5.3 for eight years now.

@dvlbot
dvlbot merged commit c165fd2 into cytopia:master Dec 13, 2022
@mmcev106
mmcev106 deleted the large-email-support branch December 13, 2022 15:09
@cytopia cytopia mentioned this pull request Dec 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants