org.mmbase.module.smtp
Class PopFetcher

java.lang.Object
  extended by org.mmbase.module.smtp.MailFetcher
      extended by org.mmbase.module.smtp.PopFetcher
All Implemented Interfaces:
Runnable, CronJob

public class PopFetcher
extends MailFetcher
implements CronJob

A mail fetcher that does not smtp-listen but periodically pops from a server. Implemented as a cronjob

Version:
$Id: PopFetcher.java 35335 2009-05-21 08:14:41Z michiel $

Constructor Summary
PopFetcher()
          Public constructor.
 
Method Summary
 CronEntry getEntry()
           
 void init(CronEntry cronEntry)
          If the CronJobs needs some initializing before the first run, then that can be put in this.
 void run()
          Pops the mail, and maintains an mmevents object, to administer which mails were handled (based on received date)
 void stop()
          If after the last run of the job, there need to be shutdown things, then that can be done here.
 
Methods inherited from class org.mmbase.module.smtp.MailFetcher
getHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopFetcher

public PopFetcher()
Public constructor. Set all data that is needed for this thread to run.

Method Detail

init

public void init(CronEntry cronEntry)
Description copied from interface: CronJob
If the CronJobs needs some initializing before the first run, then that can be put in this.

Specified by:
init in interface CronJob

stop

public void stop()
Description copied from interface: CronJob
If after the last run of the job, there need to be shutdown things, then that can be done here.

Specified by:
stop in interface CronJob

getEntry

public CronEntry getEntry()
Specified by:
getEntry in interface CronJob

run

public void run()
Pops the mail, and maintains an mmevents object, to administer which mails were handled (based on received date)

Specified by:
run in interface Runnable
Specified by:
run in interface CronJob


MMBase 2.0-SNAPSHOT - null