Roundcube Community Forum

 

Gzip attachments can't be extracted!

Started by ramgs, March 14, 2016, 12:51:59 PM

Previous topic - Next topic

ramgs

Hello,

I've run into an attachment issue for tgz and tar.gz. Possibly others like 7z, xz, lzma, bz2 as well (not checked). When I send such as file as an attachment to my colleagues, they cannot uncompress it. Same from them to me. The message during an extraction attempt says effectively that the file isn't a gzip archive. In fact, I can't uncompress the file when I try to get it from my the Sent folder. Oddly, zip works fine.

Looking through the forums, I found that the issues are related to the following 3 lines in .htaccess.

<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
</IfModule>


I've tried to comment these and then check. Voila! They work.

My questions:
1) Are these lines really the reason, or is the problem due to something else as well? Or a combination?
2) In general is it okay to comment them? Would that cause problems to any important basic operations in RC, or do they just add a optional extra compression method to reduce upload/download sizes?

Please advise.

Thanks!

ramgs

Hello,

Could I request someone who knows about this issue to reply, please?

I'd like to know if I can just comment this SetOutputFilter command or the whole mod_deflate block in .htaccess?

Or whether there are other arguments to be placed after DEFLATE (which ones?) that would allow gzip, bzip2, xz, etc. compressed attachments to be normally extractable after download, without (much) affecting the reason for which this mod_deflate was included in the first place?

Thanks!

SKaero

Well I can't answer #1 but as far as number #2 its not required and nothing should brake if you remove it.

ramgs