firemail

标题: 搜索--快速过滤 [打印本页]

作者: hechengjin    时间: 2016-3-13 20:44
标题: 搜索--快速过滤
messenger.xul
<vbox id="threadContentArea"> <hbox id="quick-filter-bar-main-bar" align="center"  hidden="true"
quickfilterBar.xulquickfilterBar.js
quickfilterManager.js




custom-search-toolbar

mailWindowOverlay.xul     <toolbarpalette id="MailToolbarPalette">


extraCustomizeItems.xul


<textbox id="customSearch" class="customSearchType customSearch-1"  flex="1"
                 placeholder="&searchMails.label;"
                 onupdate="customSearchOnInput();"/>
      </toolbaritem>

customizeToolbar.js


customSearch.js
function baseSearch(attribArray, keyword) { tab.folderDisplay.view.search.userTerms = termArray;

textbox.xml
<binding id="custom-searchbox"

d:\svn\Client\ThinkMail_ClientWin_2013\trunk\src\thinkmail\mailnews\base\search\src\nsMsgSearchSession.cpp
NS_IMETHODIMP nsMsgSearchSession::Search(nsIMsgWindow *aWindow)
{


D:\svn\Client\ThinkMail_ClientWin_2013\trunk\src\thinkmail\mailnews\base\src\nsMsgQuickSearchDBView.cpp
nsMsgQuickSearchDBView::OnNewSearch()
{
d:\svn\Client\ThinkMail_ClientWin_2013\trunk\src\thinkmail\mailnews\base\search\src\nsMsgLocalSearch.cpp
nsresult nsMsgSearchOfflineMail::Search (bool *aDone)
{ nsAutoString nullCharset, folderCharset;
          GetSearchCharsets(nullCharset, folderCharset);
          NS_ConvertUTF16toUTF8 charset(folderCharset); // Is this message a hit?
          err = MatchTermsForSearch (msgDBHdr, m_searchTerms, charset.get(), m_scope, m_db, &expressionTree, &match);
          // Add search hits to the results list
          if (NS_SUCCEEDED(err) && match)
          {
            AddResultElement (msgDBHdr);
          }
}
D:\svn\Client\ThinkMail_ClientWin_2013\trunk\src\thinkmail\mailnews\base\search\src\nsMsgBodyHandler.cpp


D:\svn\Client\ThinkMail_ClientWin_2013\trunk\src\thinkmail\mailnews\base\search\src\nsMsgSearchTerm.cpp




https://support.mozilla.org/en-US/kb/global-search
https://support.mozilla.org/en-US/kb/quick-filter-toolbar
http://kb.mozillazine.org/Saved_Search

if (mResultHdr)
      mResultHdr->GetFlags(&flags);

flags & nsMsgMessageFlags::Expunged   删除标记D:\svn\firemailWin_2013\trunk\src\thinkmail\mailnews\base\public\nsMsgMessageFlags.idl


mailnews.view_default_charset
mailnews.force_ascii_search
ISO-8859-1
us-ascii








欢迎光临 firemail (http://firemail.wang:8088/) Powered by Discuz! X3