Platform Explorer / CMF 1.8

Component org.nuxeo.casemanagement.default.mail.config

Contributions

XML Source

<?xml version="1.0"?>

<component name="org.nuxeo.casemanagement.default.mail.config">

  <require>org.nuxeo.ecm.platform.mail.service.MailServiceContrib
  </require>
  <require>org.nuxeo.ecm.platform.mail.core.listener.contrib</require>

  <!-- disable listener from platform-mail-core -->
  <extension target="org.nuxeo.ecm.core.event.EventServiceComponent"
    point="listener">
    <listener name="mailReceivedListener" enabled="false" />
  </extension>

  <extension target="org.nuxeo.ecm.platform.MailService"
    point="sessionFactory">

    <sessionFactory name="casemanagementImport"
      fetcherName="simple">
      <properties>
        <property name="user">nuxeo-correspondence@test.nuxeo.com</property>
        <property name="password">********</property>
        <property name="mail.store.protocol">imap</property>
        <property name="mail.imap.host">imap.gmail.com</property>
        <property name="mail.imap.starttls.enable">true</property>
        <property name="mail.imap.ssl.protocols">SSL</property>
        <property name="mail.imap.socketFactory.class">javax.net.ssl.SSLSocketFactory</property>
        <property name="mail.imap.port">993</property>
        <property name="mail.imap.socketFactory.port">993</property>
        <property name="mail.imap.socketFactory.fallback">false</property>
      </properties>
    </sessionFactory>

  </extension>

  <extension
    target="org.nuxeo.ecm.platform.scheduler.core.service.SchedulerRegistryService"
    point="schedule">

    <schedule id="correspEmailInjectionSchedule">
      <username>Administrator</username>
      <password>********</password>
      <eventId>CaseManagementEmailInjectionEvent</eventId>
      <eventCategory>default</eventCategory>
      <!-- every five minutes -->
      <cronExpression>0 0/5 * * * ?</cronExpression>
    </schedule>

  </extension>

  <extension target="org.nuxeo.ecm.core.event.EventServiceComponent"
    point="listener">
    <listener name="CmMailInjectionListener" async="false"
      postCommit="false" class="org.nuxeo.cm.event.MailInjectionListener"
      priority="120" enabled="false">
      <event>CaseManagementEmailInjectionEvent</event>
    </listener>

  </extension>

</component>