X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fvcard%2Fserv_vcard.c;h=dbb9255f949fb9750926093f38f87315bd1f89f8;hb=882ff5a53c3b4e440520a073cf07dc60b2671876;hp=1d0e2909dada8809f4a6de17149bcd32843bdd63;hpb=3b8d1155415cd1b45dbd3303ffc68a6c00e6b28a;p=citadel.git diff --git a/citadel/modules/vcard/serv_vcard.c b/citadel/modules/vcard/serv_vcard.c index 1d0e2909d..dbb9255f9 100644 --- a/citadel/modules/vcard/serv_vcard.c +++ b/citadel/modules/vcard/serv_vcard.c @@ -2,7 +2,7 @@ * A server-side module for Citadel which supports address book information * using the standard vCard format. * - * Copyright (c) 1999-2018 by the citadel.org team + * Copyright (c) 1999-2020 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. @@ -38,18 +38,7 @@ #include #include #include - -#if TIME_WITH_SYS_TIME -# include -# include -#else -# if HAVE_SYS_TIME_H -# include -# else -# include -# endif -#endif - +#include #include #include #include @@ -190,7 +179,7 @@ void vcard_extract_vcard(char *name, char *filename, char *partnum, char *disp, * function accordingly (delete the user's existing vCard in the config room * and in the global address book). */ -int vcard_upload_beforesave(struct CtdlMessage *msg, recptypes *recp) { +int vcard_upload_beforesave(struct CtdlMessage *msg, struct recptypes *recp) { char *s; char buf[SIZ]; struct ctdluser usbuf; @@ -369,7 +358,7 @@ int vcard_upload_beforesave(struct CtdlMessage *msg, recptypes *recp) { * function accordingly (copy the vCard from the config room to the global * address book). */ -int vcard_upload_aftersave(struct CtdlMessage *msg, recptypes *recp) { +int vcard_upload_aftersave(struct CtdlMessage *msg, struct recptypes *recp) { char *ptr; int linelen; long I; @@ -508,7 +497,7 @@ struct vCard *vcard_get_user(struct ctdluser *u) { if (VCmsgnum < 0L) return vcard_new(); - msg = CtdlFetchMessage(VCmsgnum, 1, 1); + msg = CtdlFetchMessage(VCmsgnum, 1); if (msg == NULL) return vcard_new(); v = vcard_load(msg->cm_fields[eMesageText]); @@ -868,7 +857,7 @@ void dvca_mime_callback(char *name, char *filename, char *partnum, char *disp, void dvca_callback(long msgnum, void *userdata) { struct CtdlMessage *msg = NULL; - msg = CtdlFetchMessage(msgnum, 1, 1); + msg = CtdlFetchMessage(msgnum, 1); if (msg == NULL) return; mime_parser(CM_RANGE(msg, eMesageText), *dvca_mime_callback, /* callback function */ @@ -935,7 +924,7 @@ void check_get(void) { if (strncasecmp(cmdbuf, "GET ", 4)==0) { - recptypes *rcpt; + struct recptypes *rcpt; char *argbuf = &cmdbuf[4]; extract_token(internet_addr, argbuf, 0, '|', sizeof internet_addr); @@ -1087,7 +1076,7 @@ void strip_addresses_already_have(long msgnum, void *userdata) { collected_addresses = (char *)userdata; - msg = CtdlFetchMessage(msgnum, 1, 1); + msg = CtdlFetchMessage(msgnum, 1); if (msg == NULL) return; v = vcard_load(msg->cm_fields[eMesageText]); CM_Free(msg); @@ -1164,7 +1153,7 @@ void store_this_ha(struct addresses_to_be_filed *aptr) { vcard_free(v); syslog(LOG_DEBUG, "vcard: adding contact: %s", recipient); - CtdlSubmitMsg(vmsg, NULL, aptr->roomname, QP_EADDR); + CtdlSubmitMsg(vmsg, NULL, aptr->roomname); CM_Free(vmsg); } }