**Lukas, one observation:
I am fetching emails from yahoo account and when i debug this scode line:
// search for messages, receive only Unique ids
ImapMessageCollection ids = imap.Search(ImapListFields.UniqueId, imapSearchParameter);
then I found that even though my imapSearchParameter is matching with more no. of emails (I verified it manually), above code line returns only 160 no. of emails. Is there any restriction that yahoo account returns only 160 emails? Please suggest. My imapSearchParameter is for subjects.
The value set is "{OR (OR (OR (SUBJECT Order) (SUBJECT Invoice)) (OR (SUBJECT Receipts) (SUBJECT Receipt))) (OR (OR (SUBJECT Ship) (SUBJECT "Direct Confirmation")) (OR (SUBJECT Tracking) (OR (SUBJECT ordering) (SUBJECT Shipping)))) SINCE 22-Feb-2010 BEFORE 23-Aug-2011 NOT DELETED}
".**