~jelmer/ubuntu/natty/evolution-mapi/513394-recurring-events

« back to all changes in this revision

Viewing changes to debian/patches/02_recurring_events

  • Committer: Jelmer Vernooij
  • Date: 2011-02-11 23:50:06 UTC
  • Revision ID: jelmer@samba.org-20110211235006-v0vwiq6h9tgvne83
Tags: 0.32.1-0ubuntu2
* Add patch 02_recurring_events: fix recurring events not showing from
  Exchange 2007. LP: #513394
* Add 'Enhances: evolution' for evolution-mapi.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
=== modified file 'src/libexchangemapi/exchange-mapi-cal-recur-utils.c'
 
2
--- old/src/libexchangemapi/exchange-mapi-cal-recur-utils.c     2010-10-19 15:03:33 +0000
 
3
+++ new/src/libexchangemapi/exchange-mapi-cal-recur-utils.c     2011-02-11 23:36:57 +0000
 
4
@@ -656,8 +656,10 @@
 
5
        /* some constant */
 
6
        flag32 = *((guint32 *)ptr);
 
7
        ptr += sizeof (guint32);
 
8
+       /* It should be set, but not must. It can be, technically, any value.
 
9
+          Seen were 0x3006, 0x3008, 0x3009. It affects format of extended exception info
 
10
        if (flag32 != WRITER_VERSION2)
 
11
-               return FALSE;
 
12
+               return FALSE; */
 
13
 
 
14
        /* start time in mins */
 
15
        flag32 = *((guint32 *)ptr);
 
16
@@ -670,20 +672,11 @@
 
17
        /* modified exceptions */
 
18
        flag16 = *((guint16 *)ptr);
 
19
        ptr += sizeof (guint16);
 
20
-       if (flag16 != 0x0)
 
21
-               return FALSE;
 
22
-
 
23
-       /* reserved block1 size - has to be 0 */
 
24
-       flag32 = *((guint32 *)ptr);
 
25
-       ptr += sizeof (guint32);
 
26
-       if (flag32 != 0x0)
 
27
-               return FALSE;
 
28
-
 
29
-       /* reserved block2 size - has to be 0 */
 
30
-       flag32 = *((guint32 *)ptr);
 
31
-       ptr += sizeof (guint32);
 
32
-       if (flag32 != 0x0)
 
33
-               return FALSE;
 
34
+    /* FIXME: there are flag16 count modified exceptions here, which
 
35
+              are variable in size, followed by a ReservedBlock1{Size,}
 
36
+              and ReservedBlock2{Size,}.  However, since we have nothing 
 
37
+              else to do until we are able to parse these modified
 
38
+              instances, we just stop now. */
 
39
 
 
40
        /* Set the recurrence */
 
41
        {
 
42
@@ -698,11 +691,6 @@
 
43
        /* FIXME: this also has modified instances */
 
44
        e_cal_component_set_exdate_list (comp, exdate_list);
 
45
 
 
46
-       g_print ("\n== MAPI to ICAL == The recurrence blob data is as follows:\n");
 
47
-       for (i = 0; i < ba->len; ++i)
 
48
-               g_print ("0x%02X ", ba->data[i]);
 
49
-       g_print("\n== End of stream ==\n");
 
50
-
 
51
        return TRUE;
 
52
 }
 
53
 
 
54