Writing a Perl Script To Access Thunderbird Data
I attended a meetup one day. Among the ways to receive a reminder,
the Meetup site offers a file to download and to save to Microsoft
Outlook. The same file can be imported to the Thunderbird's
Calender. When I tried to choose Thunderbird as the application with
which to open the attached calendar file, I found that Thunderbird
attaches the file to an outgoing message. Decided to write a script.
Writing a script is my preferred way to do the task. I can choose
my script from my browsser later, without dealing with the difficulties
of developing an add-on.
Thunderbird stores tasks and events in an SQLite file. SQLite is just
what you think it is if you know SQL: lightweight SQL.
More info about SQLite can be found at (https://sqlite.org/index.html)
To access the database from Perl, you'll need to modules to be
They can be easily installed using the 'cpan' utility.
Installed them as root if you are using a UNIX-like system as follows:
$ cpan DBI
$ cpan DBD::SQLite
Info on how to work with the modules can be found at https://www.cpan.org/
(Do not type the '$' because it replaces the shell prompt.)
The calender file with the '.ics' extension is an ASCII file whose format
is described in the RCS 5545 document. You can find a description of the
format at (https://tools.ietf.org/html/rfc5545).
I hope it will be available on GitHub pretty soon.