On Thu, 21 Aug 2003 21:54:52 -0700, Stephen Warren
<[EMAIL PROTECTED]> wrote:

> and it's optionally over-ridden based on the user's home dir:
> 
>   Match = re.search(".*/domains?/([^\./]+\.[^/]+)/", Dict["Home"])
>   if Match: Dict["Domain"] = Match.group(1)
> 
> which won't do the right thing in my setup, since I have virtual users in
> /var/qmail/popboxes/$domain/$user - a custom vdomain setup based off some
> things I found on the web. I'm using the vpopmail stub with a custom
> user-info script.

So let's just change the re search to:

Match = re.search(".*/([^\./]+\.[^/]+)/[^/]+/?$", Dict["Home"])

That sure would be a heck of a lot simpler than monkeying with the
stubs.

Gre7g.
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to