Closed koto closed 8 years ago
As far as I can tell, parsing those messages would already be supported by modifying this part.
gmail-service expects the decryption to contain a MIME tree already.
If it's any help, this is how hoodiecrow handels PGP/MIME using the gmail api:
Receiving: https://github.com/tanx/hoodiecrow/blob/master/src/js/email/gmail.js#L315-L423
Sending: https://github.com/tanx/hoodiecrow/blob/master/src/js/email/gmail.js#L451-L487
This does not support the new memoryhole proposal yet though: https://github.com/modernpgp/memoryhole/
This will be addressed in #30.
We need to support attachments.
https://www.mailpile.is/blog/2014-11-21_To_PGP_MIME_Or_Not.html
Preferably, this format should be supported:
where lines marked with E are a decryption of an OpenPGP message, such that the number of attachments, their size and filenames are encrypted.