Revision: 7486
http://mahogany.svn.sourceforge.net/mahogany/?rev=7486&view=rev
Author: vadz
Date: 2008-07-20 21:50:53 +0000 (Sun, 20 Jul 2008)
Log Message:
-----------
use server-supported search criterium for quick search, otherwise it becomes so
slow as to be unusable
Modified Paths:
--------------
trunk/M/src/gui/wxFolderView.cpp
Modified: trunk/M/src/gui/wxFolderView.cpp
===================================================================
--- trunk/M/src/gui/wxFolderView.cpp 2008-07-05 01:45:58 UTC (rev 7485)
+++ trunk/M/src/gui/wxFolderView.cpp 2008-07-20 21:50:53 UTC (rev 7486)
@@ -4588,8 +4588,13 @@
m_searchData.forward = key == '/';
+ // if the string contains a '@', assume it's an address and we want
+ // to find the sender, otherwise consider it a keyword to search
+ // for in the subjects
SearchCriterium crit;
- crit.m_What = SearchCriterium::SC_HEADER;
+ crit.m_What = m_searchData.str.find('@') == String::npos
+ ? SearchCriterium::SC_SUBJECT
+ : SearchCriterium::SC_FROM;
crit.m_Key = m_searchData.str;
m_TicketList->Add(m_ASMailFolder->SearchMessages(&crit, this));
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates