question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

K-9 mail fails to encrypt emails by default, even with "Autocrypt mutual mode" enabled

See original GitHub issue

K-9 mail fails to encrypt emails by default, even with “Autocrypt mutual mode” enabled

Expected behavior

When sender and recipient have both enabled “Autocrypt mutual mode”, encryption should be enabled by default and the “green lock” symbol should appear when composing messages.

Actual behavior

Encryption is not enabled by default - the “grey struck-through lock” symbol may be shown, but sometimes no lock symbol is shown at all.

Steps to reproduce

  1. Enable autocrypt mutual mode under Settings > Account Settings > Cryptography > Autocrypt mutual mode
  2. Compose a new message to a recipient who has also enabled autocrypt mutual mode and you’ve exchanged encrypted mail with (or just compose an email to yourself)
  3. Observe that it does not encrypt by default

Environment

K-9 Mail version: 5.503

Android version: 7.1.2

Account type (IMAP, POP3, WebDAV/Exchange): IMAP

Additional notes

This just further highlights the problems created by the imprudent decision to remove encryption by default and the dubious justifications for doing so.

Consider the issues posed by “non-consensual encryption by default” (as the aforementioned blog post pejoratively and misleadingly calls it):

“Encrypted messages cannot be viewed in all clients and especially web clients, full-text search is typically restricted, and if the user loses access to their keys there might be unintended loss of messages.”

Now compare those to the potentially catastrophic (perhaps even life threatening) consequences of failing to encrypt sensitive information when the user is expecting it to do so by default (or forgets to click the dim, inconspicuous, and easily overlooked grey lock icon) and it should be patently obvious that the consequences of the latter scenario are FAR more severe than the relatively inconsequential “convenience” issues of the former.

If you can only optimize for one, mitigating the latter by enabling encryption by default (thus putting the onus on the user to manually disable it if they don’t want it) should take full precedence over any concerns about convenience. To do differently is to have priorities that are completely disjointed from the realities faced by the vast number of people who elect to use encryption to protect their communications in the first place. It doesn’t just “break the workflows of a couple of users”.

Ideally, both can be satisfied by allowing the user to choose the default behavior that suits them in the settings. But when the setting fails to work, as it did in this case, not encrypting by default means that it fails-deadly.

Please consider this and restore the sensible, fail-safe encryption by default.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:34 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
bowmasterscommented, Oct 8, 2019

@aryoda, there is currently no option to enforce encryption. I believe @patrickvandijk was suggesting someone could add a checkbox in the options to force encryption as a solution to this issue.

In any case, you may be wasting your time here. The lead dev(s) have made it pretty clear in this blog post that they don’t personally believe encrypting emails automatically is important, And it’s been nearly two years since they crippled the encryption and don’t seem to be in any hurry to fix it.

You may have better luck trying to convince the Librem Mail fork to fix this bug. They seem to have more active recent development and a more responsible attitude towards encryption, so you may get more traction there: https://source.puri.sm/liberty/mail/android

Or you could try implementing the simple checkbox on your own and hope someone merges your pull request

1reaction
xandro0777commented, Jul 7, 2020

Any alternatives?

Termux + Mutt is afaics the only working combination for email encryption on Android. I use it for classical PGP but supposedly also works with Autocrypt.

Read more comments on GitHub >

github_iconTop Results From Across the Web

K-9 mail fails to encrypt emails by default, even with "Autocrypt ...
When sender and recipient have both enabled "Autocrypt mutual mode", encryption should be enabled by default and the "green lock" symbol should ...
Read more >
Sending encrypted mail by default (nothing to turn on) - Support
Hello. I have set up K-9 mail with my nephews and nieces, and I want encryption enabled by default when they send email...
Read more >
[APP][5.0+] FairEmail - Fully featured, open source, privacy ...
When the user chooses to encrypt (with a single click). When replying to an encrypted mail. When the user, and all recipients, enabled...
Read more >
K9 suddenly wants to encrypt all mail, and won't send any
This is a bug reported four months ago and unresolved as you can see here. The context is different but the error message...
Read more >
T8408 Autocrypt support for kmail - KDE's Phabricator
As Thunderbird and k9-mail (Android) support autocrypt it would certainly make things a little easier when using email encryption and making ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found