----- Original Message ----- From: "Jim Ramsay" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 19, 2004 2:20 PM Subject: Re: TMDA-cgi 0.13 "Aluminim" Re-Release + Another Problem
> Samuel Hill wrote: > > > The only thing that seems to be stable is this... > > Match = re.search(".*/domains?/([^\./]+\.[^/]+)/", Dict["Home"]) > > True, it works for you, and anyone else who has the format as follows: > > /various/paths/domain[s]/domain.name.here.with.dots/anything/else/here/wil l/do > > The reason Gre7g changed it originally is so that you wouldn't be > limited by having to have either "domain" or "domains" immediately > before the domain name itself. I can't remember why, but it had > something to do with some other virtual user scheme. Probably at my request - I have a virtual domain setup, but it isn't using vpopmail/whatever - it's basically a custom setup based off some how-to-setup-a-popmail-toaster pages I found on the 'net My virtual users are stored in e.g.: /var/qmail/popboxes/wwwdotorg.org/swarren/ I haven't been following this thread this time... When the original RE change was made, I suggested requiring the VLOOKUP script to print the user's domain name, instead of using an RE to determine it from the HOME directory. Since the virtual user system knows this information, it seems having it tell tmda-cgi what the information is keeps tmda-cgi from having explicit knowledge of virtual user schemes or directory layout. I don't know if the standard virtual user schemes print this information from their script, but a wrapper around the vpopmail system couldn't be that hard, or perhaps vpopmail is such that when calling the vuserinfo script, you've already parsed the login ID into user/domain portions so you can just return it directly? Certainly, the script I use as a vpopmail1 VLOOKUP script accepts user_id and domain arguments, so the information is already there. For the qmailuserassign, it could be modified to search /var/qmail/control/virtualdomains to convert the name in users/assign to domain name. -- Stephen Warren, Software Engineer, Parama Networks, San Jose, CA [EMAIL PROTECTED] http://www.wwwdotorg.org/ _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users