[Xapian-discuss] zip/rar support

Reini Urban rurban at x-ray.at
Sun Aug 27 13:08:30 BST 2006


Olly Betts schrieb:
> On Fri, Aug 25, 2006 at 08:20:22AM +0200, Reini Urban wrote:
>> Olly Betts schrieb:
>>> I don't understand how this works.  The unpacked files will get indexed
>>> with URLs which don't work after you remove the unpacked files...
>> Those are magic.
>> Prefixed by <urlprefix>/.zip/<path-to-archive>/<path-to-packed-file>,
>> and the <urlprefix> script behind the query template can easily pick it 
>> up there.
> 
> So there's a magic extra CGI script which will unpack a single file from
> the zip (or rar or mailfolder) and send it to the web browser?

Yes. This extra script (a php file) checks the cache and sends the 
already extracted part to the browser, and if it not exists in the cache 
extracts it on the fly from the url to the browser.

>> I did further work on omega, esp. configure.ac and the optional 
>> libtextcat integration, but it's not ready yet.
>> textcat crashes.
>> I also added it to scriptindex.
>> Should I post the patch here, or do you want to wait until it's ready?
> 
> Probably best to wait.  Unless I'm confused, I noticed a version you
> posted a few days ago already, so I can take a look at that and see if
> there are any useful comments I can make at this stage...

-- 
Reini Urban
http://phpwiki.org/  http://murbreak.at/
http://helsinki.at/  http://spacemovie.mur.at/



More information about the Xapian-discuss mailing list