Results 1 to 2 of 2

Thread: Outlook 2007 iCal format

  1. #1
    kiwicmc is offline Senior Member
    Join Date
    Feb 2006
    Auckland, New Zealand
    Rep Power

    Default Outlook 2007 iCal format

    Just found a bug in the way iCal4j parses Outlook 2007 iCal messages (bug seems to be in MS BTW).

    Not sure whether this code is in 4.5, I'm working on the 3.1.4 source.

    Zimbra does this in cs.mailbox.calendar.ZCalendar::ZCalendarBuilder::b uild:

    CalendarParser parser = new CalendarParserImpl();

    try {
    parser.parse(new UnfoldingReader(reader), handler);

    The problem with Outlook 2007 is that it breaks long text lines with this pattern "\r\n\t" and UnfoldingReader in iCal4J up to release 0.9.20 doesn't handle it. Patching UnfoldingReader with this pattern:

    * The pattern used to identify a fold in Mozilla Calendar/Sunbird and KOrganizer.
    private static final char[] RELAXED_FOLD_PATTERN_1 = { '\n', ' ' };

    * The pattern used to identify a fold in Microsoft Outlook 2007.
    private static final char[] RELAXED_FOLD_PATTERN_2 = { '\r', '\n', '\t' };

    Fixes the problem. Interestingly enough Outlook 2003 just didn't bother breaking up the lines at all ....


  2. #2
    jhahm is offline Zimbra Employee
    Join Date
    Sep 2005
    Rep Power


    Hi, Chris. Thanks for the suggestion. Your fix is basically correct, but we need to also deal with LF-tab. So there are total 4 cases: CRLF-space, LF-space, CRLF-tab, and LF-tab.

    See comment #6 in bug 15506.
    Bugzilla - Wiki - Downloads - Before posting... Search!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] URGENT: Tomcat Not Starting On Reboot
    By AlexanderH in forum Administrators
    Replies: 19
    Last Post: 08-22-2007, 12:42 PM
  2. 5.0 Install tasks
    By JoshuaPrismon in forum Installation
    Replies: 2
    Last Post: 06-06-2007, 12:18 PM
  3. httpd resident in memory but not accessible
    By AlexanderH in forum Installation
    Replies: 3
    Last Post: 05-11-2007, 09:19 AM
  4. 3.0 to 4.5.3 Upgrade failed (mysql error)
    By dealt in forum Installation
    Replies: 35
    Last Post: 03-19-2007, 10:30 PM
  5. Outlook connector with MS Outlook 2007
    By jcone in forum Users
    Replies: 1
    Last Post: 02-28-2007, 07:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts