Post details: Gmail over IMAP hack

05/02/05

Permalink 03:32:56 pm, Categories: Python, 312 words   English (US)

Gmail over IMAP hack

So I've been pretty bored lately and came across libgmail, a Python library to access Gmail. It's very much a hack in that emulates a web client.

But I was thinking, why don't I use this to write an IMAP interface to Gmail? So a few days ago I started working on such a hack. I'm sort of working backwards on this. Normally people would read the RFC. But instead, I configured mutt for IMAP, and started looking at some packet captures. I figure mutt's probably the cleanest IMAP client. I made my proxy behave how mutt expected from a normal IMAP client. Every now and then I'd refer to the RFC, but not much :). In the backend, my proxy uses libgmail to get the needed info.

It's nowhere near completion, but I did get it to load up my inbox index in mutt. Here's a screenshot of my gmail account:

And here's a screenshot of mutt:

There are major problems in that when the message list is retrieved, all new messages are marked as seen. I don't see a way around this, since I need to get info on all messages to generate a proper index. I don't actually fetch the raw message to generate the message list, but instead 'fake' them by looking at the various info from the web interface (message date, from, to, subject, etc).

I'll probably post the code as soon as its in some usable state. But at that point, Google may have already released IMAP support :). It's a fun project nonetheless.

Update: A few people have asked about this, and unfortunately I've had no time to work on it. It's in a pretty much unusable state. It only works with mutt and you can only view messages in the Inbox (cannot send, change folders, etc). I've posted the code here, but be warned it's unusable.

Comments, Pingbacks:

Comment from: Person [Visitor]
Can you PLEASE send me the code for this hack. PLEASE!!
Permalink 06/16/05 @ 15:27
Comment from: Nick [Visitor]
Me too!!!
Thanks,
Nick
Permalink 06/17/05 @ 16:00
Comment from: fanfan [Visitor]
Please send the code....
Permalink 06/25/05 @ 05:34
Comment from: Pandora [Visitor]
please send a code (or hot it somewhere). thanks.
Permalink 07/29/05 @ 12:13
Comment from: Pandora [Visitor]
sorry, host it somewhere
Permalink 07/29/05 @ 12:16
Comment from: sjaak [Visitor]
i am a complete dummy with all this... so what is it, just another interface or is it a hack???
Permalink 08/08/05 @ 18:04
Comment from: Sunny Brunette [Visitor]
Hey Pal need your help .you look like genius , you can help me.Please Mail me if you get time.I will wait.Its Urgent.
Permalink 06/15/06 @ 12:54
Comment from: Sunny Brunette [Visitor]
Hi Pal I desperately Need your Help.PLease Contact me if you can.Thanks
Permalink 06/15/06 @ 12:59
Comment from: Erick Zurcher [Visitor]
Could you crack for me my gmail account. I forgot my password. I'm ready to reimburse you for your time/effort.
Permalink 03/23/07 @ 00:29
Comment from: Erick Zurcher [Visitor]
Forgot to write my e-mail address. erickzurcher@yahoo.com
Permalink 03/23/07 @ 00:30
Comment from: DumbDumbDumb [Visitor]
Umm, Why would you do this? Gmail already has native IMAP! You only need enable it in your gmail profile.

-a
Permalink 04/17/07 @ 08:11
Comment from: madhatter [Visitor]
Gmail ain't got IMAP. They introduced POP3. There is a help page telling you that there is no IMAP yet.
If you know of a hidden feature that's not visible to everybody please post a hint.
Permalink 09/07/07 @ 04:10
Comment from: saurabh [Visitor]
Gmail now officially supports IMAP for English(US) people :)
Permalink 10/25/07 @ 14:11
Comment from: lkraider [Visitor]
I'm looking for some kind of gmail IMAP proxy for message caching, since Thunderbird thinks downloading the same message over and over is cool :P

Do you think it would be feasible?
Permalink 05/11/08 @ 14:04
Comment from: mrk [Visitor]
please can u send me the code
Permalink 05/14/10 @ 11:57

Leave a comment:

 
 

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a

Viraj's Weblog

This is my personal blog. The views expressed on these pages are mine alone and not those of my employer.

August 2010
Mon Tue Wed Thu Fri Sat Sun
<<  <   >  >>
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          

Search

Categories


Misc

Syndicate this blog XML

What is RSS?

powered by
b2evolution