Comment #84 on issue 5864 by
berndjan...@gmail.com: PGP/MIME
https://code.google.com/p/k9mail/issues/detail?id=5864
Facebook has started on 01 Jun 2015 to optionally send encrypted status
information to its users who upload their public PGP key there (see
https://www.facebook.com/notes/protecting-the-graph/securing-email-communications-from-facebook/1611941762379302).
As I noticed when configuring encrypted status information for my facebook
account, the e-mails are then encrypted using PGP/MIME. And this is
unfortunately not understood yet by K-9 Mail.
The structure of the encrypted facebook e-mail is:
Content-Type: multipart/encrypted; protocol="application/pgp-encrypted";
The body contains two parts.
1) The first part looks like this:
Content-Type: application/pgp-encrypted; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Content-Description: PGP/MIME Versions Identification
Version: 1
2) The second part has this header:
Content-Type: application/octet-stream; name="encrypted.asc"
Content-Transfer-Encoding: 7bit
Content-ID: <0>
Content-Disposition: inline; filename="encrypted.asc"
Its body contains the PGP-encrypted message (ASCII-armoured).
My K-9 Mail client (Version 5.006 on Android 4.4) displays that there is no
message text. The "attachments" are only displayd after clicking on "more"
and are labelled "noname.pgp" and "encrypted.asc". Saving "encrypted.asc"
and opening it manually with APG allows its decryption. But then I have the
encrypted contents in MIME format outside K-9 Mail.
Please integrate also PGP/MIME into K-9 Mail. I guess this should work with
APG once K-9 Mail understands that it should send the
encrypted "attachment" there for decryption.