I'm using tmda-cgi 0.11 on a system with name-based virtual domains.

If I go to the Address page, and attempt to generate e.g. a keyword
address, leaving "use address" blank, tmda-cgi will use
"[EMAIL PROTECTED]" ([EMAIL PROTECTED]) instead of
[EMAIL PROTECTED] (the ID I logged in with).

I tracked this down to tmda/TMDA/Address.py, class Address, function base,
where the code says:

return Defaults.USERNAME + '@' + Defaults.HOSTNAME

This function is only called if None was passed into the address factory
near the end of GenAddr.py in tmda-cgi.

I think if virtual domains are configured into tmda-cgi, the ID used to
log into the system should be passed down as the Base value (since this is
the user ID passed to the virtual user info script).

On thinking about this, on a system with IP-based virtual domains, I'm
guessing tmda-cgi should somehow grab the actual domainname from the
virtual user info script, cat this onto the end of the user ID used to
login, and pass this into the address factory, so that works too...

Either that, or the X-Primary-Address should be parsed out of the user's
tmda config files.

-- 
Stephen Warren, Software Engineer, Parama Networks, San Jose, CA
[EMAIL PROTECTED]                  http://www.wwwdotorg.org/
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to