When using host auth mode the user is given a default email address
[citadel.git] / citadel / modules / vcard / serv_vcard.c
index d4ab858b9407d8fb45695801648228dac5fad73b..a3b0fc46c60a9168e6972050669854f659ac6882 100644 (file)
@@ -968,6 +968,25 @@ void cmd_greg(char *argbuf)
 
 
 
+
+
+/*
+ * Add an email alias to a users vcard
+ */
+
+void vcard_add_alias(struct ctdluser *usbuf, char *addr)
+{
+       struct vCard *v;
+       
+       v = vcard_get_user(usbuf);
+       vcard_add_prop(v, "email;internet", addr);
+       vcard_write_user(usbuf, v);
+       vcard_free(v);
+}
+
+
+
+
 /*
  * When a user is being created, create his/her vCard.
  */