mime.types

Ricardo ricky at smartcsc.com
Fri Aug 8 10:20:16 PDT 2008


I've added this to mime.types

application/engine-print        match("*test*")

Then I issue lp /tmp/test and it gets autotyped to text/plain. From what I understand the autotyping is done alphabetically and application/engine-print comes before text/plain. Any ideas?


> Ricardo wrote:
> > I can't seem to find any examples on how to use:
> >
> > #   match("pattern")                    Pattern match on filename
> >
> > In the mime.types file. My question: Is "pattern" a regexp or are there special wildcards that it uses. I've tried "*%." but I can't seem to make it work.
>
> Pattern uses the shell wildcard syntax supported by the "fnmatch"
> function.
>
> --
> ______________________________________________________________________
> Michael Sweet, Easy Software Products           mike at easysw dot com





More information about the cups mailing list