Skip to content

CalDAV calendars

Calendar invitations arrive as email, but the appointment belongs in the calendar. The CalDAV integration closes that gap: accept an invitation, and YouniqMail files the appointment straight into your CalDAV calendar. Nextcloud, iCloud, Fastmail, Radicale, Baikal and other CalDAV servers qualify.

Invitations work without the integration too

Section titled “Invitations work without the integration too”

The basics are built in: incoming invitations (.ics) appear as a card with title, time, location, organizer and the buttons Accept, Maybe and Decline. Show attendees expands the guest list, Change response corrects an answer you already gave. The response goes to the organizer immediately as a standards-compliant email, with subject and text in the app’s language, without Undo send; if you are offline, it waits in the outbox.

Open in Calendar App opens the appointment in your system’s calendar app, with up to two reminders that you set under Settings → Mails → Calendar Invitation in Default reminders. That is also where you turn the cards off entirely. Every invitation YouniqMail writes into your CalDAV calendar gets the same reminders.

The CalDAV integration adds the automatic route: the entry in your calendar on the server, so the appointment also lives where your phone looks.

  1. Open Settings → Integrations → CalDAV Calendar and turn on Enable CalDAV Calendar.
  2. Choose Add account and fill in Name, Server URL, Username and Password. As Auth Method, Basic Auth fits almost every time.
  3. Discover fetches the server’s calendars. The first one becomes the default; pick another with Set as default.
  4. Turn on Automatically add accepted invitations to default calendar.

Test only checks the credentials. An account is saved only once it has a name, server URL, username and password; until then the entry says “Not saved yet”. You find the server URL in your provider’s documentation under the keyword CalDAV. For Nextcloud it ends in /remote.php/dav; iCloud requires an app-specific password, just like in account setup. If the address starts with http://, YouniqMail warns you that your sign-in and your events go to the server unencrypted.

Google only accepts CalDAV with an OAuth access token. YouniqMail does not obtain such a token itself: you would have to get one and paste it into the password field with the Bearer Token method. Such tokens expire after a short time, and YouniqMail does not renew them, so Google refuses the sign-in after that. For everyday use with a Google calendar, the integration is therefore not suitable.

From then on it runs on the side: accept or answer with Maybe, and the appointment lands in the default calendar, with time, location and attendees from the invitation. Decline, and YouniqMail removes the appointment of this invitation from the default calendar, even if YouniqMail did not put it there. If the organizer sends an updated invitation, your next response replaces the entry instead of creating a second one. Invitations that only change a single occurrence of a series are not transferred, so the stored series stays untouched.

With the integration connected, the button on the card is called Add to Calendar and enters the appointment into the default calendar of every account, even before you answered; an answer you already gave is part of the entry. Because the entry belongs to the invitation, adding it again replaces the existing entry instead of creating a second one. For a cancelled meeting the button still opens the calendar app.

Some providers, such as iCloud or Nextcloud, already file invitations into the calendar on their own. Then you do not need the switch; the server rejects a second entry for the same invitation anyway, and YouniqMail reports that with Calendar not updated.

For rules there is the action Add to calendar. It writes into the calendar you pick in the rule, regardless of your answer and of the switch for accepted invitations. If the email contains an invitation, it transfers it; a cancellation from the organizer removes the appointment. Emails without an invitation are entered as a one-hour appointment at the time of the email, with the subject as title and without reminders. Each email gives exactly one appointment: running the rule again, also on the same email in another folder, does not change it, even if you moved or renamed it in the calendar.

An appointment that is already in the calendar is changed only for the sender it came from: the organizer of the appointment, or the sender of the email YouniqMail created the entry from. YouniqMail keeps that address in the entry. Everyone invited knows the ID of an appointment; without this check, an email from any of them could replace or delete it. If an invitation or a cancellation comes from somebody else, the entry stays as it is and YouniqMail tells you, for a rule as well as after your answer. With Add to Calendar you can still replace the entry; YouniqMail asks first and names the organizer of the existing appointment and the sender of the email. An older invitation does not set a newer entry back.

If you are offline or the calendar server is not answering, YouniqMail keeps the change and makes it as soon as the server is reachable again, no matter when the reply mail leaves the outbox. While something is waiting, the invitation card says so, and the account under Settings → Integrations → CalDAV Calendar shows a note with Try again now and Discard. If you turn the integration off, delete the account or switch off the automatic adding, YouniqMail discards the changes waiting for it without asking. If the server refuses the sign-in or the password is missing, YouniqMail tells you right away, once per account; the changes wait until you have corrected the credentials. If the server refuses a change for good or does not accept it within a week, YouniqMail tells you as well.