Skip to content

AOSP Mail: Attachments (OpenPGP message, key) crippled #290

Description

@dschuermann

In AOSP Mail client, importing keys or decrypting messages attached to emails does not work. The AOSP Mail application tries to decode an attached OpenPGP messages/key (ASCII Armored -> Base64 encoding, more precisely Radix64, see RFC4880) as content, which is wrong and cripples the attachment completely. It makes no difference if the attached .asc file is directly shared to OpenKeychain or saved before opening it. The files are crippled: They end after some bytes with the string "There was an error while decoding the message." (This is actually part of the downloaded/shared file).

Reproduce

Send an email with Thunderbird to yourself with a file "testkey.asc" containing for example my key from http://pool.sks-keyservers.net/pks/lookup?op=get&search=0x718C070100012282 (begin copying -----BEGIN PGP PUBLIC KEY BLOCK----- to -----END PGP PUBLIC KEY BLOCK-----).

More Information

Reported upstream: https://code.google.com/p/android/issues/detail?id=75181

Funny

"There was an error while decoding the message." has been translated to german as "Beim Entschlüsseln der Nachricht ist ein Fehler aufgetreten." (https://android.googlesource.com/platform/packages/apps/Email/+/0d21834/res/values-de/strings.xml) which means: "There was an error while decrypting the message."

Ideas

At best we would detect these broken files but the string message_decode_error varies between languages so it's difficult to check for it reliably.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions