[cups.general] Re: Troff files are not formatted

Johannes Meixner jsmeix at suse.de
Thu Nov 10 00:37:54 PST 2005


Hello,

On Nov 9 11:26 Walt Meier wrote (shortened):
> I couldn't make sense out of  mime.types
> even after reading the manual page.

What seems to be missing in the manual page is in which
ordering all the MIME types in all the /etc/cups/*.types files
are tested:

All mime types in all /etc/cups/*.types files are combined
an tested in alphabetical order and the resulting MIME type
is the first match.

I.e. your new MIME type name must apperar in alphabetical order
before any other MIME type which may also match.

This means that in particular a more special MIME type
must have a MIME type name which is in alphabetical order
before the general MIME type.

For example a special MIME type like
  text/plain-foo txt (printable(0,1024) + contains(0,100,"Foo")) 
would never match because the general MIME type
  text/plain txt printable(0,1024)
would always match too and it would be tested before but
  text/foo txt (printable(0,1024) + contains(0,100,"Foo"))
should work as expected.


Kind Regards
Johannes Meixner
-- 
SUSE LINUX Products GmbH, Maxfeldstrasse 5      Mail: jsmeix at suse.de
90409 Nuernberg, Germany                    WWW: http://www.suse.de/





More information about the cups mailing list