Skip to content

Commit f5e083b

Browse files
committed
email_lib: do not reject import of time-based recurrent series with single occurrence
1 parent 973cf6d commit f5e083b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/email/ical.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1834,8 +1834,9 @@ bool ical_parse_rrule(const ical_component *ptz_component,
18341834
time_t until_time;
18351835
if (!ical_parse_until(ptz_component, pvalue, &until_time))
18361836
return false;
1837-
if (until_time <= start_time)
1837+
if (until_time < start_time)
18381838
return false;
1839+
/* until==start can happen with a recurrent series with one occurrence */
18391840
pirrule->b_until = true;
18401841
ical_utc_to_datetime(ptz_component,
18411842
until_time, &pirrule->until_itime);

0 commit comments

Comments
 (0)