Daily Archive for November 7th, 2007

Patching libgmail to Work with the New Gmail Interface

Google has heavily modified the Gmail interface fairly (more AJAX, fewer page refreshes), heavily breaking libgmail. Fortunately, though, the folks at Google have kept the old interface. A quick patch will modify libgmail to use this old interface again.

  1. Download my patch here.
  2. cd to the directory containing libgmail. It might be located at /usr/lib/python-2.5/site-packages or /usr/local/lib/python-2.5/site-packages (or python-2.4 if you still have version 2.4). You’ll need su, obviously, unless you run your system as root.
  3. Patch with: patch libgmail.py libgmail.patch
  4. Test your scripts that use libgmail.py.

Until the developers of libgmail update their code, this will suffice. I haven’t tested the patch on older versions of libgmail (I’m using the newest version), but patch should at least report a fuzzy match.

By the way, I have found the next programming language that I intend to learn.