talx x1.0.5

talx.model.mail
Class FromPersonTerm

java.lang.Object
  extended byjavax.mail.search.SearchTerm
      extended bytalx.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

Field Summary
protected  Person person
           
 
Constructor Summary
FromPersonTerm(Person p)
           
 
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
 

Field Detail

person

protected Person person
Constructor Detail

FromPersonTerm

public FromPersonTerm(Person p)
Method Detail

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.

talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.