test: Add test for unencrypted headers - #8538
Open
Hocuri wants to merge 2 commits into
Open
Conversation
link2xt
force-pushed
the
link2xt/last_added_location_timestamp
branch
2 times, most recently
from
August 3, 2026 13:43
cd0eb02 to
6515b30
Compare
Hocuri
force-pushed
the
hoc/add-test-for-unencrypted-headers
branch
from
August 3, 2026 14:04
d261128 to
b79540e
Compare
link2xt
reviewed
Aug 3, 2026
| let rfc724_mid = sent.load_from_db().await.rfc724_mid; | ||
| let unencrypted = unencrypted.replace(&rfc724_mid, "MESSAGE_ID@localhost"); | ||
|
|
||
| let unencrypted = Regex::new(r"Date:[^\r\n]*") |
Collaborator
There was a problem hiding this comment.
Not really needed as the function is called only once, but will save unwrap().
link2xt
approved these changes
Aug 3, 2026
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 adds a test for the unencrypted headers, because #8345 changes how these are rendered, and so far we didn't have any tests for them.