login about faq

Does the IMAP library support multiple, concurrent connections to many email accounts?

We basically want to use the Idle() feature to monitor many email accounts (and mailboxes/folders within each account).

If so, do you have any thoughts on how many accounts could be monitored on a decent size server?

asked Sep 08 at 19:45

chilkat's gravatar image

chilkat ♦♦
11.8k316358420


You can certainly have multiple IMAP object instances, each of which has it's own session, is logged on to a particular user account, etc. These would all be completely independent of each other. Also, assuming you write the application so that each IMAP session is managed by its own thread, then there's really no difference -- it's just a matter of knowing how to do multi-threaded programming in your particular programming language.

You might ask: Is it possible to service many email accounts w/ a single IMAP object instance in a single IMAP session? The answer is that there is nothing in the IMAP protocol for such a thing. Some mail servers might offer "shared mailboxes", and in that case the mailbox naming would follow some convention that's specific to that particular IMAP server implementation. From an IMAP protocol perspective, it's still just a single session with various mailboxes.

link

answered Sep 08 at 19:54

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: Sep 08 at 19:45

Seen: 169 times

Last updated: Sep 08 at 19:54

powered by OSQA