[Freeassociation-devel] BYSETPOS

Álvaro Manera alvaro.manera at nokia.com
Wed Aug 19 02:01:18 PDT 2009


Hi again,

Currently libical doesn't have the proper support of BYSETPOS. 

The problem is with "BYSETPOS=-1" (no support) and with "BYSETPOS=1" (this 
workes incorrectly when first day of month is in BYDAY, but has position differ 
from 1).

For yearly recurrences with BYSETPOS (rules like 
"FREQ=YEARLY;COUNT=6;BYDAY=SU,SA;BYMONTH=7,8,9;BYSETPOS=1,-1") there is no 
support in libical.

Here is the patch with modification in the iterators. Please check it, and if 
you think it's ok I'll commit. 

I have done some testing and it seems to work ok, but if you have more tests 
please run them   also.

Alvaro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug#icalrecur_month_year_setpos_v6.patch
Type: text/x-patch
Size: 4323 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/libical-devel/attachments/20090819/5594398b/attachment.bin>


More information about the libical-devel mailing list