From 657f3970d848abc6effdd6a9a63473e4e75f17b7 Mon Sep 17 00:00:00 2001 From: Pablo Zmdl <57864086+pabzm@users.noreply.github.com> Date: Thu, 25 Jul 2024 08:05:13 +0200 Subject: [PATCH] Make pgpmime-support known after Mailvelope init (#9551) The support for pgpmime was only checked initially after the login. If a user e.g. authorizes a domain in Mailvelope only after a login, Mailvelope now instantly works, instead of (silently and undocumentedly) requireing a logout+login-cycle. --- program/js/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/program/js/app.js b/program/js/app.js index 429c897ad2f..50949257752 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3997,6 +3997,9 @@ function rcube_webmail() { // Load Mailvelope functionality (and initialize keyring if needed) this.mailvelope_load = function (action) { + // Make the server code aware that this browser now knows about + // PGP/MIME (would otherwise only be recognized after the next login. + this.env.browser_capabilities.pgpmime = 1; var keyring = this.env.mailvelope_main_keyring ? undefined : this.env.user_id, fn = function (kr) { ref.mailvelope_keyring = kr;