foxcpp / maddy

✉️ Composable all-in-one mail server.
https://maddy.email
GNU General Public License v3.0
5k stars 240 forks source link

Replace Subject Modifier #720

Open twobiers opened 2 weeks ago

twobiers commented 2 weeks ago

Use case

I would like to be able to replace subjects based on regexp. I'm in a multi-environment setup, and like to prefix E-Mails for non-production E-Mails with the environment. So for instance, the subject of an E-Mail from a Test environment will get prefixed with [TEST]

Your idea for a solution

The implementation can be similar to the replace_rcpt / replace_sender modifier.

I'm willing to provide a PR for that