SUMMARY Since the upgrade to KMail 6.x, when writing an e-mail the Sign Message option is turned on, even though it's disabled in the settings. STEPS TO REPRODUCE 0. Perhaps it depends on having configured GPG keys somewhere at some point in the past. I think I did so at some point, but never really bothered to figure out how e-mail signing works. 1. Make sure Configure / Security / Encryption / Security defaults / Sign all messages is unchecked. 2. Click New Message, or reply to a message. OBSERVED RESULT In the composer window, the Sign Message option is turned on. If left on, when sending, it asks for a password. EXPECTED RESULT Sign Message option is turned off (and can be turned on manually). SOFTWARE/OS VERSIONS Operating System: openSUSE Tumbleweed 20240426 KDE Plasma Version: 6.0.4 KDE Frameworks Version: 6.1.0 Qt Version: 6.7.0 Kernel Version: 6.8.7-1-default (64-bit) Graphics Platform: X11
Confirmed with current KMail Git master (7f3171e8). Settings - Configure KMail - Security - Encryption has the first four check boxes ("Encrypt draft messages", "Encrypt sent messages", "Sign all messages" and "Encrypt all messages when possible") all turned off. Accounts - Identities - default identity - Modify - Cryptography has a PGP key selected but "Enable Autocrypt" and "Override global settings for security defaults" turned off. Starting to compose a new mail still starts with the "Sign Message" tool button selected and the "Message will be signed" banner shown.
A possibly relevant merge request was started @ https://invent.kde.org/pim/kmail/-/merge_requests/142
Git commit b43f1730955606ea4222d7894fe1495b77937ad8 by Jonathan Marten. Committed on 17/10/2024 at 07:32. Pushed by marten into branch 'master'. Set the message signing state correctly when the composer is opened Need to use our own internal pgpAutoSign() in changeCryptoAction(), because that takes account of both the global defaults and the identity-specific override. M +4 -1 src/editor/kmcomposerwin.cpp https://invent.kde.org/pim/kmail/-/commit/b43f1730955606ea4222d7894fe1495b77937ad8