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>
Sun, 4 Sep 2011 17:22:30 +0000 (17:22 +0000)
citadel/modules/calendar/serv_calendar.c

index 314a5ccea42aacc5d16f98a8d10d10ff091bac7e..cf448a057dd4a6d8f428387b07072a4e7d7b39dd 100644 (file)
@@ -2342,7 +2342,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));
                                }
                        }