[cups.general] MIME type matching not working as expected

Michael Sweet msweet at apple.com
Thu Dec 30 08:47:25 PST 2010


Christoph,

Can you file a bug on this on cups.org so we can fix this? Please include your .types file and a sample file for testing.

    http://www.cups.org/str.php

Thanks!

On Dec 16, 2010, at 5:09 AM, Christoph Erdle wrote:
>> ...
>> OK then, besides your workaround, perhaps you should file a bug at
>> www.cups.org.
> 
> Thanks for your help.
> 
> I found a working solution with mangling the MIME types instead of using 
> a prefilter. The original attempt works as expected if i leave out the 
> priority option. So for documentation purposes (if others struggle with 
> such problems) here's my current definition:
> 
> application/000-prefiltered   contains(0,4096,"setuserinfo") + \
>                               (ai eps ps string(0,%!) string(0,<04>%!) \
>                               contains(0,128,<1B>%-12345X) + \
>                               (contains(0,4096,"LANGUAGE=POSTSCRIPT") \
>                               contains(0,4096,"LANGUAGE = Postscript") \
>                               contains(0,4096,"LANGUAGE = PostScript") \
>                               contains(0,4096,"LANGUAGE = POSTSCRIPT") \
>                               (contains(0,4096,<0a>%!) + \
>                               !contains(0,4096,"ENTER LANGUAGE"))))
> 
> Kind regards,
> Christoph
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups

________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair





More information about the cups mailing list