+2006-11-14 Helge Hess <helge.hess@opengroupware.org>
+
+ * iCalRecurrenceRule.m: parse (but not process or store) 'bymonth'
+ rrules (v4.5.77)
+
2006-08-03 Helge Hess <helge.hess@opengroupware.org>
* NGVCardSaxHandler.m: fixed a bug with returning parsing results.
- (void)dealloc {
[self->byMonthDay release];
- [self->untilDate release];
- [self->rrule release];
+ [self->untilDate release];
+ [self->rrule release];
[super dealloc];
}
NSString *pCount = nil;
NSString *pByday = nil;
NSString *pBymday = nil;
+ NSString *pBymonth = nil;
NSString *pBysetpos = nil;
NSString *pInterval = nil;
if ([key isEqualToString:@"byday"]) { vHolder = &pByday; break; }
if ([key isEqualToString:@"bymonthday"]) { vHolder = &pBymday; break; }
if ([key isEqualToString:@"bysetpos"]) { vHolder = &pBysetpos; break; }
+ if ([key isEqualToString:@"bymonth"]) { vHolder = &pBymonth; break; }
break;
case 'c':
if ([key isEqualToString:@"count"]) { vHolder = &pCount; break; }
// TODO: we should parse byday in here
if (pByday != nil) [self setByday:pByday];
[pByday release]; pByday = nil;
-
+
+ // TODO: we should process bymonth here
+ if (pBymonth != nil) {
+ /* eg this is used in Sunbird 0.3 timezone descriptions */
+ static BOOL didWarn = NO;
+ if (!didWarn) {
+ [self warnWithFormat:
+ @"not yet processing 'bymonth' fields of rrules: %@", _rrule];
+ didWarn = YES;
+ }
+ [pBymonth release]; pBymonth = nil;
+ }
+
if (pBymday != nil) {
NSArray *t;