mime.types: extensions ignored

Michael Sweet mike at easysw.com
Wed Oct 20 05:32:00 PDT 2004


Laurent wrote:
> Greetings...
> 
> I'm facing a problem with the mime.types file. (CUPS 1.1.21rc1, Dec Tru64).
> I'm trying to add a filter for pretty-printing C programming files,
> and then I'm trying to add a specific recognition line in the
> mime.types file, based only on the file extension, like :
> 
>   text/x-c			c
>   text/plain			txt printable(0,1024)
> 
> It does not work. The "text/plain" format is choosen.
> 
> In fact, every extension rule seems to be ignored.
> For example, if the line for text files is changed to :
> 
>   text/plain			txt
> 
> the file format is not recognized ("unable to print file: client-error-document-format-not-supported").
> Same for pdf files, etc.
> It's only the other rules (based on what's inside the file) that actually
> do the format recognition.
> 
> What's wrong ?
> Am I missing something ?

Since the scheduler doesn't see the extension, the extension isn't
used for printing files.  The only time the extension is used is
when you browse the files in the /usr/share/doc/cups directory.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Printing Software for UNIX                       http://www.easysw.com




More information about the cups mailing list