You are not logged in.

#1 2010-12-13 07:55:03

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Offline program for google apps

Hello guys,

I'm using the google apps gmail, calendar and docs very intensively and would like to have an offline copy on my system. Is there a program that synchronises those data, primary my calendar?

Regards

Last edited by orschiro (2010-12-13 07:55:17)

Offline

#2 2010-12-13 21:39:21

Leviathan1
Member
Registered: 2010-11-24
Posts: 19

Re: Offline program for google apps

For e-mail, there is plenty of choice. I use claws-mail myself.
Notable ones or KMail, Evolution, Mozilla Thunderbird, mutt,...

For calender, there is Korganizer (with the akonadi gcal resource plugin), Evolution, Mozilla Thunderbird with appropriate plugins...

If you just want the have a local copy for backup purposes, you can have an automated that script downloads the ical export file from the google web interface.

Something like this should work. Replace the url and the username/password.

#!/usr/bin/env python2

import mechanize
import zipfile
import os

url = 'https://www.google.com/calendar/exporticalzip'
username = 'johndoe@example.com'
password = 'xxxxxxxxxx'
outputfile = '/home/johndoe/google.ics'

br=mechanize.Browser()
br.open(url)
br.select_form(nr=0)
br['Email'] = username
br['Passwd'] = password
br.submit()
file = br.retrieve(url)
z = zipfile.ZipFile(file[0], 'r')
calname = z.namelist()[0]
of = open(outputfile, 'w')
of.write(z.read(calname))
of.close()
z.close()
os.unlink(file[0])

Offline

Board footer

Powered by FluxBB