httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxime Petazzoni <>
Subject Re: mod_mbox and generate_index
Date Thu, 21 Jul 2005 03:26:07 GMT

> I trying to build the standalone helper program generate_index that
> the catchup-archive script needs.  This program does not seem to be
> made by the makefile and the build-dso errors out looking for
> lucene4c headers. Any ideas?

Why do you need this program ? If you want to generate the DBMs used
by mod_mbox, it's not generate_index that you need, but
mod-mbox-util. It is compiled by the autotools.

Here's how I compile and setup mod_mbox (yes, I'll be writing a doc on
this later on, eg. at the end of the summer) :

First, make sure you have configured your Apache2 webserver correctly
by adding a config snippet like the following :

LoadModule mbox_module /usr/lib/apache2/modules/

AddHandler mbox-handler .mbox
<LocationMatch /archives/([^/]+)>
    MboxIndex On

Then, checkout and compile mod_mbox :

% svn co
% cd trunk/
% ./
% ./configure --with-apxs=/usr/bin/apxs2
% make clean all
% su
# make install
# /etc/init.d/apache2 restart

Finally, rsync a mail archive and generate the database :

# mkdir -p /var/www/archives
# cd $_
# rsync -avr dev/
# cd dev/
# for i in *.gz ; do gunzip -c $i > ${i%*.gz}.mbox ; done
# cp `date +%Y%m` `date +%Y%m`.mbox
# ~/trunk/module-2.0/mod-mbox-util -v -c /var/www/archives/dev
# chown -R www-data:www-data /var/www/archives/

Then, go to http://localhost/archives/dev/

- Sam

Maxime Petazzoni (
 -- gone crazy, back soon. leave message.

View raw message