Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2252|回复: 0
打印 上一主题 下一主题

搜索--快速过滤

[复制链接]

388

主题

602

帖子

2218

积分

金牌会员

Rank: 6Rank: 6

积分
2218
跳转到指定楼层
楼主
发表于 2016-3-13 20:44:42 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-11-26 01:27 , Processed in 0.064055 second(s), 20 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表