[prev in list] [next in list] [prev in thread] [next in thread] 

List:       majordomo-users
Subject:    Re: MajorCool 1.2.0 and Nested Lists
From:       Richard Hopkins <Richard.Hopkins () bristol ! ac ! uk>
Date:       1998-01-30 14:52:39
[Download RAW message or body]

Thanks, Bill. That's fixed it...

On Thu, 29 Jan 1998 16:01:46 -0800 Bill Houle 
<Bill.Houle@SanDiegoCA.NCR.COM> wrote:

> If you look at the send_who() code, it tries to remove /@$whereami/ from
> the listname and then validates the result using Majordomo's &valid_list().
> Now, in your example, if Majordomo's $whereami is bris.co.uk, then the
> resulting validation on "test-list@bham.ac.uk" should be
> 	valid_list($listdir, "test-list@bham.ac.uk")
> and should fail.
> 
> Alternatively, if your $whereami is "bham.ac.uk", then the result would be:
> 	valid_list($listdir, "test-list")
> and should succeed.
> 
> But....It turns out I made a big (and incorrect) assumption about what
> valid_list does. I assumed that it paid attention to the right-hand side,
> but in fact it just strips it. So really, there should be a single-token
> test before arbitrarily handing off to valid_list. Something like:
> 
> 	if ($addr =~ /^[\-\w]+$/ && &valid_list...)
> 
> --bill
> 
> 
> 
> At 11:22 AM 1/29/98 +0000, Richard Hopkins wrote:
> >I've just installed (upgraded to) MajorCool 1.2.0. Working well, but with a 
> >single oddity...
> >
> >I have it configured to show nested lists as hyperlinks, but it seems to 
> >regard any entry in any list which has a name the same as any existing list 
> >name, independent of the address, as a nested list.
> >
> >Err.. an example might help...
> >
> >I have a list "test-list@bris.ac.uk"
> >
> >If I add an entry to this list of "test-list@bham.ac.uk", say, then when I 
> >view the list with MajorCool, it shows this remote entry as being a nested 
> >list. Trying to expand it then results in an error of the form...
> >
> >Invalid format for list name. [test-list@bham.ac.uk]
> >
> >Shouldn't MajorCool be taking account of the @part of entries in lists?
> >
> >Cheers,
> >
> >Richard Hopkins,
> >Computing Service,
> >University of Bristol,
> >Bristol, BS8 1UD, UK
> >
> >Tel +44 117 928 7859, Fax +44 117 929 1576
> >
> >RFC-822: Richard.Hopkins@bristol.ac.uk
> >X.400:   G=Richard;S=Hopkins;O=Bristol;P=UK.AC;C=GB
> >
> >

Richard Hopkins,
Computing Service,
University of Bristol,
Bristol, BS8 1UD, UK

Tel +44 117 928 7859, Fax +44 117 929 1576

RFC-822: Richard.Hopkins@bristol.ac.uk
X.400:   G=Richard;S=Hopkins;O=Bristol;P=UK.AC;C=GB

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic