nsIMsgSearchTerm 编辑

Defined in mozilla/ mailnews/ base/ search/ public/ nsIMsgSearchTerm.idl

Attributes

attrib

attribute nsMsgSearchAttribValue attrib;

op

attribute nsMsgSearchOpValue op;

value

attribute nsIMsgSearchValue value;

booleanAnd

attribute boolean booleanAnd;

arbitraryHeader

attribute ACString arbitraryHeader;

hdrProperty

/**
 * Not to be confused with arbitraryHeader, which is a header in the
 * rfc822 message. This is a property of the nsIMsgDBHdr, and may have
 * nothing to do the message headers, e.g., gloda-id.
 * value.str will be compared with nsIMsgHdr::GetProperty(hdrProperty).
 */
attribute ACString hdrProperty;

customId

/// identifier for a custom id used for this term, if any.
attribute ACString customId;

beginsGrouping

attribute boolean beginsGrouping;

endsGrouping

attribute boolean endsGrouping;

Methods

matchRfc822String

boolean matchRfc822String(in string aString, in string charset, in boolean charsetOverride);

matchRfc2047String

boolean matchRfc2047String(in string aString, in string charset, in boolean charsetOverride);

matchDate

boolean matchDate(in PRTime aTime);

matchStatus

boolean matchStatus(in unsigned long aStatus);

matchPriority

boolean matchPriority(in nsMsgPriorityValue priority);

matchAge

boolean matchAge(in PRTime days);

matchSize

boolean matchSize(in unsigned long size);

matchLabel

boolean matchLabel(in nsMsgLabelValue aLabelValue);

matchJunkStatus

boolean matchJunkStatus(in string aJunkScore);

matchJunkPercentEdit section

/*
 * Test search term match for junkpercent
 *
 * @param  aJunkPercent  junkpercent for message (0-100, 100 is junk)
 * @return               true if matches
 */
boolean matchJunkPercent(in unsigned long aJunkPercent);

matchJunkScoreOrigin

/*
 * Test search term match for junkscoreorigin
 * @param  aJunkScoreOrigin  Who set junk score? Possible values:
 *                           plugin filter imapflag user whitelist
 * @return                   true if matches
 */
boolean matchJunkScoreOrigin(in string aJunkScoreOrigin);

matchBody

/**
 * Test if the body of the passed in message matches "this" search term.
 * @param aScopeTerm scope of search
 * @param aOffset offset of message in message store.
 * @param aLength length of message.
 * @param aCharset folder charset.
 * @param aMsg db msg hdr of message to match.
  * @param aDB db containing msg header.
  */
 boolean matchBody(in nsIMsgSearchScopeTerm aScopeTerm,
                   in unsigned long long aOffset,
                   in unsigned long aLength,
                   in string aCharset,
                   in nsIMsgDBHdr aMsg,
                   in nsIMsgDatabase aDb);

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:94 次

字数:5666

最后编辑:6 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文