From: Andrea R. <rig...@gm...> - 2011-04-29 10:49:03
|
On Wed, Apr 27, 2011 at 10:41:04AM +0530, Sunil Shetye wrote: > > > 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 - when there's no new mail: A0001 SELECT "INBOX" * FLAGS (\Answered \Flagged \Draft \Deleted \Seen) * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)] * OK [UIDVALIDITY 2] * 518298 EXISTS * 0 RECENT * OK [UIDNEXT 652167] A0001 OK [READ-WRITE] INBOX selected. (Success) - when there's at least one new mail: A0001 SELECT "INBOX" * FLAGS (\Answered \Flagged \Draft \Deleted \Seen) * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)] * OK [UIDVALIDITY 2] * 518299 EXISTS * 0 RECENT * OK [UIDNEXT 652168] A0001 OK [READ-WRITE] INBOX selected. (Success) > > 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. No, I don't. > > > > 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. OK. > > > > 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. OK. Thanks, -Andrea |