calendar/README.md

69 lines
5.5 KiB
Markdown
Raw Normal View History

2021-08-25 10:18:36 +00:00
## TLDR
2022-04-25 12:35:02 +00:00
Contrary to other CalDAV forks, this one is based on the original calendar kolab-roundcube-plugins-mirror/calendar (which means the calendar itself is most up to date) and adds CalDAV capability on top of it. As far as I am aware, it is the most up to date version with the most bugfixes (April 2022).
(installation instructions are at the bottom)
2021-08-25 10:18:36 +00:00
## Why is this needed?
Unfortunately, the current situation about CalDAV support in roundcube is quite confusing. There are several plugins (/Forks) around that have CalDAV support but from what I found, all of them are slightly buggy or do not work anymore.
2022-04-25 12:35:02 +00:00
All of them are based on <https://gitlab.awesome-it.de/kolab/roundcube-plugins>, a very old Fork which (as far as I can tell) is based on a version of kolab-roundcube-plugins-mirror/calendar that is over 10 years old.
None of these forks incorporate updates from the original calendar, meaning it is only a matter of time until they are not compatible with roundcube anymore. I tried to change as little as possible in the original codebase and only added caldav support as a new driver - which means new updates from the roundcube team should be easy to incorporate.
2021-08-25 10:18:36 +00:00
## History of other Forks so far
2021-08-25 10:18:36 +00:00
### kolab-roundcube-plugins-mirror/calendar :
This is the original calendar that all other forks are based on. It is working very well and is actively maintained but unfortunately, it does not have caldav support
2021-08-25 10:18:36 +00:00
### [https://gitlab.awesome-it.de/kolab/roundcube-plugins](awesome-it) :
2022-04-25 12:35:02 +00:00
This is the "original fork" of the calendar. A lot of work was put into it and caldav is almost fully implemented. Unfortunately it has a few bugs / problems and most of them were not fixed in any other forks:
2021-08-25 10:18:36 +00:00
- The birthday calendar is not supported by the caldav driver.
- While the backend (mostly) supports adding all calendars from a dav-url, the front-end does not. That makes calendar handling a bit clunky and confusing.
- Calendar colors have to be set manually and can not be loaded from DAV.
- Adding and Removing calendars directly in the external source is not supported.
- It prepares the codebase so multiple drivers can be used. But as far as I can tell, this feature is not used in the code and also not really supported by the front-end. This means, that it still only uses one driver but as a result adds a lot of unnecessary changes to the original codebase.
2021-08-25 10:18:36 +00:00
### fasterit/roundcube_calendar :
A fork of awesome-it to make it work with blind-coder/rcmcardav (a CardDAV plugin) by packing the outdated version of sabre/DAV inside the plugin. But it hasn't been maintained and is still based on a very outdated version of kolab-roundcube-plugins-mirror/calendar.
2021-08-25 10:18:36 +00:00
### texxasrulez/calendar :
2022-04-25 12:35:02 +00:00
This is a fork of awesome-it with a few bugfixes to make it work with roundcube 1.3 but its maintainer does not seem to be active anymore.
2021-08-25 10:18:36 +00:00
It is the most current fork of the original CalDAV fork. But unfortunately, it is treated as its own project (which means that it doesn't have any updates from the original calendar) and is focused primarily on nextcloud (which I don't really understand since nextcloud is using CalDAV anyway).
2022-04-25 12:35:02 +00:00
Also, on top of still having the original bugs included, it is also still based on an ancient sabre/DAV version.
2021-08-25 10:18:36 +00:00
### texxasrulez/caldav_calendar :
2022-04-25 12:35:02 +00:00
That one confuses me. It is from texxasrulez as well and seems to be the basis of Texxas but was abandoned in favour of texxasrulez/calendar. But it seems to be only a few commits behind texxasrulez/calendar.
2022-04-25 12:35:02 +00:00
### What is this fork doing differently?
2021-08-25 10:18:36 +00:00
All CalDAV forks are based on faster-it which has a very different codebase to the original calendar because of its unfinished "multiple-driver" support. That makes it very difficult to get updates from the original calendar.
2022-04-25 12:35:02 +00:00
So I decided to ditch the "multiple driver" support (which isnt used anywway) and keep most changes in the CalDAV driver itself to stay compatible with the original calendar. I also added a ton of updates:
- Based on the most recent version of the calendar plugin.
- Uses the most recent version of sabre/dav (4.1.5)
2021-08-25 10:18:36 +00:00
- Only minor changes in the existing code base, meaning that future updates of the calendar plugin should be able to be merged quite easily.
2022-04-25 12:35:02 +00:00
- Added support for the birthday calendar.
2021-08-25 10:18:36 +00:00
- Changed the behaviour from "per calendar" to "per CalDAV source".
- All calendars from a source will be automatically added.
- Calendars can be created and deleted directly at the CalDAV source.
2021-09-28 19:23:22 +00:00
- ics support included.
2022-04-25 11:59:44 +00:00
### Why does this need a fork of libcalendaring?
2022-04-25 12:35:02 +00:00
The original libcalendaring still uses sabre/vobject 3.5.3
2022-04-25 11:59:44 +00:00
In order to be compatible with other plugins (and because version 3.5.3 is ancient), I updated it to version 4.1.5
The problem is, that sabre/vobject makes use of DateTimeImmutable which libcalendaring does not expect.
2022-04-25 12:35:02 +00:00
It only needs minor changes to account for that, but unfortunately the roundcube-project does not accept pull requests...
2022-04-25 11:59:44 +00:00
2021-09-28 19:23:22 +00:00
### Installation
2022-04-25 12:35:02 +00:00
I havent published this as a plugin yet, so you have to instruct composer to install directly from github. Run the following commands in the roundcubemail folder
2021-09-28 19:23:22 +00:00
(If you get an error that the "API rate limit" has been exceeded and you need an GitHub OAuth token, just follow the instructions in the console - you will need a GitHub account).
```
cd /pathTo/roundcubemail
composer config repositories.calendar vcs https://github.com/JodliDev/calendar
composer config repositories.libcalendaring vcs https://github.com/JodliDev/libcalendaring
composer config minimum-stability dev
composer require kolab/calendar
bin/initdb.sh --dir=plugins/calendar/drivers/caldav/SQL
```