Mailman-htdig
(→htdig) |
|||
| Line 16: | Line 16: | ||
htdig can be installed via yum on fedora. | htdig can be installed via yum on fedora. | ||
| − | '''Fun warning!''' Search result pages will come up blank with no error messages if <tt>htsearch</tt> is unable to locate the 'COMMON_DIR' which contains its HTML templates and images. | + | '''Fun warning!''' Search result pages will [http://mail.python.org/pipermail/mailman-users/2002-May/020252.html come up blank with no error messages] if <tt>htsearch</tt> is unable to locate the 'COMMON_DIR' which contains its HTML templates and images. |
For some reason, the fedora package installs this directory at <tt>/usr/share/htdig</tt> but the binaries look for it at <tt>/var/www/html/htdig</tt>. I made a manual symlink to that disused location. | For some reason, the fedora package installs this directory at <tt>/usr/share/htdig</tt> but the binaries look for it at <tt>/var/www/html/htdig</tt>. I made a manual symlink to that disused location. | ||
Revision as of 16:56, 2 November 2006
This is a patched version of GNU Mailman which integrates support for searching list archives using htdig.
As of November 3, 2006 this is operational on goeje.
Contents |
Installation
Mailman
Apply these patches to the Mailman source before installation:
The patch documentation describes how to enable it; this is already on in the mailman configuration file.
htdig
htdig can be installed via yum on fedora.
Fun warning! Search result pages will come up blank with no error messages if htsearch is unable to locate the 'COMMON_DIR' which contains its HTML templates and images.
For some reason, the fedora package installs this directory at /usr/share/htdig but the binaries look for it at /var/www/html/htdig. I made a manual symlink to that disused location.
Additionally, that directory should be aliased in to /htdig on the mail web server so that the icons show up in result pages; for the current setup I just symlinked it in from the docroot.
Index updating
Search indexes are updated by a nightly cronjob, at /usr/local/mailman/cron/nighty_htdig. I've put this in mailman's personal crontab.
Setup notes
Initially, lists are set up for htdig as they first receive a mail after the configuration is enabled; but they won't be indexed until the cronjob next runs. (It can also be manually run, of course.)