| Summary | gzip/bzip2 upload doubly compressed |
| Queue | IMP |
| Queue Version | HEAD |
| Type | Bug |
| State | Not A Bug |
| Priority | 2. Medium |
| Owners | |
| Requester | marc (at) r4l (dot) com |
| Created | 11/13/08 (484 days ago) |
| Due | |
| Updated | 12/09/08 (458 days ago) |
| Assigned | 12/08/08 (459 days ago) |
| Resolved | 12/09/08 (458 days ago) |
| Attachments | archive.tar.gz ![]() |
| Milestone | |
| Patch | No |
State ⇒ Not A Bug
archive.tgz: gzip compressed data, from Unix, last modified: Mon Dec
8 11:28:54 2008
is inside the file without uncompressing it? 'file' simply guess what
kind of data is in the file.
coming from?
it receives "application/x-gzip"
that is exactly what the file is. On OS's like windows, there can
only be a single extension. So the MIME type 'application/x-gzip' is
correct. I realize Thunderbird is sending something different, but I
don't necessarily agree with what they are doing (x-compressed-tar
does not seem to be used by many people.).
So I think the previous analysis in this ticket remains.
New Attachment: archive.tar.gz
post, but here it is:
# file archive.tgz
archive.tgz: gzip compressed data, from Unix, last modified: Mon Dec
8 11:28:54 2008
Not much of a difference. So where is the MIME type sent to HORDE/IMP
coming from?
For a ".tgz", IMP receives "application/x-gtar" and for a ".tar.gz",
it receives "application/x-gzip"
Can someone shed some light on this?
problem is still there, and the "file" command on Linux reports this
for a ".tar.gz" file:
# file archive.tar.gz
archive.tar.gz: gzip compressed data, from Unix, last modified: Mon
Dec 8 11:28:54 2008
So it's probably the right behavior. Can someone confirm?
don't experience the MIME type discrepancy anymore. So it seems there
was something mis-configured with the MIME types in my previous
environment.
Thanks for this precision, Michael!
"application/x-gzip"
type information provided to us by the user's browser/OS.
don't experience the MIME type discrepancy anymore. So it seems there
was something mis-configured with the MIME types in my previous
environment.
Thanks for this precision, Michael!
"application/x-gzip"
type information provided to us by the user's browser/OS.
"application/x-gzip"
type information provided to us by the user's browser/OS.
of a tar.gz file within IMP:
- a .tar.gz attachment sent using Horde/IMP has a MIME type of
"application/x-gzip"
- a .tar.gz attachment sent using Thunderbird has a MIME type of
"application/x-compressed-tar"
Which probably explain the problem (and is probably caused by a
limitation in the MIME library, as Chuck already mentioned)
just a compressed FILE.
UPLOADING the gzipped attachment? Otherwise, If you're saying it's
only when OPENING the attachment, then it would not explain why this
does not happen with an attachment in an email created OUTSIDE of Horde.
.tbz) file cannot be
opened in IMP (gives error: "Content type of compressed file: Unknown")
State ⇒ Unconfirmed
Patch ⇒
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ gzip/bzip2 upload doubly compressed
Type ⇒ Bug
Priority ⇒ 2. Medium
- enable "$conf[compress_pages]" in horde config
- upload a gzip/bzip2 file in IMP compose window
- send that email to yourself
- open the email you just sent
- download the gzip/bzip2 file to local disk
- the file will be compressed TWICE
Also, independantly of the setting above, any uploaded .tgz (or .tbz)
file cannot be
opened in IMP (gives error: "Content type of compressed file: Unknown")
If I receive an email that contains a .tgz/tbz file (and that email
has not been created with IMP), the attached compressed tar file
content can be read within IMP, which leads me to believe there is a
link with the upload bug above.