Hi Sean,

thanks for merging the pull request in.

I've created now a new one to combine zip.js and inflate.js into one file:
https://github.com/openpgpjs/openpgpjs/pull/46
This should enable zlib decompression also in the combined and minified
version.

Anther issue I'm currently facing is an endless loop in the inflate method
of zip.js when trying
to decompress zlib messages from GPG. This does not occur with messages
from PGP Desktop.

I tried integrating http://jsxgraph.uni-bayreuth.de/wp/jsxcompressor/ as an
alternative to zip.js
Basically I followed the same way as you with zip.js: jsxcompressor
supports from my understanding
only gzip and zip, so I reused only the inflate method and it looks like
there is also no support for Alder32.

Current status: could decompress messages from PGP Desktop correctly, no
endless loop for GPG messages
but the decompressed message is spoiled with some useless characters at the
beginning.
My guess is that GPG adds some extra data to the message body that needs to
be filtered out before handing it
over to the inflate method. Then probably zip.js would also work.

Will investigate here further.

Best regards,
Thomas



2012/6/21 Sean Colyer <[email protected]>

> Ah, yes, we do have a dependency there. That code as you might note from
> the header is taken from this project:
> https://github.com/gildas-lormeau/zip.js
>
> I've modified the zip.js file by basically stripping out all of the things
> we're not using (everything except decompression) just so that I have it
> configured in the same style as the original project. We could presumably
> merge these into one file at no expense.
>
> In my testing I haven't been using the minified version of the file, and I
> might be the only one currently using the zip decompression (not sure). I
> use it in my gmail chrome extension:
> https://github.com/seancolyer/gmail-crypt. In my extension I just use the
> combined but not minified file. My point here is that it's likely that zip
> decompression had been broken in the .min file for as long as it's been in
> the project.
>
> If you want to look into combining these, feel free. If not, I'll try to
> when I get some time but I've been pretty swamped lately.
>
> Unless you still believe the commits in your pull request have caused this
> issue, I'll go ahead and merge your current pull request in.
>
> Sean
>
>
_______________________________________________

http://openpgpjs.org

Reply via email to