From: Sunil S. <sun...@ro...> - 2011-04-27 07:11:06
|
> > Could you please send your imap server CAPABILITY > string? > > * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID > XLIST CHILDREN > * X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ... > > 1. Parse the response to the SELECT command: Please send from the IMAP logs the output of the SELECT command. You will find something like: IMAP> A0001 SELECT "INBOX" .... IMAP< A0001 OK SELECT completed The whole section is required. Please copy them for two cases: - When there is atleast one new mail in the folder - When there are no new mails in the folder Are you also using IDLE? That could require more IMAP logs from your end around the IDLE command. > > 2. Send a STATUS command The STATUS command might be a bit expensive as it will scan the folder again. There could also be an issue of mismatch between the open folder and the current status of that folder. > > 3. Send an extended SEARCH command This is not supported by your server as it is not advertised in the CAPABILITY string. Implementing this will not help you. > Do you think it's too difficult to detect if the server > supports one of > the method above? In that case we could try to parse the > response of > these commands and only if we find that at least one works, > try to > reduce the number of submitted IMAP SEARCH queries. It would not be difficult. Option 1 and 3 are the most acceptable options as they work on the current folder. It would be easier if we can find what is supported by your server first so that that can be implemented. -- Sunil Shetye. |