Re: [htdig] Local digging files without extension

Subject: Re: [htdig] Local digging files without extension
From: Peter L. Peres (
Date: Tue Oct 17 2000 - 10:27:16 PDT

On Mon, 16 Oct 2000, Gilles Detillieux wrote:

>According to Marcel Hicking:
>> I'm trying to dig local files using a generated start_url
>> list and local_url.
>> The files to index are not accessible via http but since
>> I'm going to pipe the search results through a wrapper
>> anyway they won't cause any problems.
>> So far the start_url/local_url stuff works fine but
>> htdig -vvv says:
>> ...Trying local files
>> found existing file /foo/bar
>> Local retrieval failed, trying HTTP
>> User righs are alright (I can cat the files ;-)
>> I suspect the problem to be the missing file
>> extension and the therefore unkown mimetype.
>> Any chance of setting some sort of default mimetype?
>> Any other workaround?
>Yes, the problem is the missing extension. No, there's no config
>attribute you can set to assign a default mime type to files with no
>extension. Yes, there is a workaround, which would be to change the
>RetrieveLocal() method in htdig/ to handle this case and
>assign the type you want. We don't do this in the distributed source
>because there isn't universal agreement on what mime type these files
>should have, and we haven't worked out a better, more configurable scheme
>for this code yet.

In other words, if I'd make a patch to allow extension-less files to be
indexed (first remote, then maybe also local), then it would be rather
welcome ? Especially since I need it myself ;-)

(please don't hold your breath for the patch though),


To unsubscribe from the htdig mailing list, send a message to
You will receive a message to confirm this.
List archives: <>
FAQ: <>

This archive was generated by hypermail 2b28 : Mon Oct 16 2000 - 12:05:01 PDT