[Mailman-Users] integrating htdig with cpanel mailman

Mark Sapiro mark at msapiro.net
Thu Sep 3 02:33:33 CEST 2015


Forwarding to mailman-users for completeness.

On 09/02/2015 05:29 PM, Mark Sapiro wrote:
> On 09/02/2015 05:07 PM, Jason Fayre wrote:
>> Here you go.
>> Thanks so much for your help on this!
>> This rundig is from the centos 6.7 htdig package.
> 
> 
> Your rundig has been modified from the 3.2.0b6 htdig base. The base
> rundig always does a full rebuild of the index My patch to rundig adds a
> '-u' option to do an 'update' rather than a full rebuild. Your
> RedHat/Centos package rundig already has this option only it's '-i' for
> incremental.
> 
> Thus, you don't need to patch your rundig at all unless you want to
> uncomment line 79 (which my patch does) per lines 77-79
> 
> # If you want to use the soundex and (or) metaphone fuzzy matchings,
> # Uncomment the following line
> # $BINDIR/htfuzzy $opts soundex metaphone
> 
> What you do need to do however is change nightly_htdig. My patch added
> amongst other things the line
> 
>         init_or_update = ' -u'
> 
> per
> 
> @@ -109,6 +109,7 @@
>          # test if the archive volume directories mod times have
>          # changed
>          recent_posts = None
> +        init_or_update = ' -u'
>          rundig_run_file = os.path.join(list_htdig_dir, 'rundig_last_run')
>          archive = HyperArch.HyperArchive(mlist)
>          try:
> 
> You need to change that to
> 
>         init_or_update = ' -i'
> 
> because in your rundig the 'incremental' option is '-i', not '-u'.
> 


-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the Mailman-Users mailing list