talx.model.mail
Class FromPersonTerm
java.lang.Object
javax.mail.search.SearchTerm
talx.model.mail.FromPersonTerm
- All Implemented Interfaces:
- java.io.Serializable
- public class FromPersonTerm
- extends javax.mail.search.SearchTerm
Search Term that matches message from a given Person object.
- See Also:
- Serialized Form
|
Method Summary |
Person |
getPerson()
|
boolean |
match(javax.mail.Message msg)
Compares the message's from addresses with person in this search term. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
person
protected Person person
FromPersonTerm
public FromPersonTerm(Person p)
getPerson
public Person getPerson()
match
public boolean match(javax.mail.Message msg)
- Compares the message's from addresses with person in this search term.
to do: we currently look for sender and from. We might also look for:
Reply-To, Return-Path, Return-Receipt-To, Errors-To, Resent-Sender,
Resent-From, Resent-Reply-To.
- Parameters:
msg - message to compare.
- Returns:
- true if msg is from the person for this search term. False otherwise.
© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.