javax.mail.search

Class BodyTerm

public final class BodyTerm extends StringTerm

A textual search of the message content. Body searches are done only on:
  1. single-part messages whose primary-type is text OR
  2. multipart/mixed messages whose first body part's primary-type is text.

Version: 1.3

Author: Chris Burdess

Constructor Summary
BodyTerm(String pattern)
Constructor.
Method Summary
booleanequals(Object other)
booleanmatch(Message msg)
Returns true only if the search text was found in the message body.

Constructor Detail

BodyTerm

public BodyTerm(String pattern)
Constructor.

Parameters: pattern the text to search for

Method Detail

equals

public boolean equals(Object other)

match

public boolean match(Message msg)
Returns true only if the search text was found in the message body.
©