Expected decrypted email to show in cleartext
Error Eecrypting Email message shown with icon from OpenKeyChain
Send encrypted email to an account handled by K-9
Open email in k-9
Answer password request for decryption Key
See error message
K-9 Mail version: 5.201
Android version: Android Version 6.0 - HTC M8
Account type (IMAP, POP3, WebDAV/Exchange):
Sending Account was IMAP
Receiving Account IMAP (gmail)
Both Public keys were imported from old AGP into OpenKeyChain.
Intentionally entering a wrong passphrase gives a different message: Wrong password.
Mail sent from either account to the other (encrypted) works in Thunderbird.
Mail sent from Thunderbird also yields "Error Decrypting mail".
Process: com.fsck.k9, PID: 17677 <---- in Log
k9-log-5.txt
I think somehow callbackReturnResult is getting called twice. The second time around queuedResult is then null.
01-02 13:28:13.001 E/AndroidRuntime(17677): FATAL EXCEPTION: main
01-02 13:28:13.001 E/AndroidRuntime(17677): Process: com.fsck.k9, PID: 17677
01-02 13:28:13.001 E/AndroidRuntime(17677): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=65916, result=0, data=null} to activity {com.fsck.k9/com.fsck.k9.activity.MessageList}: java.lang.IllegalStateException: deliverResult() called with no result!
01-02 13:28:13.001 E/AndroidRuntime(17677): at android.app.ActivityThread.deliverResults(ActivityThread.java:3988)
01-02 13:28:13.001 E/AndroidRuntime(17677): at android.app.ActivityThread.handleSendResult(ActivityThread.java:4038)
01-02 13:28:13.001 E/AndroidRuntime(17677): at android.app.ActivityThread.access$1400(ActivityThread.java:150)
01-02 13:28:13.001 E/AndroidRuntime(17677): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1443)
01-02 13:28:13.001 E/AndroidRuntime(17677): at android.os.Handler.dispatchMessage(Handler.java:102)
01-02 13:28:13.001 E/AndroidRuntime(17677): at android.os.Looper.loop(Looper.java:168)
01-02 13:28:13.001 E/AndroidRuntime(17677): at android.app.ActivityThread.main(ActivityThread.java:5845)
01-02 13:28:13.001 E/AndroidRuntime(17677): at java.lang.reflect.Method.invoke(Native Method)
01-02 13:28:13.001 E/AndroidRuntime(17677): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
01-02 13:28:13.001 E/AndroidRuntime(17677): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
01-02 13:28:13.001 E/AndroidRuntime(17677): Caused by: java.lang.IllegalStateException: deliverResult() called with no result!
01-02 13:28:13.001 E/AndroidRuntime(17677): at com.fsck.k9.ui.crypto.MessageCryptoHelper.deliverResult(MessageCryptoHelper.java:682)
01-02 13:28:13.001 E/AndroidRuntime(17677): at com.fsck.k9.ui.crypto.MessageCryptoHelper.callbackReturnResult(MessageCryptoHelper.java:653)
01-02 13:28:13.001 E/AndroidRuntime(17677): at com.fsck.k9.ui.crypto.MessageCryptoHelper.runSecondPassOrReturnResultToFragment(MessageCryptoHelper.java:602)
01-02 13:28:13.001 E/AndroidRuntime(17677): at com.fsck.k9.ui.crypto.MessageCryptoHelper.decryptOrVerifyNextPart(MessageCryptoHelper.java:192)
01-02 13:28:13.001 E/AndroidRuntime(17677): at com.fsck.k9.ui.crypto.MessageCryptoHelper.onCryptoFinished(MessageCryptoHelper.java:597)
01-02 13:28:13.001 E/AndroidRuntime(17677): at com.fsck.k9.ui.crypto.MessageCryptoHelper.onCryptoOperationCanceled(MessageCryptoHelper.java:563)
01-02 13:28:13.001 E/AndroidRuntime(17677): at com.fsck.k9.ui.crypto.MessageCryptoHelper.onActivityResult(MessageCryptoHelper.java:536)
01-02 13:28:13.001 E/AndroidRuntime(17677): at com.fsck.k9.activity.MessageLoaderHelper.onActivityResult(MessageLoaderHelper.java:168)
01-02 13:28:13.001 E/AndroidRuntime(17677): at com.fsck.k9.ui.messageview.MessageViewFragment.onPendingIntentResult(MessageViewFragment.java:393)
01-02 13:28:13.001 E/AndroidRuntime(17677): at com.fsck.k9.activity.MessageList.onActivityResult(MessageList.java:1600)
01-02 13:28:13.001 E/AndroidRuntime(17677): at android.app.Activity.dispatchActivityResult(Activity.java:6439)
01-02 13:28:13.001 E/AndroidRuntime(17677): at android.app.ActivityThread.deliverResults(ActivityThread.java:3984)
01-02 13:28:13.001 E/AndroidRuntime(17677): ... 9 more
Any ideas @Valodim ?
I have multiple accounts (4) defined in K-9.Two of these have pgp keys defined in OpenKeychain.One additional account (gmail) has a key in openkeychain but is not defined in K-9.All of these accounts have the same Name.Each has a different Email Address (Obviously).
I'm also receiving this error message. Is there a workaround? Thanks.
Go to the Google Play store and update k9.
The update is out there last time I checked. (minutes ago)
Thanks - I have v5.202 though, and I'm not seeing an option to update.
On 5 January 2017 23:53:20 GMT+00:00, jsamyth notifications@github.com wrote:
Go to the Google Play store and update k9.
The update is out there last time I checked. (minutes ago)--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/k9mail/k-9/issues/1932#issuecomment-270792464
--
Sent from my Android device with K-9 Mail. If you wish to send me an encrypted email, you can find my public key at http://pool.sks-keyservers.net/ by searching for my email address.
The issue is still open which means the bug hasn't been fixed yet.
We use this issue tracker to coordinate our development efforts. Please don't use it as support forum asking questions. We have a mailing list for that.
OK, then please could you tell me how to join the mailing list or where to find a support forum? I have searched for support but haven't been able to find it. I understand that the bug hasn't been fixed, but I hoped there might be a workaround as otherwise I can't read my emails (which is a significant issue!) Thank you, and I promise not to ask any more questions.
Attached Requested Screen shot...

This error message also comes up with no further explanation when insecure ciphers are used or there is no MDC on an unsigned message. I'm currently working on error reporting, this will probably be solved along the way.
I get the same error when I try to decrypt an incoming email. However, if I forward that email to myself the received copy will be decrypted without any problem.
K-9 Mail 5.208
OpenKeyChain Easy PGP v4.7
-----BEGIN PGP MESSAGE-----
Version: Cryptix OpenPGP 0.20050418
...
Do you need more information?
@Githubraum I don't think that's the same issue, please open a new issue about yours
As for the above stack trace, I still have no idea what caused that problem. If we're lucky, it might have been fixed along the way? Not sure.
Let's close it then and 馃
Ey! I just found why I was getting a "Error decrypting" in my K9 + Openkeychain in a Xiaomi Android. Openkeychain did not have the permission to open in the background. Changed that "Android -> Settings -> Application --> Openkeychain --> Other permissions --> Open in background". Hope it helps someone.