mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-27 17:12:43 +00:00
see changelog
Monotone-Parent: 6ead4733302fbf149fcd9936a6e3eb9f4a85acac Monotone-Revision: 656122c69a0d8d7212bed5df2febbb397d3ff7de Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2008-01-16T17:07:46 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -197,7 +197,7 @@
|
||||
- (NSString *) _dayMaskToInteger: (unsigned int) theMask
|
||||
{
|
||||
NSMutableString *s;
|
||||
unsigned int i, v;
|
||||
unsigned int i;
|
||||
|
||||
unsigned char maskDays[] = { iCalWeekDayMonday, iCalWeekDayTuesday,
|
||||
iCalWeekDayWednesday, iCalWeekDayThursday,
|
||||
@@ -229,17 +229,6 @@
|
||||
|
||||
rule = [[component recurrenceRules] lastObject];
|
||||
|
||||
// If we either have an end date or a recurrence count
|
||||
// it's automatically a CUSTOM one.
|
||||
//if (![rule isInfinite] || [rule repeatInterval] != 1)
|
||||
// {
|
||||
// // We initialize the proper ivars
|
||||
// repeatType = @"1";
|
||||
// repeat1 = @"1";
|
||||
// repeat2 = @"1,3,5";
|
||||
// return;
|
||||
// }
|
||||
|
||||
if ([rule frequency] == iCalRecurrenceFrequenceDaily)
|
||||
{
|
||||
repeatType = @"0";
|
||||
@@ -260,7 +249,7 @@
|
||||
{
|
||||
repeat1 = @"0";
|
||||
|
||||
if ([rule repeatInterval] == 1)
|
||||
if ([rule repeatInterval] == 1 && [rule isInfinite])
|
||||
{
|
||||
repeat = @"DAILY";
|
||||
}
|
||||
@@ -1320,10 +1309,13 @@ RANGE(2);
|
||||
// Repeat until date
|
||||
else if (range == 2)
|
||||
{
|
||||
[theRule setUntilDate: [NSCalendarDate dateWithString: [self range2]
|
||||
calendarFormat: @"%Y-%m-%d"]];
|
||||
}
|
||||
// No end date.
|
||||
else
|
||||
{
|
||||
// Do nothing?
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user