Search is not working

May 29, 2008 at 10:45 AM
foreach(var item in f.SubFolders)
    IMAPSearchResult sResult = item.Search(IMAPSearchQuery.QuickSearchDateRange(DateTime.Now.AddDays(-10), DateTime.Now));
That code is returning 0 as result because is comparing the search result from the parent folder against the sub folder messages.

Alberto Acosta
May 29, 2008 at 1:15 PM
The problem that was occuring here was that the Search method was not checking to see if the folder being searched in was the currently examine or selected folder. So the IMAP server search command would search in the last folder that was selected. This has been fixed so that the Search method in IMAPFolder.cs will first check if the current folder is selected or examined and if not, will examine it.

This update will be available in the next source update.