How to use Google Calendar integration with FossaMail

Support topics for the mail/news/chat client
User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35402
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

How to use Google Calendar integration with FossaMail

Unread post by Moonchild » 2015-02-08, 22:55

Since this seems to be a big thing for FossaMail users and documentation is spread rather thin on the 'net, here's a howto by yours truly!

FossaMail comes with a calendar add-on as an extension, called "lightning", available for download from the same location as the mail/news/chat client.

Important note:
Lightning's on-line integration function was not operational in 25.1.0, due to a discrepancy in the http module when the chat core was upgraded.
This should be fixed in 25.1.1! You won't be able to apply the information in this howto in 25.1.0 - please update.


You can integrate with Google Calendar in several ways. they offer iCal support, although they do not allow you to create/edit with it (it's read-only :( ), you can use CalDAV, or you can use the Google Calendar Provider add-on in tandem with lightning. In this howto, I will focus on the CalDAV, since iCal is very limited in read-only mode, and is straightforward to set up if you want it, from the New Calendar wizard. I may add a section for the Google Calendar Provider add-on if it's needed/desired.

Using CalDAV

How do I set this up?
  1. First, you need to gather some information from Google Calendar, namely the "Calendar ID". If you only use one Google Calendar or just want to synchronize with your primary calendar, this ID will be your google e-mail address.
    If you use multiple calendars and want to pick a specific non-primary calendar, you need to find your calendar ID on the Google Calendar website: in the pull-down menu next to the calendar name, select Calendar Settings. On the resulting page, the calendar ID is shown in a section labelled Calendar Address (after buttons for html/ical/xml). For secondary calendars this is usually in the form of a_long_hash@group.calendar.google.com - copy this to your clipboard.
  2. In FossaMail's lightning Calendar view (Ctrl+Shift+C, or "Calendar" in the "Events & Tasks" menu) right-click on the tree view with your calendars (left-hand pane) and select "New Calendar...".
  3. In the "Create New Calendar" wizard, select, in Locate your calendar "On the Network" and click Next.
  4. Now, select CalDAV as the calendar format to make the connection.
  5. In the location field, put the following URL:

    Code: Select all

    https://apidata.googleusercontent.com/caldav/v2/CALENDAR_ID/events
    Replace CALENDAR_ID with the Calendar ID you have from step 1 (or your gmail address if it's just your primary calendar you want)
  6. Select "offline support" if you want to be able to change your calendar when not connected to Google servers (this may cause a large download if you have a lot of events already stored in your Google Calendar). Keep in mind that working off-line can be tricky.
  7. Click next, and give the calendar a name for in your list and optional color.
  8. Click next again, and you will be prompted to log in to Google, and then give permission to Lightning to access your calendar on-line.
Potential issues:

The Google Login popup (step 8) complains that cookies are not supported.
Go to FossaMail options, Security, Web Content, and check "Accept cookies from sites", keeping them "until they expire"


Resources:
https://developers.google.com/google-apps/calendar/caldav/v2/guide#connecting_to_googles_caldav_server
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked