MimeFactory refactoring#8345
Draft
link2xt wants to merge 11 commits into
Draft
Conversation
45102bc to
1956c42
Compare
ab2c000 to
5f3c57c
Compare
Stored location ID was not actually used and locations_last_sent timestamp was updated with the current time, possibly skipping locations.
5f3c57c to
f9c33de
Compare
f9c33de to
e314fc0
Compare
3d4610c to
b1b0e3f
Compare
e314fc0 to
ce43887
Compare
I renamed SkipAutocrypt into DeprecatedSkipAutocrypt instead of removing to make sure the letter is not reused.
ce43887 to
6abd90c
Compare
6abd90c to
e350dd6
Compare
fac27ac to
a18ab11
Compare
… variable Pass it as a return value from Mimefactory.render_message instead of modifying self.last_added_location_timestamp in place.
…tiality Deciding whether to include the display name in the message is not a matter of header protection and should be decided when constructing the From header.
group_headers_by_confidentiality() can create unprotected versions of all headers in any case. If the message is not encrypted, protected original headers will be sent and unprotected headers will be thrown away.
a18ab11 to
2e20218
Compare
2e20218 to
0828c1b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a refactoring PR in preparation for #8112.
The goal here is to separate rendering of messages into two steps: rendering the payload, and rendering the message for sending. After the first step the message should be serializable, so we can store unencrypted message payload in the database and later decide which transport to use for sending it.
Based on #8351