deltachat / deltachat-core-rust

Delta Chat Rust Core library, used by Android/iOS/desktop apps, bindings and bots 📧
https://delta.chat/en/contribute
Other
630 stars 80 forks source link

refactor(mimefactory): factor out header confidentiality policy #5715

Closed link2xt closed 1 week ago

link2xt commented 1 week ago

Instead of constructing lists of protected, unprotected and hidden headers, construct a single list of headers and then sort them into separate lists based on the well-defined policy.

This also fixes the bug where Subject was not present in the IMF header for signed-only messages.

Closes #5713