linagora / tmail-backend

GNU Affero General Public License v3.0
36 stars 17 forks source link

Mailbox listener for welcome email #933

Closed chibenwa closed 5 months ago

chibenwa commented 6 months ago

Why?

I want to welcome new user.

How?

When a mailbox is created, this mailboxlistener would pick up a template on the file system, customize the domain and the username and would add the message into the user mailbox.

Sample configuration: listener.xml (not enabled by default)

<listeners>
  ...
  <listener>
    <class>org.apache.james.rspamd.RspamdListener</class>
    <async>true</async>
    <configuration>
      <templatePath>file://root/welcome.template</templatePath>
    </configuration>
  </listener>
</listeners>

Dedicated maven module in tmail-backend/mailbox/plugin/welcome-listener, on the classpath of distributed app.

Out of scope

Internationalization is out of scope. We target on premise deployments.

Definition of done

Unit tests.

chibenwa commented 6 months ago

Cc @pvi-github @guimard

chibenwa commented 5 months ago

Work to be done on this.

chibenwa commented 5 months ago

CF https://github.com/linagora/tmail-backend/pull/946