[OGo-Bugs][Bug 1991] Important/Priority value is discarded
bugs@opengroupware.org
bugs@opengroupware.org
Sun, 6 Jul 2008 17:16:38 +0200 (CEST)
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug
report.
http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=1991
------- Additional Comments From awilliam@whitemice.org 2008-07-06 14:34 -------
http://msdn.microsoft.com/en-us/library/ms530502(EXCHG.10).aspx
The scale of PR_IMPORTANCE is different:
/* PR_IMPORTANCE values */
#define IMPORTANCE_LOW ((long) 0)
#define IMPORTANCE_NORMAL ((long) 1)
#define IMPORTANCE_HIGH ((long) 2)
------- Additional Comments From awilliam@whitemice.org 2008-07-06 17:16 -------
r2128 translates the priority ("date_x.importance") field range 9..0 to the
X-MICROSOFT-CDO-IMPORTANCE scale to 0 .. 2 in LSGetICalForAppointmentsCommand.
- if (![(tmp = [_date valueForKey:@"importance"]) isNotNull]) tmp = @"0";
- [self _appendName:@"X-MICROSOFT-CDO-IMPORTANCE" andValue:tmp toICal:_iCal];
+ if ([(tmp = [_date valueForKey:@"importance"]) isNotNull]) {
+ int priority = [tmp intValue];
+ if ((priority < 5) && (priority > 0)) {
+ [self _appendName:@"X-MICROSOFT-CDO-IMPORTANCE"
+ andValue:@"2"
+ toICal:_iCal];
+ } else if ((priority < 9) && (priority > 0)) {
+ [self _appendName:@"X-MICROSOFT-CDO-IMPORTANCE"
+ andValue:@"1"
+ toICal:_iCal];
+ } else {
+ [self _appendName:@"X-MICROSOFT-CDO-IMPORTANCE"
+ andValue:@"0"
+ toICal:_iCal];
+ }
+ } /* end X-MICROSOFT-CDO-IMPORTANCE */
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.