seancolyer / gmail-crypt

An OpenPGP browser (currently Chrome) extension that integrates tightly with Gmail and does encryption/decryption via Javascript.
Other
219 stars 41 forks source link

Decrypt Multipart (Enigmail) encrypted mails! #53

Open mike-pt opened 10 years ago

mike-pt commented 10 years ago

Enigmail plugin for thunderbird encrypts text+attachments in a multipart message.

The attachment part is also base64 encode so when decrypting this in gmail with you're plugin I get all something like this:

Content-Type: multipart/mixed; boundary="------------030504000801010805070002"

This is a multi-part message in MIME format. --------------030504000801010805070002 Content-Type: multipart/alternative; boundary="------------050900050901040201070706"

--------------050900050901040201070706 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

tivemos que renovar o wildcard da emerge. (com este j=E1 renovamos todos = lol) segue em anexo.

--------------050900050901040201070706 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

-8859-1">

small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;">tivemos que renovar o wildcard da emerge. (com este já renovamos todos l= ol) small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">segue em anexo.

--------------050900050901040201070706--

--------------030504000801010805070002 Content-Type: application/x-zip-compressed; name="27fd15738866eb.zip" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="27fd15738866eb.zip"

UEsDBBQACAAIAOlBTkQAAAAAAAAAAAAAAAATAAAAZ2RfYnVuZGxlLWcyLWcxLmNydKWXy7ai yrKG+zzF6TvWEAFBG7uRkMk9QRAQ6HFRQFDECwk8/UZn1VpVteqss8c+s+M0MCGJjP//Iv74 Y/4TkaJZ/yMh19NkTQIeegf/oLCmIRpKEhCqAhBNBIUmihOwxKLuyrpStoQWgfOQAZTEY [..............................] ACoHAAASAAAAAAAAAAAAAAAAAOULAAAyN2ZkMTU3Mzg4NjZlYi5jcnRQSwUGAAAAAAIAAgCB AAAAKhEAAAAA --------------030504000801010805070002--

How complicated would be for the plugin to detect this part and show the zip(in this case) has attachment?