Monotone-Parent: 469e9b126515b386d9640628549236a84910376f

Monotone-Revision: a40a2bc11f2bf943ab20c6abf092bca19c4bd438

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-12-13T16:53:32
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-12-13 16:53:32 +00:00
parent 55dc8abff8
commit 66b70f06d0
5 changed files with 25 additions and 26 deletions

View File

@@ -6,7 +6,7 @@
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This file is distributed in the hope that it will be useful,
@@ -27,6 +27,8 @@
#import <Foundation/NSTimeZone.h>
#import <Foundation/NSString.h>
#import <NGExtensions/NSObject+Logs.h>
#import <NGCards/iCalCalendar.h>
#import <NGCards/iCalDateTime.h>
#import <NGCards/iCalEvent.h>
@@ -86,18 +88,21 @@
iCalTimeZone *tz;
iCalDateTime *start, *end;
[self logWithFormat: @"event props:"];
MAPIStoreDumpMessageProperties (properties);
vEvent = [self component: YES secure: NO];
vCalendar = [vEvent parent];
[vCalendar setProdID: @"-//Inverse inc.//OpenChange+SOGo//EN"];
// summary
value = [properties
objectForKey: MAPIPropertyNumber (PR_NORMALIZED_SUBJECT_UNICODE)];
objectForKey: MAPIPropertyKey (PR_NORMALIZED_SUBJECT_UNICODE)];
if (value)
[vEvent setSummary: value];
// Location
value = [properties objectForKey: MAPIPropertyNumber (0x810c001f)];
value = [properties objectForKey: MAPIPropertyKey (0x810c001f)];
if (value)
[vEvent setLocation: value];
@@ -106,7 +111,7 @@
[vCalendar addTimeZone: tz];
// start
value = [properties objectForKey: MAPIPropertyNumber (PR_START_DATE)];
value = [properties objectForKey: MAPIPropertyKey (PR_START_DATE)];
if (value)
{
start = (iCalDateTime *) [vEvent uniqueChildWithTag: @"dtstart"];
@@ -115,7 +120,7 @@
}
// end
value = [properties objectForKey: MAPIPropertyNumber (PR_END_DATE)];
value = [properties objectForKey: MAPIPropertyKey (PR_END_DATE)];
if (value)
{
end = (iCalDateTime *) [vEvent uniqueChildWithTag: @"dtend"];