Skip to content

Propagate subscribed calendars to CalDAV clients #17754

Closed

Description

@Sesivany

Is your feature request related to a problem? Please describe.
I'm using the Nextcloud Calendar mostly in desktop/mobile clients. I'm subscribed to several remote calendars via ical. I can see them in the web interface, but I can't in the clients.

Describe the solution you'd like
It would be great if the calendars I'm subscribed to got propagated to CalDAV clients just like calendars that are located in my Nextcloud.

Describe alternatives you've considered
The alternative is to subscribe to the calendars in each client, but that's additional work in the initial setup and maintenance. I'd rather set them up in one location for all clients.

Additional context
Proprietary competition (Google Calendar, iCloud) supports it.

Activity

  1. tcitworld commented on Oct 30, 2019

    @tcitworld
    Member

    DAVx5 can automatically fetch subscriptions from Nextcloud, if you have ICSx5 installed.

    Anyway subscriptions are now cached by Nextcloud server, we just need to expose them to clients.
    @georgehrke do we transfer and keep this issue in server?

  2. georgehrke commented on Oct 30, 2019

    @georgehrke
    Member

    Yes, let's move it to the server.

    It's basically about filling this array: https://github.com/nextcloud/server/blob/master/apps/dav/lib/CalDAV/WebcalCaching/Plugin.php#L42

  3. BernieO commented on Nov 3, 2019

    @BernieO
    Contributor

    I just wondered, because if I subscribe to an external webcal calendar in the webinterface of Nextcloud, it is shown (including all events) on my iOS devices. But on a closer look, it looks like iOS fetches the webcal link from Nextcloud via caldav and then directly loads the calendar events from the external resource.

    A change in a subscribed calendar is shown in iOS while the Nextcloud calendar-app still shows old data. Obviously the Nextcloud calendar-app doesn‘t refresh the calendar as often as my iOS devices.

    So it looks like Nextcloud pushes the webcal link to the clients instead of the cached events.

    Nextcloud 16.0.5
    iOS 13.2

  4. tcitworld commented on Nov 4, 2019

    @tcitworld
    Member

    A change in a subscribed calendar is shown in iOS while the Nextcloud calendar-app still shows old data. Obviously the Nextcloud calendar-app doesn‘t refresh the calendar as often as my iOS devices.

    Subscribed calendars are currently cached in your browser for two hours when you're using the Calendar app.

  5. akoyaxd commented on Jan 9, 2020

    @akoyaxd

    I would love this to be implemented. This would improve the experience on Gnome pretty well, especially when you use multiple computers!

  6. msrn commented on Apr 28, 2021

    @msrn
    Contributor

    Has there any work been done on this? Would love to have this.

  7. tcitworld commented on Apr 28, 2021

    @tcitworld
    Member

    This feature is a fix for CalDAV clients that doesn't support discovering subscriptions from the endpoint (like DAVx⁵ does for instance).
    We can only allow some clients (based on their user-agent) if we know what they are, so please post the clients you use (and if you can, their user-agent).

  8. msrn commented on May 21, 2021

    @msrn
    Contributor

    Currently I'm using Nextcloud Contacts and Calendar with Windows 10 Contacts/Calendar app. When initiating sync, these are the request made to server by the application.

    "PROPFIND /remote.php/dav/principals/users/{USER}/ HTTP/1.1" 207 1976 "-" "MSFT-WIN-3/10.0.19041 (gzip)"
    "PROPFIND /remote.php/dav/addressbooks/users/{USER}/ HTTP/1.1" 207 1363 "-" "MSFT-WIN-3/10.0.19041 (gzip)"
    "PROPFIND /remote.php/dav/principals/users/{USER}/ HTTP/1.1" 207 1217 "-" "MSFT-WIN-3/10.0.19041 (gzip)"
    "PROPFIND /remote.php/dav/addressbooks/users/{USER}/ HTTP/1.1" 207 1363 "-" "MSFT-WIN-3/10.0.19041 (gzip)"
    "PROPFIND /remote.php/dav/principals/users/{USER}/ HTTP/1.1" 207 1341 "-" "MSFT-WIN-3/10.0.19041 (gzip)"
    "PROPFIND /remote.php/dav/calendars/{USER}/ HTTP/1.1" 207 1772 "-" "MSFT-WIN-3/10.0.19041 (gzip)"
    "PROPFIND /remote.php/dav/principals/users/{USER}/ HTTP/1.1" 207 1210 "-" "MSFT-WIN-3/10.0.19041 (gzip)"
    "PROPFIND /remote.php/dav/calendars/{USER}/ HTTP/1.1" 207 1772 "-" "MSFT-WIN-3/10.0.19041 (gzip)"

    User-agent being MSFT-WIN-3/10.0.19041
    My current Windows version is 2004. Build 19041.985
    Windows 10 contacts app version: 10.1909.12456.0
    Windows 10 calendar app version: 16005.13426.20920.0

    It seems that the user-agent string is tied to the build version of Windows 10. Would be it appropriate to just match MSFT-WIN-3 with regex?

  9. tcitworld commented on May 21, 2021

    @tcitworld
    Member

    Would be it appropriate to just match MSFT-WIN-3 with regex?

    Seems fine. It would be nice to make sure that it's different for the Outlook Caldav Synchronizer. https://caldavsynchronizer.org

  10. msrn commented on May 21, 2021

    @msrn
    Contributor

    Would be it appropriate to just match MSFT-WIN-3 with regex?

    Seems fine. It would be nice to make sure that it's different for the Outlook Caldav Synchronizer. https://caldavsynchronizer.org

    CalDavSynchronizer has the following UserAgent CalDavSynchronizer/4.1

  11. msrn commented on May 22, 2021

    @msrn
    Contributor

    Would be it appropriate to just match MSFT-WIN-3 with regex?

    Tested this to working with expression /^MSFT-WIN-3/. During sync now Windows 10 Calendar shows subscribed calendars from Nextcloud.

    Should I submit PR with the addition of this to Plugin-php? @tcitworld

  12. tcitworld commented on Jun 6, 2021

    @tcitworld
    Member

    Please do.

  13. 2 remaining items

  14. stif commented on Jul 22, 2021

    @stif

    Hm i am quite sure the ical calendars added to NC show up in Gnome Calendar 3.38 after hitting "synchronize calendars".
    Also after manually deleting them and then hitting synchronize calendars, they appeared again with their standard name..

    Anyway, thanks for answering, i will add them manually..

  15. msrn commented on Nov 6, 2021

    @msrn
    Contributor

    For Akonadi (KIO) based clients on KDE apps.

    Mozilla/5.0 (X11; Linux x86_64) KIO/5.86 akonadi_davgroupware_resource_1/5.18.2 (21.08.2)

    Filling ENABLE_FOR_CLIENTS with this useragent allows the client to see subscribed calendars.

    I can make a PR of this, but should we match only the KIO part with regex?

  16. msrn commented on Nov 6, 2021

    @msrn
    Contributor

    Not sure if it fits here..

    I was able to automatically get subscribed calendars from NC in Gnome Calendar 3.38. But after a upgrade to Gnome 40 and a fresh user home (cleaned all dot-folders and files), and adding Nextcloud to the "Online Accounts" of Gnome, the externally subscribed ical calendars are not showing up any more (they also do not appear after hitting "synchronize calendars").

    This is what nextcloud webserver receives when hitting "synchronize calendars": PROPFIND /remote.php/caldav/calendars/<user>/personal/ HTTP/1.1" 207 410 "-" "Evolution/3.40.3"

    Evolution was discussed some time ago in other issue #1497 (comment)

  17. fuzzy7k commented on Dec 9, 2022

    @fuzzy7k

    This feature is a fix for CalDAV clients that doesn't support discovering subscriptions from the endpoint (like DAVx⁵ does for instance). We can only allow some clients (based on their user-agent) if we know what they are, so please post the clients you use (and if you can, their user-agent).

    It is more than that. It is a feature in it's own right. If I had 20 subscriptions that means my mobile would need to contact 20 different servers, and depending on the update frequency of the client in use, that could mean a lot of data and unnecessary polling.

  18. fuzzy7k commented on Dec 9, 2022

    @fuzzy7k

    I see why this issue has gone nowhere. Developers have implemented a conflicting, legitimate function that accomplished one desired end goal, getting the calendar onto a client app.

    Unfortunately people have other use cases that require the method originally asked for in #1497.

    There is an elegant way to implement this feature as to not conflict with the one developers initially chose.
    Why not add a new "import" option to an already created calendar, right next to the "export" option. This would implicitly add the remote calendar to the target calendar so that when a user syncs the target calendar, they will be getting cached data from all remote calendars that have been added under the target.

    Going one step further, it would be nice to be able to name the calendars, as is done now, but with the alteration that events that show up on the target calendar do so with the calendar name prepended to the event title. No name, no alteration to the event title.

    For instance, I have various jobs that expose my work schedules and I would like to be able to share my "work schedule" with family. That work schedule would have all of my jobs combined on one calendar. One job names events with a location, another with my name, etc. thus the desire for prepending a calendar name to the event title.

  19. msrn commented on Aug 7, 2024

    @msrn
    Contributor

    I don't think this is completed. PR #45841 concerns only specific set of clients, and doesn't apply to all.

  20. Holbormon commented on Aug 8, 2024

    @Holbormon

    I don't think this is completed. PR #45841 concerns only specific set of clients, and doesn't apply to all.

    Agreed. Personally, I'm still waiting for propagation to DAVx⁵ clients, as per the rationale given above #17754 (comment). One more advantage of doing this would be that one wouldn't need ICSx⁵ anymore. Currently, DAVx⁵ detects subscriptions but does not handle them.

  21. tcitworld commented on Aug 8, 2024

    @tcitworld
    Member

    One more advantage of doing this would be that one wouldn't need ICSx⁵ anymore. Currently, DAVx⁵ detects subscriptions but does not handle them.

    This could change : https://fosstodon.org/@davx5app/111210536789015286

  22. Holbormon commented on Aug 13, 2024

    @Holbormon

    One more advantage of doing this would be that one wouldn't need ICSx⁵ anymore. Currently, DAVx⁵ detects subscriptions but does not handle them.

    This could change : https://fosstodon.org/@davx5app/111210536789015286

    Good to know, thanks (though the relevant issue over at DAVx⁵ seems stale bitfireAT/davx5-ose#439)

    However, calendar propagation is still desirable for both performance and privacy reasons, so it's a shame this issue was closed...

  23. BICH0 commented on Feb 19, 2026

    @BICH0

    Has this been addressed? Is there any update regarding this matter?

  24. dflvunoooooo commented on Jul 16, 2026

    @dflvunoooooo

    This is still not fixed, so the issue should be reopened. In thunderbird fore example the subscribed calenders are not even listed.

  25. github-actions commented on Nov 4, 2026

    @github-actions
    Contributor

    This issue has been automatically locked because it has been closed for more than 14 days. As we do not monitor closed issues, we are locking this issue to prevent further comments from getting lost in the noise.
    Please open a new issue if you have a similar problem instead. For general discussions, please use our forum: https://help.nextcloud.com

  26. locked as resolved and limited conversation to collaborators on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions