16 Oct
2005
16 Oct
'05
6:41 p.m.
On Tue, 2005-10-11 at 18:29 +0100, Steve [Dovecot] wrote:
I've been lead to believe that I can use the "EXISTS" response to trigger the 'new message present in IMAP folder" event in my program... but I don't seem to receive them when I would expect to when connected to my Dovecot server. I get one "EXISTS" message when I call "select" - but that's it - it doesn't seem to notice when another client moves messages in/out of the folder. Are my assumptions about IMAP incorrect
- i.e. must I still poll? Can Dovecot be configured to send EXIST responses (or any other form of notification) when messages are moved into a folder?
Run "IDLE" command. Also note that you'll have to break out of it every 29 minutes and start it again or Dovecot disconnects you because of idling too long. Maybe see RFC 2177 also about how IDLE is supposed to be used.