com.jmo.mailmessager.utils.mail
Class MailMessagerEmailFinder

java.lang.Object
  extended by com.jmo.mailmessager.utils.mail.MailMessagerEmailFinder
All Implemented Interfaces:
java.lang.Runnable

public class MailMessagerEmailFinder
extends java.lang.Object
implements java.lang.Runnable

Class for connecting to mail servers and retrieving any new email messages. Each thread spawned retrieves mail for the one mail account provided. Any exceptions that occur during retrieval are stored within that MailAccount.

Version:
0.0.1
Author:
John Morales
See Also:
MailMessagerTray, MailMessagerXMLEngine, MailMessagerStatusBar, MailMessagerIconAnimator, MailMessagerEncrypter, MailMessagerConstants, MailAccount

Constructor Summary
MailMessagerEmailFinder()
          Creates new EmailFinder object
 
Method Summary
 MailAccount getMessages()
          Returns the updated MailAccount that now contains any unread email messages
 void run()
          Main thread to fetch email from the currentAccount
 void setMailAccount(MailAccount currentAccount)
          Setter for Mail Account from which to attempt to retrieve email
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailMessagerEmailFinder

public MailMessagerEmailFinder()
Creates new EmailFinder object

Method Detail

setMailAccount

public void setMailAccount(MailAccount currentAccount)
Setter for Mail Account from which to attempt to retrieve email

Parameters:
currentAccount - MailAccount to retrieve mail from.

getMessages

public MailAccount getMessages()
Returns the updated MailAccount that now contains any unread email messages

Returns:
MailAccount

run

public void run()
Main thread to fetch email from the currentAccount

Specified by:
run in interface java.lang.Runnable