Re: [Imap-protocol] Is SELECT required before FETCH to detect new mail?
"David Harris" <[email protected]> Sun, 19 Feb 2017 12:12:42 +1300
| Newsgroups | gmane.mail.imap.general |
|---|---|
| Organization | Pegasus Mail |
| Message-ID | <[email protected]> |
On 18 Feb 2017 at 17:29, Gene Smith wrote: > The charter IMAP server is openwave according the login response. So > are you saying it is OK for the IMAP server to require a new SELECT > before doing a FETCH on an already selected mailbox for the FETCH > response to indicate new email? If so, this is a bug in thunderbird. One of the major reasons IMAP has such detailed provision for unsolicited responses is so that the server can report the arrival of new messages in a mailbox *without* the client having to re-select it. Depending on the back-end, SELECT can be a fantastically "expensive" operation, and even on servers where it's well-optimized, it's probably going to incur significant overhead. Speaking without any pretence of being authoritative, I'd say that if the only way the server can report new messages in a mailbox is through reselection, then it's broken, if only because there's no way for a client to learn procedurally that that's what the server wants. In my own client code, I issue periodic NOOP commands and expect to see new messages reported as part of the response sequence to that command: that's how I would have expected most clients would do it. Cheers! -- David -- ------------------ David Harris -+- Pegasus Mail ---------------------- Box 5451, Dunedin, New Zealand | e-mail: [email protected] Phone: +64 3 453-6880 | Fax: +64 3 453-6612 Real newspaper headlines from US Papers: "Thieves steal burglar alarm". _______________________________________________ Imap-protocol mailing list [email protected] http://mailman13.u.washington.edu/mailman/listinfo/imap-protocol