How do I get the config file in tmda-cgi to get the data of the users real name from vuserinfo correctly?

When I have the following line in the skel/install/.tmda/config I get None as the persons name.

FULLNAME = “%(Name)s”

 

In the config file I need the users name to come from vuserinfoc .

 

For example, to get the users FULLNAME correctly I need to do something like so….

 

USERNAME = "%(User)[EMAIL PROTECTED](Domain)s"

cmd = "/usr/local/vpopmail/bin/vuserinfo -c %USERNAME"

cmdfp = os.popen(cmd)

name = cmdfp.read().strip()

if cmdfp.close() is None:

FULLNAME = name

 

But I cannot get the above to execute from the skel files correctly (if I put the above in tmda-cgi/skel/install/.tmda/config).

 

 

Thanks!

Reply via email to