www.element4solution.com

e4s.mail
Class E4ReceiveMail

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.mail.E4ReceiveMail
All Implemented Interfaces:
java.lang.Runnable

public class E4ReceiveMail
extends E4Object
implements java.lang.Runnable

Receive email by installing one ore more event handlers.

Since:
JDK 1.4
See Also:
E4MailSettings, http://java.sun.com/developer/onlineTraining/JavaMail/contents.html http://java.sun.com/products/javamail/javadocs/index.html

Example_MailReceive.java


Field Summary
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
static void addListener(AEP_ReceiveMail listener)
           
static java.lang.String getEmailFrom(Address address)
          Extract an email address in a simple form ("name-at-server") from the java mail address which might include (or not) the name in </>-characters.
static AEP_ReceiveMail[] getListeners()
           
static void removeListener(AEP_ReceiveMail listener)
           
 void run()
           
 
Methods inherited from class e4s.util.E4Object
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, toString, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

addListener

public static void addListener(AEP_ReceiveMail listener)

getListeners

public static AEP_ReceiveMail[] getListeners()

removeListener

public static void removeListener(AEP_ReceiveMail listener)

run

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

getEmailFrom

public static java.lang.String getEmailFrom(Address address)
Extract an email address in a simple form ("name-at-server") from the java mail address which might include (or not) the name in </>-characters.


_getSVNVersionString

public static java.lang.String _getSVNVersionString()
Get version info string from subversion.

Returns:
the version info string.
See Also:
E4Util.getRevisionCodeFromSVN(Class)

www.element4solution.com