This project is read-only.

QuickSearchNew Problem

Jul 7, 2008 at 8: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...
Jul 7, 2008 at 8:51 PM
the NEW term is not a flag, its a parameter to the SEARCH command that is equivalent to (RECENT UNSEEN)

Section 6.4.4 for the definition of the SEARCH command

Jul 7, 2008 at 10: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 10:38 PM
Edited Jul 7, 2008 at 10:44 PM
But it seems to be a server error.

here is the console output:
imap0005 examine "inbox"
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* 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
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
imap0008 OK SEARCH completed in 0,00 seconds

imap0009 search recent
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.