when generating subjects for calendar items do quoted printeable encoding
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 3 Apr 2011 21:47:46 +0000 (23:47 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Thu, 7 Apr 2011 21:09:20 +0000 (23:09 +0200)
citadel/modules/calendar/serv_calendar.c

index af2b6a62c17c5ebc5502f7ecdd4956bf12058ea0..dc05c468548b0c47757cb9148c0e05e2bf48af6a 100644 (file)
@@ -2344,7 +2344,7 @@ void ical_obj_beforesave_backend(char *name, char *filename, char *partnum,
                                        if (msg->cm_fields['U'] != NULL) {
                                                free(msg->cm_fields['U']);
                                        }
-                                       msg->cm_fields['U'] = strdup(buf);
+                                       msg->cm_fields['U'] = rfc2047encode(buf, strlen(buf));
                                }
                        }