Samuel Hill wrote:

The users home path is something like
/var/qmail/vpopmail/domains/domain.com/1/user
So it should find it but does not.

No, actually it looks like the extra branch (1) after domain.com and befor user is what's confusing the parser.


It will currently match:
/var/qmail/vpopmail/domains/domain.com/user/
/var/qmail/vpopmail/domains/domain.com/user
/foo/bar/domain.com/user/
/foo/bar/domain.com/user

But not:
/var/qmail/vpopmail/domains/domain.com/1/user
/var/qmail/vpopmail/domains/domain.com/1/user/

The attached patch should fix it, and allow all of the above, but not:
/var/qmail/vpopmail/domains/domain.com/1/2/user

--
Jim Ramsay
"Me fail English?  That's unpossible!"
Index: Install.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/Install.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- Install.py  18 Mar 2004 17:54:17 -0000      1.32
+++ Install.py  19 Mar 2004 16:19:06 -0000      1.33
@@ -660,7 +660,7 @@
   }
   Dict["ShortUrlDom"] = re.sub("^www\.", "", Dict["UrlDomain"], re.I)
   Dict["qUser"] = re.sub("\.", ":", Dict["User"])
-  Match = re.search(".*/([^\./]+\.[^/]+)/[^/]+/?$", Dict["Home"])
+  Match = re.search(".*/([^\./]+\.[^/]+)/([^/]/)?[^/]+/?$", Dict["Home"])
   if Match: Dict["Domain"] = Match.group(1)
 
   # Load the display template
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to