MBOX-Line: From davew at hireahit.com  Fri Jan 24 11:16:40 2014
To: imap-protocol@u.washington.edu
From: Dave Warren <davew@hireahit.com>
Date: Fri Jun  8 12:34:52 2018
Subject: [Imap-protocol] Gmail and IDLE flags changes
In-Reply-To: <03EA56BC-6D49-4156-A842-D043A2099570@diku.dk>
References: <CABDm0O-OnP08r5-d6EpU9JM34FAaebRQGOUwRNi1nY=+x9BhBQ@mail.gmail.com>	<5955E352-F7CD-4DBB-A191-F748CCD3932E@gmail.com>	<52E18829.40305@earthlink.net>	<CABa8R6u0_=+EesY6=P2RasNaGzGgPmRdOHfE32f8Tw44baSPFw@mail.gmail.com>	<1F07B294-2A10-424C-9299-434013CBEE6D@isode.com>
	<03EA56BC-6D49-4156-A842-D043A2099570@diku.dk>
Message-ID: <52E2BC18.7050508@hireahit.com>

On 2014-01-24 04:17, Benny Kj?r Nielsen wrote:
> On 24 Jan 2014, at 11:50, Alexey Melnikov wrote:
>
>>> On 23 Jan 2014, at 21:32, Brandon Long <blong@google.com> wrote:
>>>
>>> Yes, gmail currently only notifies of new messages and expunged 
>>> messages during idle.
>>
>> Can you add an IMAP capability (or can an existing one be used) so 
>> that client can detect this behaviour?
>
> I second that! I've played with a simple workaround for Gmail in which 
> I regularly check for flag changes when in the IDLE state, but I 
> haven't enabled it because I don't like that the workaround is not 
> automatically disabled when/if Gmail IDLE is improved.
>
> I've also been wondering: The RFC on IMAP IDLE does not state it as a 
> requirement that servers must (or even should) report flag changes 
> when in the IDLE state. Has anyone done any experiments showing 
> whether or not this is a widespread IMAP server limitation (beyond 
> Gmail)?

Exchange has some "quirks" when it comes to updating an IDLE client; 
like Gmail, it flawlessly notifies when a new message is added to a 
folder, but on the Exchange side, flag changes and even deletes are 
either not sent by IDLE, or at least not done so consistently.

I've not investigated the actual IMAP implementation, but as a IMAP 
user, I see folders get out of sync until I force the client to refresh 
-- The only IMAP client-side code I interact with actually only cares 
about new messages, so I've never taken the time to investigate further.

Speaking as a user, the lack of working IMAP IDLE is extremely 
frustrating, and is a significant part of why hireahit.com is a Google 
Apps domain, but we don't use Google Apps mail, and instead host mail 
ourselves, so I'd appreciate a CAPABILITY flag that indicates to clients 
what IDLE will and will not notify, allowing clients to resort to 
polling without completely disabling IDLE for new messages.

-- 
Dave Warren
http://www.hireahit.com/
http://ca.linkedin.com/in/davejwarren



