Skip to content

Add option to process unencrypted messages #7494

@link2xt

Description

@link2xt

We currently have an is_chatmail config option that is set automatically when you connect to an IMAP server that has XCHATMAIL capability. This roughly means that the server is a chatmail relay and can only process encrypted messages1, so UIs disable some features like adding contacts by email address, hides settings that are related to folders like mvbox_move and changes available options for delete_server_after.

This distinction between chatmail and non-chatmail profiles does not work well for multi-transport (#7357) as the user can start with a non-chatmail profile, but then add a chatmail transport and set it as the primary address.

As the primary distinction between chatmail and non-chatmail is the ability to work with unencrypted messages, unencrypted chats and email-address-contacts, the idea is to add a setting "enable unencrypted messaging" that is disabled by default for all profiles and can be manually enabled if the user want to use the client for unencrypted messaging.

If the setting is turned off, the client will drop all unencrypted messages into trash chat. UIs can also use this setting to decide whether to allow adding a contact by email address and whether to allow creating a new unencrypted chat, instead of using is_chatmail for this.

One exception is NDNs. NDNs should still be processed for now even though they are not encrypted. It is not clear we really want to keep processing them and displaying errors especially with multi-transport where one failing transport does not mean you need to worry, but for this issue changing how we work with NDNs is out of scope, let's see how it works in practice first.

Footnotes

  1. Operator can configure exceptions for some addresses and otherwise customize the relay, but we likely don't want to support this long term.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions