# Writing IMAP-\>GMail proxy... Where to go for IMAP RFC help?

**URL:** <https://www.ruby-forum.com/t/writing-imap-gmail-proxy-where-to-go-for-imap-rfc-help/73088>\
**Category:** Ruby\
**Created:** [October 21, 2006, 4:01am UTC](https://www.ruby-forum.com/t/writing-imap-gmail-proxy-where-to-go-for-imap-rfc-help/73088 "2006-10-21T04:01:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ratchetcat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Post date:** [October 21, 2006, 4:01am UTC](https://www.ruby-forum.com/t/writing-imap-gmail-proxy-where-to-go-for-imap-rfc-help/73088/1 "2006-10-21T04:01:57Z")

</div>

Hey everyone, this is only a partial ruby question… I discovered a  
gmail library on RubyForge … I was like, why hasn’t anyone written an  
IMAP proxy for GMail yet?

In just one day, I’ve implemented LOGIN, LOGOUT, NOOP(tehehe), and  
LIST(partially). That being said, does anyone here actually understand  
the IMAP commands well enough the could help out?

I’m reading the RFC and packet-sniffing the connection on my mail  
client, but there’s a few commands, FETCH, and UID that i’m having  
trouble figuring out what the heck they do.

Can anyone point me to an IMAP command tutorial or lend me some help  
explaining the syntax of a couple of commands? Writing a IMAP server is  
pretty poopy.

---

<div class="post-metadata">

**Author:** ![ratchetcat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Post date:** [October 21, 2006, 4:24am UTC](https://www.ruby-forum.com/t/writing-imap-gmail-proxy-where-to-go-for-imap-rfc-help/73088/2 "2006-10-21T04:24:11Z")

</div>

On 10/20/06, Jon Fi [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> client, but there’s a few commands, FETCH, and UID that i’m having  
> trouble figuring out what the heck they do.
> 
> Can anyone point me to an IMAP command tutorial or lend me some help  
> explaining the syntax of a couple of commands? Writing a IMAP server is  
> pretty poopy.
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

I’m unaware that Gmail even supports access by IMAP clients. Do you know  
for  
sure that it does?

---

<div class="post-metadata">

**Author:** ![ratchetcat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Post date:** [October 21, 2006, 4:36am UTC](https://www.ruby-forum.com/t/writing-imap-gmail-proxy-where-to-go-for-imap-rfc-help/73088/3 "2006-10-21T04:36:22Z")

</div>

Hi

> I’m unaware that Gmail even supports access by IMAP clients. Do you know  
> for  
> sure that it does?  
> It does not, He is writing a proxy for it to suppport it.

---

<div class="post-metadata">

**Author:** ![ratchetcat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Post date:** [October 21, 2006, 5:39am UTC](https://www.ruby-forum.com/t/writing-imap-gmail-proxy-where-to-go-for-imap-rfc-help/73088/4 "2006-10-21T05:39:51Z")

</div>

Hi,

> In just one day, I’ve implemented LOGIN, LOGOUT, NOOP(tehehe), and

If you know python, iGmail :: An IMAPv4 gateway to  
Gmail([iGmail :: An IMAPv4 gateway to Gmail](http://www.butterfat.net/igmail/)) may help you.

Regards,

Park H.

---

<div class="post-metadata">

**Author:** ![ratchetcat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Post date:** [October 21, 2006, 5:07pm UTC](https://www.ruby-forum.com/t/writing-imap-gmail-proxy-where-to-go-for-imap-rfc-help/73088/5 "2006-10-21T17:07:58Z")

</div>

On 10/20/06, Chris C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi
> 
> > I’m unaware that Gmail even supports access by IMAP clients. Do you know  
> > for  
> > sure that it does?  
> > It does not, He is writing a proxy for it to suppport it.

It would have to be a gateway rather than a proxy. (Of course these  
terms  
aren’t precisely defined.) You’d basically have to gate IMAP to POP and  
store all the additional state in an intermediate server. Is that the  
idea  
here?

---

<div class="post-metadata">

**Author:** ![ratchetcat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Post date:** [October 21, 2006, 8:58pm UTC](https://www.ruby-forum.com/t/writing-imap-gmail-proxy-where-to-go-for-imap-rfc-help/73088/6 "2006-10-21T20:58:57Z")

</div>

Francis C. wrote:

> On 10/20/06, Chris C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Hi
> > 
> > > I’m unaware that Gmail even supports access by IMAP clients. Do you know  
> > > for  
> > > sure that it does?  
> > > It does not, He is writing a proxy for it to suppport it.
> 
> It would have to be a gateway rather than a proxy. (Of course these  
> terms  
> aren’t precisely defined.) You’d basically have to gate IMAP to POP and  
> store all the additional state in an intermediate server. Is that the  
> idea  
> here?

Nope, better. The idea is a IMAP interface to gmail. Call it a gateway  
or a proxy, either way it’s single threaded(right now) and runs for  
localhost connections only. Your GMail password is your IMAP password.

Thank you for the suggestions, I do not understand python very well but  
i’ll take a look. Would any GMail users be interested in helping out  
develop this if I threw it out on rubyforge? Not really worth the hassle  
if no one is gonna use it… Eventually I want a status GUI and a bunch  
of other stuff

---

<div class="post-metadata">

**Author:** ![ratchetcat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Post date:** [October 21, 2006, 11:02pm UTC](https://www.ruby-forum.com/t/writing-imap-gmail-proxy-where-to-go-for-imap-rfc-help/73088/7 "2006-10-21T23:02:03Z")

</div>

> Nope, better. The idea is a IMAP interface to gmail. Call it a gateway  
> or a proxy, either way it’s single threaded(right now) and runs for  
> localhost connections only. Your GMail password is your IMAP password.
> 
> Thank you for the suggestions, I do not understand python very well but  
> i’ll take a look. Would any GMail users be interested in helping out  
> develop this if I threw it out on rubyforge? Not really worth the hassle  
> if no one is gonna use it… Eventually I want a status GUI and a bunch  
> of other stuff

Hell, I’d use it!

Kash

---

<div class="post-metadata">

**Author:** ![ratchetcat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Post date:** [October 21, 2006, 7:36pm UTC](https://www.ruby-forum.com/t/writing-imap-gmail-proxy-where-to-go-for-imap-rfc-help/73088/8 "2006-10-21T19:36:19Z")

</div>

On Sun, Oct 22, 2006 at 12:06:40AM +0900, Francis C. wrote:  
} On 10/20/06, Chris C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:  
} \>  
} \>Hi  
} \>\> I’m unaware that Gmail even supports access by IMAP clients. Do you  
know  
} \>for  
} \>\> sure that it does?  
} \>It does not, He is writing a proxy for it to suppport it.  
}  
} It would have to be a gateway rather than a proxy. (Of course these  
terms  
} aren’t precisely defined.) You’d basically have to gate IMAP to POP  
and  
} store all the additional state in an intermediate server. Is that the  
idea  
} here?

Er, if that’s the goal then I implemented it a couple of years ago. I  
use  
fetchmail to retrieve messages to my machine at home, which runs  
courier-imap to serve IMAP. No Ruby involved.

–Greg

---

<div class="post-metadata">

**Author:** ![ratchetcat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Post date:** [October 22, 2006, 1:37am UTC](https://www.ruby-forum.com/t/writing-imap-gmail-proxy-where-to-go-for-imap-rfc-help/73088/9 "2006-10-22T01:37:17Z")

</div>

Hi,

Kashia B. wrote:

> Hell, I’d use it!
> 
> Kash
> 
> –Using Opera’s revolutionary e-mail client: [http://www.opera.com/mail/](http://www.opera.com/mail/)

Hell, me too 🙂
