Author Topic: virtuser_query  (Read 3607 times)

Offline nemesis

  • Newbie
  • *
  • Posts: 1
virtuser_query
« on: January 30, 2008, 07:56:43 AM »
Hi

I use virtuser_query to get the email address for the user, But from the description i could also get the name of the user, i have now made a dumb query to test it, but i'm unable to get the users name. so is there anybody else that have got that to work?

// Query to resolve user names and e-mail addresses from the database
// %u will be replaced with the current username for login.
// The query should select the user's e-mail address as first col
$rcmail_config['virtuser_query'] = 'SELECT "test@domain.se","firstname surname" FROM userdb.login';

i.e, this query always returns the "test@domain.se","firstname surname", (for testing purpuse), however the sending address in roundcube is still u012345 . (u012345 being my login), and i would like it to be "firstname surname"

(using the latest nightly build)