mozilla
Your Search Results

    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);
    

    Document Tags and Contributors

    Contributors to this page: Sheppy, AxelGrude
    Last updated by: Sheppy,