Table of Contents

Enum CalendarImportSkipReason

Namespace
MailFathom.Application.Calendar.Import
Assembly
MailFathom.Application.dll

Why one entry of an imported file became no event.

public enum CalendarImportSkipReason

Fields

AlreadyOnTheCalendar = 6

This calendar already holds the entry, under the identifier it names itself by.

DateOutOfRange = 8

The entry names an instant this deployment cannot hold, or a duration too long to be one.

A date near the end of the representable range plus any duration leaves it, and a duration can be stated in weeks large enough not to be a span at all. Both are arithmetic rather than parsing, so neither is anything the reading before them would have refused — and a file somebody else wrote is exactly where such a value arrives.

EndNotAfterStart = 5

The entry states an end that is not after its start.

NoStart = 1

The entry names no start, so there is no day to put it on.

Recurring = 0

The entry states a recurrence rule, and this deployment holds single events only.

Expanding one into a series would write events the file does not contain, and nothing here could later tell them apart from events somebody typed. So it is skipped and counted, which is a statement the person reads rather than a silence.

RepeatedInTheFile = 7

The file names the same identifier more than once, and only the first of them is read.

Kept apart from AlreadyOnTheCalendar because the two are different facts about the person's situation: one says the import has been done before, the other says the file repeats itself.

UnknownTimeZone = 4

The entry names a time zone this deployment does not know.

UnreadableIdentifier = 3

The entry names no identifier, or one this deployment will not hold.

RFC 5545 requires a UID of every entry, and it is what recognizes a second import of the same file. An entry without one could only be written as an event nothing would ever match again, so it is skipped instead.

UnreadableTitle = 2

The entry's summary is blank, too long, or carries a character that renders as nothing.

Remarks

A skip is not a failure. The file is somebody else's work — a conference programme, an export from another calendar — so it carries entries this deployment has no shape for, and refusing the whole file over one of them would make a schedule unusable because of a single line in it. What the import owes instead is a count per reason, which is what lets a person see that ten of eighty entries were recurring before they confirm the other seventy.

None of these names what the entry said. A title, a date, and an identifier are personal data whichever file they arrived in, so a reason is a kind rather than a value, and the report carries how many of each rather than which.