Re: [Mailman-Users] integrating htdig with cpanel mailman
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@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hello, I made the modifications you suggested. Now when I run nightly_htdig on a list, I get an error back that "I" is an invalid option for htfuzzy. I uncommented that line in the rundig script. Any ideas? If it isn't critical, I can just re-comment that line. -----Original Message----- From: Mailman-Users [mailto:mailman-users-bounces+jason=fayre.me@python.org] On Behalf Of Mark Sapiro Sent: Wednesday, September 02, 2015 8:34 PM To: Mailman Users <mailman-users@python.org> Subject: Re: [Mailman-Users] integrating htdig with cpanel mailman 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@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/jason%40fayre.me
On 09/03/2015 08:02 AM, Jason Fayre wrote:
Hello, I made the modifications you suggested. Now when I run nightly_htdig on a list, I get an error back that "I" is an invalid option for htfuzzy. I uncommented that line in the rundig script. Any ideas? If it isn't critical, I can just re-comment that line.
I'm sorry. I didn't keep the rundig you sent me so I can't be sure, but it appears that RedHat's modified rundig may be broken in some way.
On the other hand, if in making the mod to nightly_htdig you have
init_or_update = ' -I'
that is the problem. it needs to be lower case ' -i'.
If that doesn't explain it, you can send me the rundig again and I'll look further.
Whether or not you want the uncommented
$BINDIR/htfuzzy $opts soundex metaphone
line is up to you. What this does is enable the search to match alternate spellings of the search words that 'sound alike'.
However, even if you re-comment that line, there may be other problems even if it doesn't complain.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi, I finally got htdig to compile from source. So, I got rid of the centos package and am now using a vanilla build. The rundig patch applied correctly now.
-----Original Message----- From: Mark Sapiro [mailto:mark@msapiro.net] Sent: Thursday, September 03, 2015 1:11 PM To: Jason Fayre <jason@fayre.me>; 'Mailman Users' <mailman-users@python.org> Subject: Re: [Mailman-Users] integrating htdig with cpanel mailman
Hello, I made the modifications you suggested. Now when I run nightly_htdig on a list, I get an error back that "I" is an invalid option for htfuzzy. I uncommented that line in the rundig
On 09/03/2015 08:02 AM, Jason Fayre wrote: script.
Any ideas? If it isn't critical, I can just re-comment that line.
I'm sorry. I didn't keep the rundig you sent me so I can't be sure, but it appears that RedHat's modified rundig may be broken in some way.
On the other hand, if in making the mod to nightly_htdig you have
init_or_update = ' -I'
that is the problem. it needs to be lower case ' -i'.
If that doesn't explain it, you can send me the rundig again and I'll look further.
Whether or not you want the uncommented
$BINDIR/htfuzzy $opts soundex metaphone
line is up to you. What this does is enable the search to match alternate spellings of the search words that 'sound alike'.
However, even if you re-comment that line, there may be other problems even if it doesn't complain.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
In a message of Thu, 03 Sep 2015 14:29:37 -0400, "Jason Fayre" writes:
Hi, I finally got htdig to compile from source. So, I got rid of the centos package and am now using a vanilla build. The rundig patch applied correctly now.
cheer! :)
Laura
participants (3)
-
Jason Fayre -
Laura Creighton -
Mark Sapiro