login about faq

We are working on a server application that will be monitoring many IMAP mailboxes and were hoping to user IDLE support to help with this.

Your docs mention IDLE support: http://www.chilkatsoft.com/refdoc/csImapRef.html

We were wondering whether or not your IDLE implementation required a thread to remain open for every IDLE'ing connection?

asked May 05 '14 at 12:16

greenkiwi's gravatar image

greenkiwi
111


The IMAP IDLE feature, as defined in RFC 2177, is such that only updates for the currently selected mailbox are pushed by the IMAP server. That mailbox would typically be the INBOX, but doesn't have to be.

You would need one separate IMAP session (TCP connection) per IDLE. However, this doesn't mean your program must be multi-threaded. It can all be in a single thread. For example, you may begin idling on many connections. Your app would then need to periodically check each connection (via the IdleCheck method) to see what notifications have arrived, if any.

link

answered May 06 '14 at 13:05

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×174
×2

Asked: May 05 '14 at 12:16

Seen: 675 times

Last updated: May 06 '14 at 13:05

powered by OSQA