|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mailet.base.GenericMailet
org.apache.james.transport.mailets.RemoteDelivery
public class RemoteDelivery
Receives a MessageContainer from JamesSpoolManager and takes care of delivery the message to remote hosts. If for some reason mail can't be delivered store it in the "outgoing" Repository and set an Alarm. After the next "delayTime" the Alarm will wake the servlet that will try to send it again. After "maxRetries" the mail will be considered undeliverable and will be returned to sender.
TO DO (in priority):
You really want to read the JavaMail documentation if you are working in here, and you will want to view the list of JavaMail attributes, which are documented here as well as other places.
| Constructor Summary | |
|---|---|
RemoteDelivery()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Stops all the worker threads that are waiting for messages. |
java.lang.String |
getMailetInfo()
|
void |
init()
Initializes all arguments based on configuration values specified in the James configuration file. |
protected javax.mail.Session |
obtainSession(java.util.Properties props)
Returns the javamail Session object. |
void |
run()
Handles checking the outgoing spool for new mail and delivering them if there are any |
void |
service(org.apache.mailet.Mail mail)
For this message, we take the list of recipients, organize these into distinct servers, and duplicate the message for each of these servers, and then call the deliver (messagecontainer) method for each server-specific messagecontainer ... |
protected void |
setDNSServer(DNSService dnsServer)
Setter for the dnsserver service |
| Methods inherited from class org.apache.mailet.base.GenericMailet |
|---|
arrayToString, checkInitParameters, getInitParameter, getInitParameter, getInitParameter, getInitParameterNames, getMailetConfig, getMailetContext, getMailetName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteDelivery()
| Method Detail |
|---|
public void init()
throws javax.mail.MessagingException
init in class org.apache.mailet.base.GenericMailetjavax.mail.MessagingException - on failure to initialize attributes.public java.lang.String getMailetInfo()
getMailetInfo in interface org.apache.mailet.MailetgetMailetInfo in class org.apache.mailet.base.GenericMailet
public void service(org.apache.mailet.Mail mail)
throws javax.mail.MessagingException
service in interface org.apache.mailet.Mailetservice in class org.apache.mailet.base.GenericMailetmail - org.apache.mailet.Mail
javax.mail.MessagingExceptionpublic void destroy()
destroy in interface org.apache.mailet.Mailetdestroy in class org.apache.mailet.base.GenericMailetpublic void run()
run in interface java.lang.Runnableprotected javax.mail.Session obtainSession(java.util.Properties props)
props - authenticator -
protected void setDNSServer(DNSService dnsServer)
dnsServer - dns service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||