Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy load message text and attachments data #285

Merged
merged 1 commit into from
May 5, 2019

Conversation

nickl-
Copy link
Contributor

@nickl- nickl- commented Mar 29, 2019

Something along these lines...

fixes #150 #167 #122 as discussed at #284

instead of trying to avoid loading attachments rather put it off until it is needed.

we can do the same for text plain and text html as well, what you don't need won't be retrieved.

solution remains non breaking, public lazy load properties are implemented as property magic getter

nJoy!

fixes barbushin#150 barbushin#167 barbushin#122  as discussed at barbushin#284 instead of trying to avoid loading attachments rather put it off until it is needed.
we can do the same for text plain and text html as well, what you don't need won't be retrieved.
solution remains non breaking, public lazy load properties are implemented as property magic getter
@nickl-
Copy link
Contributor Author

nickl- commented Mar 30, 2019

Also fixes #241 or at least moving in the right direction

@Sebbo94BY Sebbo94BY changed the base branch from master to develop May 1, 2019 19:53
@Sebbo94BY
Copy link
Collaborator

@Sebbo94BY Sebbo94BY merged commit d4efd7a into barbushin:develop May 5, 2019
@Sebbo94BY
Copy link
Collaborator

Just tested it quickly with my test script and some test emails, which were used to reproduce some reported issues.

These changes work as expected. Backward compatibility is given.

All PHPUnit tests are still successful.

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.

None yet

2 participants