Direct export to ics from code

RESOLVED INVALID

Status

Calendar
Import and Export
--
enhancement
RESOLVED INVALID
8 years ago
8 years ago

People

(Reporter: m.koot, Unassigned)

Tracking

Details

(Reporter)

Description

8 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( )
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.2.12pre) Gecko/20101104 Lightning/1.0b2.103i Thunderbird/3.1.6pre

I'm working on an extension to automatically export the personal calendar as an ics file from code.

I am aware of the autoexport addon (https://addons.mozilla.org/en-us/thunderbird/addon/3740/), but this addon is outdated (it has some flaws on TB3) and it uses several streams/listeners to get the job done.
There is a direct way to export using a rightclick action on ones Personal calendar and choosing "Export calendar..." in the contextmenu. It would be a lot more robust if one could call this function directly from code.
I've been looking some in thunderbird's source code and noticed this code in calendar-common-sets.js:

case "calendar_export_command":
   exportEntireCalendar();
   break;

I'm guessing exportEntireCalendar(); would be the function I'm looking for, but it doesn't seem to be accessible however.
Is there a way to access this function from code anyway, or could this function be made public?
Thanks.

Reproducible: Always
(Reporter)

Updated

8 years ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
Resolution: FIXED → INVALID
You need to log in before you can comment on or make changes to this bug.