KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > mail > search > HeaderTerm

javax.mail.search
Class HeaderTerm

java.lang.Object
  extended byjavax.mail.search.SearchTerm
      extended byjavax.mail.search.StringTerm
          extended byjavax.mail.search.HeaderTerm
All Implemented Interfaces:
Serializable
See Also:
Source Code

public boolean equals(Object obj)
See Also:
StringTerm
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getHeaderName()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int hashCode()
See Also:
StringTerm
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected String headerName
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public HeaderTerm(String headerName,
                  String pattern)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1687]Searching received emails with a specific recipient adrdress string
By jo { at } innomak { dot } co { dot } uk on 2005/12/09 13:00:20  Rate
// Get folder 
     Folder folder = store.getFolder ( "INBOX" ) ; 
     folder.open ( Folder.READ_ONLY ) ; 
  
  
     SearchTerm st = new HeaderTerm ( "Envelope-to", "loterias@innomak.co.uk"  ) ; 
     
     // Get directory 
     Message message [  ]  = folder.search ( st ) ; 
  
  
 // Now you can loop on messages found 
 . 
 . 
 . 
 .


public boolean match(Message msg)
See Also:
SearchTerm
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags