de.fhkl.zw.mkup.rattrap.mail
Class MailFetcher

java.lang.Object
  extended by de.fhkl.zw.mkup.rattrap.mail.MailFetcher

public class MailFetcher
extends java.lang.Object

Author:
Martin Schultz This class connects to the mailserver, gets mail, extracts the information and returns it in an arrayList.

Constructor Summary
MailFetcher()
           
 
Method Summary
 java.util.ArrayList fetchMail()
          This method gets all mails in the "INBOX" folder and extracts the crucial information for the spam tracker.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailFetcher

public MailFetcher()
Method Detail

fetchMail

public java.util.ArrayList fetchMail()
This method gets all mails in the "INBOX" folder and extracts the crucial information for the spam tracker. The data of every mail is stored in a hashmap, all hashmaps are stored in an arraylist, which is returned.

Returns:
returnArray: An arrayList which contains hashtables of each mail.