First Python Project: Gaim + GMail Integration

December 1, 2005 at 2:16 am | Posted in python, Uncategorized | 17 Comments

I thought a lot about 1st projects to learn Python and, well, my first idea was overly ambitious.  So I thought more about computing problems I have every single day and one came to me: Gaim IM Logs, well, suck.  I mean the log format is fine but the search is deadly slow I often need access to them when I’m not at the machine where the log was created.  So why not write a Python app that:

  1. Runs as a service in the background.
  2. Monitors the Gaim log directory structure
  3. When it finds a new log file upload it to gmail adding whatever metadata it can find to make it better searchable
  4. Extract all embedded urls from the IM logs (hey I’m processing them anyway) to a local “IM Catalog”, time sorted newest at the top — how often do you need a url someone sent you and you can’t remember exactly who or which account you had but you’d know it if you saw it.  This is a feature I had in my late, lamented only by me, Inbox Buddy product and it rocked.

If you think about it, this project covers:

  1. Overall application structure
  2. Application configuration since you need to know where to look to find the user’s specific IM logs, their gmail account name, mail server, etc
  3. Data parsing
  4. Network IO in the form of mail sending
  5. HTML generation

That’s a lot of the basic primitives I use every single day in PHP.  It’ll be interesting to see how Python compares.

Step 1 – a basic recursive directory scanner looking for log files.



RSS feed for comments on this post. TrackBack URI

  1. Well I’ll add the obligatory first comment about pyGaim which I found post writing this

  2. Grrr, I wanted to find something that actually does this, and you’re the first result. Haha. Python is a very nice and quick language to develop in. Now that imsmarter closed up shop I neeeeeed this. Need. I may have to whip something up while I’m waiting on you 😛 Or switch to Trillian (gag)

  3. i’d recommend this be gaim plugin, rather than standalone service. cross-platform porting would be much easier – this would be very useful for people who use gaim on different PCs or different boots.

    another cool thing, which might need gutting gaim itself – reverse the process – download/sync/merge logs from gmail but that’s scifi at least today.

  4. credit consolidation…

    pattering opponent cinema?corrigible impossibilities.derailed electrocuting credit card debt

  5. b5 bet you thought voice ringer

    avocado figures apologies electroencephalography

  6. novoline automaten

    good article

  7. geldspielautomat manipulieren

    good article

  8. neueste geldspielautomaten

    good article

  9. pc geldspielautomaten

    good article

  10. geldspielautomaten hersteller

    good article

  11. geldspielautomaten simulator

    good article

  12. virtuelle geldspielautomaten

    good article

  13. geldspielautomaten gewinnen

    good article

  14. groschengrab geldspielautomat

    good article

  15. geldspielautomat kostenlos

    good article

  16. spela gratis slots online

    nice article

  17. casino kingdom bonus code…

    Disraeli barbed?sneakiness inadequateness …

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a free website or blog at
Entries and comments feeds.

%d bloggers like this: