Negative offesets in mime.types

Michael Sweet mike at easysw.com
Fri Oct 8 21:12:47 PDT 2004


Anonymous wrote:
> Fair enough.  I tried using a 'contains' directive with a zero offset
> and a (very) large range value to see if that would work, but it
> doesn't seem to.  I'm not too upset about it, since that wasn't a

No, internally the maximum "contains" buffer is 1k.

> very elegent solution anyway.  Maybe I can do this a different way.
> I'm using Linux, and it appears that the file extension doesn't
> survive long enough into the print process to be used as a MIME cue.
> The files have the .tga extension, and I've put that into the
> mime.types file, but it never seems to make the match.  Am I just
> doing something wrong here?

The filename is not passed when printing, so the extension will not
be used to match it.

You *can* use:

     lp -o document-format=mime/type filename.tga

to force the type when printing...

-- 
______________________________________________________________________
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