Gmail enables IMAP!
You can retrieve your Gmail messages with a client or device that supports IMAP, like Microsoft Outlook or Apple Mail.To enable IMAP in your Gmail account:
1. Log in to your Gmail account.
2. Click Settings at the top of any Gmail page.
3. Click Forwarding and POP/IMAP.
4. Select Enable IMAP.
5. Configure your IMAP client* and click Save Changes.
Via Google Help Page
I now have my iPhone and Apple Mail set up to use IMAP. This is awesome.