"Jesse D. Guardiani" <[EMAIL PROTECTED]> writes:

> Gre7g Luterman wrote:
> 
> > On Fri, 28 Mar 2003 05:34:52 -0500, "Jesse D. Guardiani"
> > <[EMAIL PROTECTED]> wrote:
> > 
> >> I haven't heard from Tim in a while. I wonder what he's up to, and if he
> >> ever plans to finish the migration and integration of virtual user
> >> code into the ~ expansion routines like he said he wanted to.

Tim was in the hospital for a while and is now home, engaged in a very
long, slow recovery.  However, he's getting back onto the 'net in a
gradual fashion.  Oh well, enough third person.

I'll try to keep up with this topic as we move along.  I don't have
lots of time right now because of general exhaustion and a pressing
contract.  I have expressed to Jason that I'd like to see the virtual
domain support in TMDA clean and across all the relevant apps before
the 1.0 release and he's on board, so post-contract, that's my number
1 priority.

> >> That would certainly make your job a good bit easier. You could then
> >> treat virtual users just like system users, but I'm not sure that it's
> >> really an implementable idea.
> > 
> > I would really like to encapsulate this sort of stuff in one central
> > module.  That would be best from a design point of view.

Indeed.

> I think so too. I don't think ~ expansion would work.

[snip...]

> I'm talking about the ~ expansions here. Say you have two virtual users,
> [EMAIL PROTECTED] and [EMAIL PROTECTED] Which user does ~bob evaluate to?

I think I understand what you're asking here.  If we just had a random
user 'bob', there's no way this would work.  But, at least in my
understanding, that can never be the case.  We have, instead, a
specific user [EMAIL PROTECTED] who just logged in and for whom the
vpopmail-vdir.sh script has provided a home directory.

The other thing you might need to know (not immediately obvious) is
that the Python code for os.path.expanduser(), which expands the '~',
gets the home directory from the $HOME environment variable.  This is
how tmda-ofmipd works.  It does nothing more than collect the user's
home directory from the script and set $HOME to that value before
calling tmda-inject.  When tmda-inject runs, '~' automatically expands
to the virtual user's directory as specified in $HOME.

If there's confusion about a user logging in as just 'bob', please see
my response to Jim Ramsay about how the whole username
vs. username-with-domain thing works in VPopMail.


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

Reply via email to