Skip to content

feat: Don't depend on cleartext Chat-Version, In-Reply-To, and References headers for prefetch_should_download#7932

Open
Hocuri wants to merge 1 commit intomainfrom
hoc/remove-chat-version-from-prefetch
Open

feat: Don't depend on cleartext Chat-Version, In-Reply-To, and References headers for prefetch_should_download#7932
Hocuri wants to merge 1 commit intomainfrom
hoc/remove-chat-version-from-prefetch

Conversation

@Hocuri
Copy link
Collaborator

@Hocuri Hocuri commented Mar 2, 2026

Don't depend on these 3 cleartext headers for the question whether we download a message.

This PR will waste a bit of bandwidth for people who use the legacy show_emails option; otherwise, there is no user-visible change yet. It's a preparation for being able to remove these headers, in order to further reduce unencrypted metadata.

Removing In-Reply-To and References will be easy; removing Chat-Version must happen at least one release after the PR here is released, so that people don't miss messages. Also, maybe some nerds depend on the Chat-Version header for server-side filtering of messages, but we shall have this discussion at some other time.

For the question whether a message should be moved, we do still depend on them; this will be fixed with #7780.

When both this PR and #7780 are merged, we can stop requesting Chat-Version header during prefetch.

Don't request Chat-Version header during prefetch, and don't depend on
it for the question whether we download a message.

We will still need to prefetch the Chat-Version header so that move
works; this will be fixed with https://github.com/chatmail/core/pull/7780/changes
@Hocuri Hocuri force-pushed the hoc/remove-chat-version-from-prefetch branch from 68b1124 to 01d775f Compare March 2, 2026 15:58
@Hocuri Hocuri changed the title [WIP] feat: Don't depend on cleartext Chat-Version header [WIP] feat: Don't depend on cleartext Chat-Version, In-Reply-To, and References header Mar 2, 2026
@Hocuri Hocuri changed the title [WIP] feat: Don't depend on cleartext Chat-Version, In-Reply-To, and References header feat: Don't depend on cleartext Chat-Version, In-Reply-To, and References header Mar 2, 2026
@Hocuri Hocuri changed the title feat: Don't depend on cleartext Chat-Version, In-Reply-To, and References header feat: Don't depend on cleartext Chat-Version, In-Reply-To, and References headers for prefetch_should_download Mar 2, 2026
@Hocuri Hocuri requested review from iequidoo and link2xt March 2, 2026 17:09
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