Skip to content

WIP: feat: add option to process unencrypted messages#8220

Draft
link2xt wants to merge 2 commits into
mainfrom
link2xt/process-unencrypted
Draft

WIP: feat: add option to process unencrypted messages#8220
link2xt wants to merge 2 commits into
mainfrom
link2xt/process-unencrypted

Conversation

@link2xt
Copy link
Copy Markdown
Collaborator

@link2xt link2xt commented May 7, 2026

Closes #7494

Still don't know if the idea is to have the option per transport, or we just make it impossible to enable it with multi-transport.

Will need to enable it in tests that use unencrypted messages, and make sure it works for legacy vc-request somehow (by prefetching unencrypted Secure-Join header).

@link2xt link2xt force-pushed the link2xt/process-unencrypted branch 8 times, most recently from 8914248 to f1652d4 Compare May 12, 2026 12:50
@r10s
Copy link
Copy Markdown
Contributor

r10s commented May 12, 2026

there are lots of discussions preventing to unblock this issue. i try to sum up the outcome, even tho i was not part of the most recent ones:

  1. process_unencrypted should be per relay, not per profile
  2. process_unencrypted is set to true for existing relays (maybe based on old show_emails) - gist is that nothing changes for them
  3. for new relays, it will be false
  4. several relays can have the option set independently, it is up to the user, to deal with the situation
  5. the option will be hidden in "advanced / relay", UI-wise, it should not be worded as a feature ppl would enable without knowing much about it
  6. as we cannot rely on process_unencrypted for "New Email" (otherwise, all existing profiles will get the option because of 2.) - we continue using is_chatmail for that for now

the last point, 6. still looks a bit tricky to me - i do not see a way to get rid of is_chatmail if we set process_unencrypted to true mostly unconditionally. maybe process_unencrypted at 2. should be set depending on existing is_chatmail. but i also was not part of all discussions, maybe this is clear already, then please comment. also correct the list above as needed :)

ftr, "New Email" is the only remaining function that relies on is_chatmail

@link2xt
Copy link
Copy Markdown
Collaborator Author

link2xt commented May 12, 2026

as we cannot rely on process_unencrypted for "New Email" (otherwise, all existing profiles will get the option because of 2.) - we continue using is_chatmail for that for now

We can turn "process unencrypted" off for relays that advertise XCHATMAIL automatically. And UIs can then show "new email" only if primary relay has "process unencrypted" enabled, which will be impossible to enable permanently then.

@link2xt link2xt force-pushed the link2xt/process-unencrypted branch 2 times, most recently from 521756c to 3f2e15c Compare May 12, 2026 19:27
@link2xt link2xt force-pushed the link2xt/process-unencrypted branch from 3f2e15c to bb4bde4 Compare May 12, 2026 19:28
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.

Add option to process unencrypted messages

2 participants