Class AbstractMailListener<M, A, S extends IMailFileSystem<M,A>>

java.lang.Object
org.frankframework.filesystem.AbstractFileSystemListener<M,S>
org.frankframework.filesystem.AbstractMailListener<M,A,S>
All Implemented Interfaces:
FrankElement, HasApplicationContext, HasName, HasPhysicalDestination, IConfigurable, IHasProcessState<M>, IListener<M>, IProvidesMessageBrowsers<M>, IPullingListener<M>, IScopeProvider, NameAware, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
ExchangeMailListener, ImapListener

public abstract class AbstractMailListener<M, A, S extends IMailFileSystem<M,A>> extends AbstractFileSystemListener<M,S>
Implementation of a AbstractFileSystemListener that enables a Receiver to look in a folder for received mails. When a mail is found, it is moved to an output folder (or it's deleted), so that it isn't found more then once. A xml string with information about the mail is passed to the pipeline.

example:

  <email>
     <recipients>
        <recipient type="to">***@nn.nl</recipient>
        <recipient type="cc">***@nn.nl</recipient>
     </recipients>
     <from>***@nn.nl</from>
     <subject>this is the subject</subject>
     <headers>
        <header name="prop1">value of first header property</header>
        <header name="prop2">value of second header property</header>
     </headers>
     <dateTimeSent>2015-11-18T11:40:19.000+0100</dateTimeSent>
     <dateTimeReceived>2015-11-18T11:41:04.000+0100</dateTimeReceived>
  </email>

Author:
Peter Leeuwenburgh, Gerrit van Brakel