com.planet_ink.coffee_mud.core.smtp
Class MassMailer

java.lang.Object
  extended by com.planet_ink.coffee_mud.core.smtp.MassMailer
All Implemented Interfaces:
java.lang.Runnable

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


Constructor Summary
MassMailer(CMProps page, java.lang.String domain, java.util.Set<java.lang.String> oldEmailComplaints)
           
 
Method Summary
 void addMail(JournalEntry mail, java.lang.String journalName, java.lang.String overrideReplyTo, boolean usePrivateRules)
           
 boolean deleteEmailIfOld(java.lang.String journalName, java.lang.String key, long date, int days)
           
 java.lang.String domainName()
           
 int getEmailDays()
           
 int getFailureDays()
           
protected  boolean rightTimeToSendEmail(long email)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MassMailer

public MassMailer(CMProps page,
                  java.lang.String domain,
                  java.util.Set<java.lang.String> oldEmailComplaints)
Method Detail

domainName

public java.lang.String domainName()

getFailureDays

public int getFailureDays()

getEmailDays

public int getEmailDays()

deleteEmailIfOld

public boolean deleteEmailIfOld(java.lang.String journalName,
                                java.lang.String key,
                                long date,
                                int days)

addMail

public void addMail(JournalEntry mail,
                    java.lang.String journalName,
                    java.lang.String overrideReplyTo,
                    boolean usePrivateRules)

rightTimeToSendEmail

protected boolean rightTimeToSendEmail(long email)

run

public void run()
Specified by:
run in interface java.lang.Runnable