Re: mod_mbox with lucene4c

2005-07-06 Thread Paul Querna
russell johnson wrote: Does any one have a build file for building mod_mbox with lucene4c? In the future, please use dev@httpd.apache.org, we have decided to move all discussion to there. My Configure line is: "./configure" \ "--with-apxs=/usr/local/httpd/trunk/bin/apxs" \ "--with-lucene4c

Re: About mod_mbox future improvements

2005-06-26 Thread Paul Querna
Maxime Petazzoni wrote: ... > * XSLT processing > > As far as I remember, the choice of outputting XML satisfies > everybody. The problem relates to where we'll do the XSLT > processing. There are two main solutions : > > - client-side processing, as by now. The user requires a capable > browse

TODO for mod_mbox

2005-06-02 Thread Paul Querna
Shorter Term List: * Remove automake dependency (pure autoconf+Makefile.in) * Rename mod-mbox-util. (mboxutil? something else? All I know is that the current name will change) * Update trunk/scripts to use mod-mbox-util * Add some *basic* documentation on configuration Longer Term Things: * Inte

Re: svn commit: r160602 [1/3] - in httpd/mod_mbox/trunk: ./ config/ m4/ module-2.0/

2005-04-16 Thread Paul Querna
Justin Erenkrantz wrote: The store_cstring has a scoping error: it refers to 'tlen' when that's not in scope. (A comment explaining what that goofy macro does would be good.) I'm guessing it writes out the length of the string and the string; but that's not real obvious from its name... (Note: fet

Re: svn commit: r160602 [1/3] - in httpd/mod_mbox/trunk: ./ config/ m4/ module-2.0/

2005-04-16 Thread Paul Querna
Justin Erenkrantz wrote: @@ -782,14 +731,31 @@ mbox_fillbuf(&b); +msgID = NULL; apr_pool_create(&tpool, r->pool); /* When we reach the end of the file, b is NULL. */ while (b.b) { +#ifdef APR_HAS_MMAP +msgc.body_end = b.b - b.sb; +#else +msgc.body_end = b.to

Re: svn commit: r160602 [1/3] - in httpd/mod_mbox/trunk: ./ config/ m4/ module-2.0/

2005-04-16 Thread Paul Querna
Justin Erenkrantz wrote: /* We store the entire structure in a single entry. */ -vlen = sizeof(msgc->location) + sizeof(msgc->date) + sizeof(msgc->cte) + \ +vlen = (sizeof(msgc->body_start) * 3) + sizeof(msgc->date) + sizeof(msgc->cte) + \ (sizeof(tlen) * 5) + \ s

Re: svn commit: r160602 [1/3] - in httpd/mod_mbox/trunk: ./ config/ m4/ module-2.0/

2005-04-16 Thread Paul Querna
@@ -150,17 +153,19 @@ /* * Generates the DBM file. */ -apr_status_t generate_index(request_rec *r, apr_file_t * f); +apr_status_t mbox_generate_index(request_rec *r, apr_file_t * f, +mbox_indexer_t *indexer, const char* list, +const char* d

Re: svn commit: r160602 [1/3] - in httpd/mod_mbox/trunk: ./ config/ m4/ module-2.0/

2005-04-16 Thread Paul Querna
Justin Erenkrantz wrote: @@ -94,14 +103,14 @@ temp = r->filename; r->filename = absfile; -rv = generate_index(r, f); +rv = mbox_generate_index(r, f, indexer, list, domain); r->filename = temp; if (rv != APR_SUCCESS) { apr_file_printf(errfile, "Error: Index Generation

Re: svn commit: r161526 - httpd/mod_mbox/trunk/module-2.0/mod-mbox-util.c httpd/mod_mbox/trunk/module-2.0/mod_mbox_index.c

2005-04-16 Thread Paul Querna
Justin Erenkrantz wrote: On Sat, Apr 16, 2005 at 12:36:42AM -0700, Paul Querna wrote: I avoided making such a directive, because mod-mbox-util needed to konw which files to ignore too. Is that truly the case? Couldn't mod-mbox-util create a summary index that lists the counts of all the

Re: svn commit: r161529 - httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c

2005-04-16 Thread Paul Querna
Justin Erenkrantz wrote: On Sat, Apr 16, 2005 at 12:01:00AM -, [EMAIL PROTECTED] wrote: Author: pquerna Date: Fri Apr 15 17:00:58 2005 New Revision: 161529 URL: http://svn.apache.org/viewcvs?view=rev&rev=161529 Log: - Add Last Modified for all pages - Remove the old fetch_message function. Rep

Re: svn commit: r161526 - httpd/mod_mbox/trunk/module-2.0/mod-mbox-util.c httpd/mod_mbox/trunk/module-2.0/mod_mbox_index.c

2005-04-16 Thread Paul Querna
Justin Erenkrantz wrote: On Fri, Apr 15, 2005 at 11:33:35PM -, [EMAIL PROTECTED] wrote: while (apr_dir_read(&finfo, APR_FINFO_NAME, dir) == APR_SUCCESS) { -if (apr_fnmatch("*.mbox", finfo.name, 0) == APR_SUCCESS) { +if (apr_fnmatch("*.mbox", finfo.name, 0) == APR_SUCCESS &&

[PATCH] MIME Support & More

2005-03-11 Thread Paul Querna
This is mostly a work in progress. I know there are several very very bad parts in the patch, and I hope to smooth it over this weekend. After saying that, I would love some feedback. Changes: - Default DB type is now Berkeley DB. - Only one DBM is created per .mbox file. - struct with multiple