View Single Post
  #1  
Old 2009-12-21, 17:34
rip rip is offline
Junior Member
 
Join Date: 2009-07
Posts: 2
Default Folded lines in vcalendar object

When you enter an appointment into the iPhone that has a subject longer than 60-70 characters, the subject line is "folded" in the vcalendar object that is transmitted to the SyncML server. However the line is not folded correctly according to the iCalendar spec RFC2445 section 4.1. According to the spec, when the line is folded, the CR,LF and whitespace characters are supposed to be inserted. However, synthesis is only inserting CR,LF. Therefore when the line is un-folded at the server, one whitespace is lost. For example:

SUMMARY:This is a long line that should be folded properly according
to the specification.

Is supposed to be transmitted with 2 whitespaces at the beginning of the line (one that is part of the folding, and one that is the original separator between the words), like this example:

SUMMARY:This is a long line that should be folded properly according
to the specification.

When the synthesis client formats the text using quoted printable, folding is done correctly. Perhaps the best solution would be for the synthesis client to always use quoted printable whenever the line length is longer than 60 chars.
Reply With Quote