validate_recipients() - completed removal of unused param
[citadel.git] / citadel / server / modules / calendar / serv_calendar.c
index 17b80b0dd7d2b722c30b9ff94e3a7351fd13f080..eaf8d238f075d1304823892fc676520c3de64db6 100644 (file)
@@ -177,7 +177,7 @@ void ical_send_a_reply(icalcomponent *request, char *action) {
                        if ((ch != NULL) && !strncasecmp(ch, "MAILTO:", 7)) {
                                safestrncpy(attendee_string, ch + 7, sizeof (attendee_string));
                                string_trim(attendee_string);
-                               recp = validate_recipients(attendee_string, NULL, 0);
+                               recp = validate_recipients(attendee_string, 0);
                                if (recp != NULL) {
                                        if (!strcasecmp(recp->recp_local, CC->user.fullname)) {
                                                if (me_attend) icalproperty_free(me_attend);
@@ -266,7 +266,7 @@ void ical_send_a_reply(icalcomponent *request, char *action) {
                );
        
                if (msg != NULL) {
-                       valid = validate_recipients(organizer_string, NULL, 0);
+                       valid = validate_recipients(organizer_string, 0);
                        CtdlSubmitMsg(msg, valid, "");
                        CM_Free(msg);
                        free_recipients(valid);
@@ -1258,7 +1258,7 @@ void ical_freebusy(char *who) {
        // If not found, try it as an unqualified email address.
        if (found_user != 0) {
                strcpy(buf, who);
-               recp = validate_recipients(buf, NULL, 0);
+               recp = validate_recipients(buf, 0);
                syslog(LOG_DEBUG, "calendar: trying <%s>", buf);
                if (recp != NULL) {
                        if (recp->num_local == 1) {
@@ -1272,7 +1272,7 @@ void ical_freebusy(char *who) {
        if (found_user != 0) {
                snprintf(buf, sizeof buf, "%s@%s", who, CtdlGetConfigStr("c_fqdn"));
                syslog(LOG_DEBUG, "calendar: trying <%s>", buf);
-               recp = validate_recipients(buf, NULL, 0);
+               recp = validate_recipients(buf, 0);
                if (recp != NULL) {
                        if (recp->num_local == 1) {
                                found_user = CtdlGetUser(&usbuf, recp->recp_local);
@@ -1294,7 +1294,7 @@ void ical_freebusy(char *who) {
                        ) {
                                snprintf(buf, sizeof buf, "%s@%s", who, host);
                                syslog(LOG_DEBUG, "calendar: trying <%s>", buf);
-                               recp = validate_recipients(buf, NULL, 0);
+                               recp = validate_recipients(buf, 0);
                                if (recp != NULL) {
                                        if (recp->num_local == 1) {
                                                found_user = CtdlGetUser(&usbuf, recp->recp_local);
@@ -1903,7 +1903,7 @@ void ical_send_out_invitations(icalcomponent *top_level_cal, icalcomponent *cal)
                );
        
                if (msg != NULL) {
-                       valid = validate_recipients(attendees_string, NULL, 0);
+                       valid = validate_recipients(attendees_string, 0);
                        CtdlSubmitMsg(msg, valid, "");
                        CM_Free(msg);
                        free_recipients(valid);