# Allow for email re-writing to solve the additional email address?

**URL:** <https://meta.discourse.org/t/allow-for-email-re-writing-to-solve-the-additional-email-address/58892>\
**Category:** Feature\
**Created:** [2017 年3 月 11 日 19:43 UTC](https://meta.discourse.org/t/allow-for-email-re-writing-to-solve-the-additional-email-address/58892 "2017-03-11T19:43:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)\
发布日期： [2017 年3 月 11 日 19:43 UTC](https://meta.discourse.org/t/allow-for-email-re-writing-to-solve-the-additional-email-address/58892/1 "2017-03-11T19:43:00Z")

</div>

Continuing the discussion from [Straightforward direct-delivery incoming mail](https://meta.discourse.org/t/straightforward-direct-delivery-incoming-mail/49487):

Over in `Two emails for one user` the debate in:

> [@Two emails for one user](https://meta.discourse.org/t/two-emails-for-one-user/16328/35):
>
> Are we supporting 2 or {n} emails per user for that amount of work?

Its pretty much settled on 2 emails. I think that’s best, but there will still be cases where we need to handle more.

I wonder if there could be a lookup table added to this discourse email processor which would have a rewrite table.

The idea is that incoming emails would be re-written, much like [G-Suite Routing Rules](https://support.google.com/a/answer/6297084) so that by the time an email got to discourse, `johndoe@example.org` could be “from” a registered user in the name of `jdoe@example.com`

I’d be interested in getting the dev for this done but would need some pointers.

- Would a PR for this be welcome?
- Where would a loop like this best fit?

---

_[View the full topic](https://meta.discourse.org/t/allow-for-email-re-writing-to-solve-the-additional-email-address/58892)._
