Package: mime-support Version: 3.46-1 Severity: important Some applications handle properly gzipped files directly, for example Okular with .pdf.gz files.
However if launched through mailcap (e.g. see my.pdf.gz), run-mailcap will unzip the file to a temp file and call okular with the temp file, then the user created bookmarks won't be associated to the original pdf.gz file, but to a temporary file... It is obvious that the old kludge of using mimetypes like application/x-gzpdf is not acceptable, because other handlers (like print actions) could not handle them. It would be great if mailcap entries had an optional encodings parameter, for example: application/pdf; okular '%s'; nametemplate=%s.pdf; test=test "$DISPLAY" != ""; would become: application/pdf; okular '%s'; nametemplate=%s.pdf; test=test "$DISPLAY" != ""; encodings=gzip,bzip,bzip2,compress; (note that the nametemplate would probably have to be removed, or run-mailcap would have to append the default compresser extension for the app to be fine). Please tell me if you think that the idea is correct, I would be pleased to attempt to implement it and send you a patch once there is an agreement on the specifications. Cheers -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.31-1-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash mime-support depends on no packages. Versions of packages mime-support recommends: ii file 5.03-3 Determines file type using "magic" mime-support suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

