Skip to content

test: Add test for unencrypted headers - #8538

Open
Hocuri wants to merge 2 commits into
link2xt/last_added_location_timestampfrom
hoc/add-test-for-unencrypted-headers
Open

test: Add test for unencrypted headers#8538
Hocuri wants to merge 2 commits into
link2xt/last_added_location_timestampfrom
hoc/add-test-for-unencrypted-headers

Conversation

@Hocuri

@Hocuri Hocuri commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

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.

@link2xt
link2xt force-pushed the link2xt/last_added_location_timestamp branch 2 times, most recently from cd0eb02 to 6515b30 Compare August 3, 2026 13:43
@Hocuri
Hocuri requested a review from link2xt August 3, 2026 14:02
@Hocuri
Hocuri force-pushed the hoc/add-test-for-unencrypted-headers branch from d261128 to b79540e Compare August 3, 2026 14:04
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]*")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can use the new regex! macro: #8479

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really needed as the function is called only once, but will save unwrap().

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.

2 participants