X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fvcard%2Fserv_vcard.c;h=a3b0fc46c60a9168e6972050669854f659ac6882;hb=c885e5aaf9ebc6690f145ab6152e2bd76e6b0ac7;hp=d4ab858b9407d8fb45695801648228dac5fad73b;hpb=b0c4961901a5822d831613e6cc8a24b10d1a4746;p=citadel.git diff --git a/citadel/modules/vcard/serv_vcard.c b/citadel/modules/vcard/serv_vcard.c index d4ab858b9..a3b0fc46c 100644 --- a/citadel/modules/vcard/serv_vcard.c +++ b/citadel/modules/vcard/serv_vcard.c @@ -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. */