Class GmailRawSearchTerm

  • All Implemented Interfaces:
    java.io.Serializable

    public final class GmailRawSearchTerm
    extends StringTerm
    This class implements searching using the Gmail X-GM-RAW extension.
    Since:
    JavaMail 1.4.6
    Author:
    Bill Shannon
    See Also:
    Serialized Form
    • Constructor Detail

      • GmailRawSearchTerm

        public GmailRawSearchTerm​(java.lang.String pattern)
        Constructor.
        Parameters:
        pattern - the pattern to search for
    • Method Detail

      • match

        public boolean match​(Message msg)
        The match method.
        Specified by:
        match in class SearchTerm
        Parameters:
        msg - the pattern match is applied to this Message's subject header
        Returns:
        true, it the match succeeds, false if the match fails
        Throws:
        java.lang.RuntimeException - this can't be supported locally
      • equals

        public boolean equals​(java.lang.Object obj)
        Equality comparison.
        Overrides:
        equals in class StringTerm