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);
matchJunkPercent
/* * 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论