Google Mail supports IMAP IDLE

by Volker Weber

Maybe this is old news to you. I just wasn't sure whether Google Mail supports IMAP IDLE, so I asked the server:

openssl s_client -crlf -quiet -connect imap.gmail.com:993

to which it replied:

depth=1 /C=US/O=Google Inc/CN=Google Internet Authority
verify error:num=20:unable to get local issuer certificate
verify return:0
* OK Gimap ready for requests from xx.xxx.xxx.xx l19if11972848fgb.2

Then I asked:

C01 CAPABILITY

C01 is arbitrary, you can also say a001 or whatever you like. In any case, the server said:

* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA XLIST CHILDREN XYZZY
C01 OK Thats all she wrote! l19if11972848fgb.2

IDLE. That means you get instant delivery of your Google Mail, if you have an email client capable of IMAP IDLE, like Mail.app on the Mac for instance:

mailappimapidle

Comments

Well this makes sense. I've noticed how my Thunderbird client instantly shows new GMail e-mails (for example when I conduct a Web transaction with notification). Now I know why.

Arthur Fontaine, 2009-05-28

I thought that this was well-known for a long time. Or wasn't it?

Daniel Haferkorn, 2009-05-28

yeah, the BlackBerry Internet Service for example makes heavy use of this feature because emails are getting a lot faster to the device

Thomas Einwaller, 2009-05-28

Daniel, I wasn't sure. And Thomas, I don't think BIS uses IMAP IDLE.

Volker Weber, 2009-05-28

BIS doesn't use IMAP IDLE.

BTW Volker, did you notice the Edgar Allan Poe allusion when you logged out of IMAP with OpenSSL?

Chris Linfoot, 2009-05-28

I did notice the sentence but do not see an allusion to Edgar Allen Poe.

Volker Weber, 2009-05-28

BIS does indeed use IMAP idle.

Abdelkader Boui, 2009-05-28

C01 LOGOUT
* BYE Logout Requested l19if11972848fgb.2
C01 OK Quoth the raven, nevermore... l19if11972848fgb.2
read:errno=0

Chris Linfoot, 2009-05-28

@Abdelkader Boui - My bad. You are correct.

Chris Linfoot, 2009-05-28

Ah, I did not do a logout. And if I did it would have been C02. ;-)

Volker Weber, 2009-05-28

Abdelkader, while I reported it last year, I have not found any hard evidence that this is the case. RIM seems to collaborate with big ISP on delivering mails in a similar fashion, but I cannot really imagine they would be keeping TCP connections open for every single mailbox to get this notification.

Volker Weber, 2009-05-28

End of last year, when Volker reported it, it worked, but I noticed approx half a year ago, that "immediate delivery" (i.e. IMAP IDLE) had stopped working. That may (or may not) be a feature of my BIS accounts, in any case currently BIS IMAP to Gmail doesn't do IDLE.

Jan-Piet Mens, 2009-05-28

I am trying to get an official confirmation that IMAP idle is used by BIS. As soon as I have the answer, I will report back. There was an article on BTSC about the IMAP idle support, but it isn't accessible anymore.

Abdelkader Boui, 2009-05-28

This feature is available only unter OSX 10.5. Mail Client. (Every Version newer than Mail 2.1.3)

Ingmar Melchert, 2009-05-29

Official confirmation from a human isn't worth much. I prefer official confirmation from my dovecot rawlogs.

e EXAMINE "inbox"
f UID FETCH 39912:* (UID FLAGS)
i IDLE
DONE
f UID FETCH 39914:* (UID FLAGS)
i IDLE

yes, the BIS does send IDLE commands. And yes it is nice and fast. And I did ask for IMAP IDLE in the Notes partner forum a long long time ago and as far as I am aware IBM is being IDLE and Domino doesn't support it.

Alan Bell, 2009-05-30

IMAP is a checklist feature in Notes and Domino. You are not supposed to actually use it.

Volker Weber, 2009-05-30

Recent comments

Jan Fuellemann on ANC Schalter für Beats Studio 3 in iOS 13 at 17:10
Volker Weber on Recording video on iPhone with Buetooth headset at 00:01
Gregory Engels on Recording video on iPhone with Buetooth headset at 22:41
Martin Hiegl on Cryptodamages: Monetary value estimates of the air pollution and human health impacts of cryptocurrency mining at 17:45
Markus Dierker on Recording video on iPhone with Buetooth headset at 08:25
Volker Weber on Cryptodamages: Monetary value estimates of the air pollution and human health impacts of cryptocurrency mining at 22:48
Maximilian von Hulewicz on Cryptodamages: Monetary value estimates of the air pollution and human health impacts of cryptocurrency mining at 08:09
Andreas Weinreich on Withings ECG :: Erste Eindrücke at 21:30
Andy Mell on Very fast October update for Galaxy S10 at 18:56
Volker Weber on Withings ECG :: Erste Eindrücke at 16:53
Bernd Fellerhoff on Withings ECG :: Erste Eindrücke at 15:23
Stanislaus Landeis on iCloud Drive file sharing delayed until spring 2020 at 12:55
Volker Weber on AirPlay 2 richtig verwenden at 11:52
Matthias Welling on AirPlay 2 richtig verwenden at 09:30
Volker Weber on AirPlay 2 richtig verwenden at 23:10
Steve Smillie on Very fast October update for Galaxy S10 at 21:58
Ragnar Schierholz on AirPlay 2 richtig verwenden at 21:34
Ragnar Schierholz on Withings ECG :: Erste Eindrücke at 18:05
Peter Meuser on Endlich habe ich Samsung DeX kapiert at 17:00
Torsten Pinkert on Very fast October update for Galaxy S10 at 16:45
Christian Tillmanns on Cryptodamages: Monetary value estimates of the air pollution and human health impacts of cryptocurrency mining at 16:17
Armin Auth on Lenovo Chromebook C340-11 #stuffthatworks at 11:49
Maximilian von Hulewicz on Cryptodamages: Monetary value estimates of the air pollution and human health impacts of cryptocurrency mining at 10:06
Markus Mews on Lenovo Chromebook C340-11 #stuffthatworks at 09:27
Christian Tillmanns on Cryptodamages: Monetary value estimates of the air pollution and human health impacts of cryptocurrency mining at 07:44

Ceci n'est pas un blog

I explain difficult concepts in simple ways. For free, and for money. Clue procurement and bullshit detection.

vowe

Contact
Publications
Stuff that works
Amazon Wish List
Frequently Asked Questions

rss feed  twitter  amazon

Local time is 19:43

visitors.gif

buy me coffee

Paypal vowe