QuickSearchNew Problem

Jul 7, 2008 at 7:14 AM
Problem with public IMAPSearchResult Search(IMAPSearchQuery query)

Line: if (query.New) searchTerms.Add("NEW");

Why you use flag "NEW"?
Right IMAP Flag is "UNSEEN".
Imap flags are \Answered \Flagged \Deleted \Seen \Draft \Unseen...
Coordinator
Jul 7, 2008 at 7:51 PM
the NEW term is not a flag, its a parameter to the SEARCH command that is equivalent to (RECENT UNSEEN)

See ftp://ftp.rfc-editor.org/in-notes/rfc3501.txt
Section 6.4.4 for the definition of the SEARCH command


Jul 7, 2008 at 9:19 PM
Sorry, my bad.
I'm using lumisoft mail server, and new message has only unseen flag.
How can i find/count new messages?
Jul 7, 2008 at 9:38 PM
Edited Jul 7, 2008 at 9:44 PM
But it seems to be a server error.

here is the console output:
--------------------------
imap0005 examine "inbox"
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* 6 EXISTS
* 1 RECENT
* OK [UNSEEN 2] Message 2 is first unseen
* OK [UIDVALIDITY 124221] UIDs valid
* OK [UIDNEXT 9] Predicted next UID
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Dranent falgs
imap0005 OK [READ-ONLY] EXAMINE  Completed in 0,00 seconds

imap0006 search new
* SEARCH
imap0006 OK SEARCH completed in 0,00 seconds

imap0007 search unseen
* SEARCH 2 3 4 6
imap0007 OK SEARCH completed in 0,00 seconds


imap0008 search recent unseen
* SEARCH
imap0008 OK SEARCH completed in 0,00 seconds

imap0009 search recent
* SEARCH
imap0009 OK SEARCH completed in 0,00 seconds

Can you help me? I don't understand, why the recent mail was not found on the server when * 1 RECENT exists.