Skip to content

MimeFactory refactoring and fixes#8345

Draft
link2xt wants to merge 7 commits into
mainfrom
link2xt/last_added_location_timestamp
Draft

MimeFactory refactoring and fixes#8345
link2xt wants to merge 7 commits into
mainfrom
link2xt/last_added_location_timestamp

Conversation

@link2xt

@link2xt link2xt commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

This is a refactoring PR in preparation for #8112.

It also contains fixes such as not rendering locations into pre-messages. They still need tests reproducing the bug.

@link2xt link2xt changed the title fix: replace last_added_location_id with last_added_location_timestamp MimeFactory refactoring and fixes Jun 18, 2026
@link2xt link2xt force-pushed the link2xt/last_added_location_timestamp branch 4 times, most recently from 45102bc to 1956c42 Compare June 18, 2026 18:00
@link2xt link2xt marked this pull request as ready for review June 19, 2026 01:33
@link2xt link2xt marked this pull request as draft June 19, 2026 01:33
link2xt added 7 commits June 19, 2026 04:35
Stored location ID was not actually used
and locations_last_sent timestamp was updated
with the current time, possibly skipping
locations.
… 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.
@link2xt link2xt force-pushed the link2xt/last_added_location_timestamp branch from d2042d4 to ab2c000 Compare June 19, 2026 04:36
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.

1 participant