In RFC 3501,  it defines "Connection" and "Session" as
 
---
 
"Connection" refers to the entire sequence of client/server interaction from the initial establishment of the network connection until its termination.
 
--
 
Could I compare it with login complete?

--

"Session" refers to the sequence of client/server interaction from the time that a mailbox is selected (SELECT or EXAMINE command) until the time that selection ends (SELECT or EXAMINE of another mailbox, CLOSE command, or connection termination).

--

It also says:

---

Only one mailbox can be selected at a time in a connection; simultaneous access to multiple mailboxes requires multiple connections.

---

If the IMAP client which uses c-client wants to show the list of mails from all of the mailboxes after login complete,  then user could select the mail interested, does it mean that there must be multiple "connections" (multiple login's) in order to maintain multiple mailboxes to be SELECT'ed, so that the data in c-client's cache could be used later.

Or it is the client's responsibility to cache the data besides the c-client's cache, and after user selects a mail entry then re-do SELECT for the interested mailbox, so that there is at most only one mailbox is open at all time?

What is the suggested way to have access to multiple mailboxes using c-client.

Thanks!

 

Reply via email to