* Remove ALL calendar recipient crapola in
authorArt Cancro <ajc@citadel.org>
Sat, 6 Dec 2008 18:39:06 +0000 (18:39 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 6 Dec 2008 18:39:06 +0000 (18:39 +0000)
  parentheses, not just the first one.  Fixes bug 437.

webcit/event.c

index 9240884b9ca90b3b481e1cbb2d98bc0bce50b13d..ae3417462b3f6ae17fa57cfcf02cdb6fd5663679 100644 (file)
@@ -1018,7 +1018,11 @@ void save_individual_event(icalcomponent *supplied_vevent, long msgnum, char *fr
 
                /* First, strip out the parenthesized partstats.  */
                strcpy(form_attendees, bstr("attendees"));
-               stripout(form_attendees, '(', ')');
+               do {
+                       i = strlen(form_attendees);
+                       stripout(form_attendees, '(', ')');
+                       j = strlen(form_attendees);
+               } while (i != j);
 
                /* Next, change any commas to newlines, because we want newline-separated attendees. */
                j = strlen(form_attendees);