Using MIME types to force raw printing
Helge Blischke
H.Blischke at srz-berlin.de
Wed Nov 3 05:13:06 PST 2004
ms at psa-systeme.de wrote:
>
> I tried to use a custom MIME type to force raw printing for files, which contain Kyocera Prescribe commands (Kyocera's proprietary PDL).
>
> I found that there is an undocumented feature of CUPS concerning the /etc/cups/*.mimes configuration file:
>
> CUPS seems to treat everything which is declared as a MIME type like "text/*" as text/plain. As long as I stuck to my MIME definition as "text/prescribe", my conversion rule was not executed (auto-typing still recognized my file as text/plain and converted it to postscript).
>
> I had to name my MIME type as "application/prescribe" to make that work.
Well, as the mime types are sorted alphabetically for testing,
text/plain is checked prior to text/prescribe, and presumably
the prescribe files match the rules for text/plain. don't they?
Helge
--
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de
tel: +49 30 75301-360
More information about the cups
mailing list