When using host auth mode the user is given a default email address
authorDave West <davew@uncensored.citadel.org>
Wed, 13 Feb 2008 22:47:42 +0000 (22:47 +0000)
committerDave West <davew@uncensored.citadel.org>
Wed, 13 Feb 2008 22:47:42 +0000 (22:47 +0000)
commitc885e5aaf9ebc6690f145ab6152e2bd76e6b0ac7
treeaeffb9cad2957e87ef42eea54777891b08290777
parentb0c4961901a5822d831613e6cc8a24b10d1a4746
When using host auth mode the user is given a default email address
based on the gecos field from the passwd file which is usually
"firstname_lastname" this results in the user not being able to receive
mail to their default username address.
To rememdy this when the user logs in for the first time we now create
the users vCard as normal and then add an alias to the vCard.
The alias is username@domain as opposed to firstname_lastname@domain.
We only add the alias if it would differ from the original address.
We only do this in host auth mode.
citadel/modules/vcard/serv_vcard.c
citadel/serv_vcard.h
citadel/user_ops.c