Hi Mark,

Thanks for your answers. I would like to detail the situation:
I have two clients connecting to the same mailbox on the IMAP server:
-One is Windows client, synchronize with server using disconnected mode:
copies of every folder/mail item are stored locally, and updated if
something changed on the server.
-The other is Web client, synchronize with server using online mode.

At time t1, the web client create a new folder F1
At time t2, web client creates a new folder F2
At time t3, web client deletes a few mail items: m1&m2 in folder INBOX
At time t4, web client selects some mail items, and change their status from
'unread' to 'read' : m3&m4&m5 in folder  INBOX

If the client open the IDLE command, keeping the connection alive, and
listening to that connection, the server will tell the client every changes
made to that mailbox on the server. For example server will tell the window
client that m1&m2 are deleted, etc.

Do you know someone who has implmented the IDLE command? Or any other way to
get the server inform us new changes?

Regards,
Khoa


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mark Crispin
Sent: Saturday, December 13, 2003 2:22 AM
To: Khoa Vo
Cc: [EMAIL PROTECTED]
Subject: RE: implement the IDLE command


On Fri, 12 Dec 2003, Khoa Vo wrote:
> My purpose is to have the server inform me only new changes. For example,
in
> my mail box on server there is one new mail just arrived, and three among
> 1000 email have changed status to 'read'. Using the IDLE command, and keep
> the connection alive, the server will inform any change to that mailbox
> using the current connection.

The procedure which I outlined, in which you do a NOOP every so often, is
functionally identical to IDLE.

IDLE does not do anything different.  It just saves you from having to
send a NOOP every so often.  Instead of sending a NOOP every 2 minutes,
you send an IDLE every 29 minutes.

> I don't want to scan folder-by-folder, mail-by-mail to detect changes made
> to mail items on the server, and update to the mail items on client
machine.

Even with IDLE, you are never informed about changes to a mailbox that is
not SELECTED.  So I do not understand your "scan folder-by-folder"
argument.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.

Reply via email to