Re: [Mailman-Users] Mailman htdig problem

2005-05-07 Thread Jim Tittsler
On May 3, 2005, at 06:07, Chris Serenil wrote:

 I have just installed Mailman 2.1.15 with the htdig
 patch 444884 and 444879. The search fails when I have
 a list name with a dot in it. (Example
 fa.dl-testlist). I will get these errors when doing a
 search. If there is no dot it works fine.

 htdig Archives Access Failure
 The requested list cannot be accessed. No list -3-

I don't use those patches, but a quick look suggests that the problem  
you are having is related to this line in sub doit:
if ($query-param('config') =~ /^([^\.]+)(|\.htsearch)$/) {

I'm guessing it is looking for either a bare listname or  
listname.htsearch.  The first group which looks for a string of  
characters that aren't in the set of '.' and '\' isn't a good choice  
for a listname with a dot in it.  (I'm guessing that the author  
didn't really want a \ there, since IIRC '.' isn't special inside a  
Perl character class and so doesn't warrant escaping... but that  
isn't the problem you are encountering.)  My Perl-foo has weakened  
over years of disuse, so it is risky to suggest something I can't  
test.  But since I didn't see any other replies, you might try  
something like:
if ($query-param('config') =~ /^(.*?)(\.htsearch)?$/) {
No warranty is expressed or implied.  If it breaks, you get to keep  
all the pieces.

I don't know if there are other places in the patches that assume  
there are no dots in the listname once you get past this hurdle.


-- 
Jim Tittsler http://www.OnJapan.net/  GPG: 0x01159DB6
Python Starship  http://Starship.Python.net/crew/jwt/
Mailman IRC  irc://irc.freenode.net/#mailman



--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


[Mailman-Users] Mailman htdig problem

2005-05-02 Thread Chris Serenil
I have just installed Mailman 2.1.15 with the htdig
patch 444884 and 444879. The search fails when I have
a list name with a dot in it. (Example
fa.dl-testlist). I will get these errors when doing a
search. If there is no dot it works fine. 

htdig Archives Access Failure
The requested list cannot be accessed. No list -3-

If you want to make another attempt to access a list
archive then go via the list users information page.

If this problem persists then please e-mail the
following information to the
[EMAIL PROTECTED]:

   
http://mailman.fa.example.com/pipermail/fa.dl-testsearch2/
/mailman/mmsearch/fa.dl-testsearch2

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp