pimutils / pimutils/vdirsyncer
Adjusted error handling on one-sided sync
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 185
- Avg merge
- 11h 49m
- Merged PRs (30d)
- 1
Description
I noticed that vDirSyncer sometimes has issues with certain CalDAV calendar events; maybe they are not fully CalDAV compliant, or SabreDAV does not support some features, for example I often get
- Unknown media type
- COUNT IN RRULE not a positive integer or
- This recurrence rule does not generate any valid instances.
If the source calendar is configured as read_only then it would be highly beneficial to create the target event even if there are fragments not supported, for example it creates an event but skips the "unknown media type" info.
Behaviour today:
- All events with whatever error are skipped and do not show up
- vDirSyncer will re-try on each and every sync again to process the VEVENT, with always the same error
Expected behaviour:
- Events with errors are still created, but with stripped content, and eventually a remark in the notes field.
Not syncing events then at all is a bigger issue as appointments get lost, even if otherwise only an unsupported attachment would be deleted.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the one-sided sync path and the handling of VEVENT parsing errors for read-only sources. Review how errors currently cause events to be skipped and check existing tests around synchronization and malformed calendar data. Done means supported portions of an event are created, unsupported content is omitted, and the error is recorded in the target notes without repeated unchanged failures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100