# Tool om e-mailadressen uit posts te verwijderen

**URL:** <https://meta.discourse.org/t/tool-to-remove-email-addresses-from-posts/174582>\
**Category:** Marketplace\
**Created:** [30 december 2020 om 09:58 UTC](https://meta.discourse.org/t/tool-to-remove-email-addresses-from-posts/174582 "2020-12-30T09:58:22Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Mark\_Schmucker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mark_schmucker/32/124810_2.png) [@Mark\_Schmucker](https://meta.discourse.org/u/Mark_Schmucker)\
**Post date:** [30 december 2020 om 09:58 UTC](https://meta.discourse.org/t/tool-to-remove-email-addresses-from-posts/174582/1 "2020-12-30T09:58:22Z")

</div>

**What would you like done?**

Our forum was migrated from a mailing list platform, and many posts contain email addresses, for example “email me at [xyz@gmail.com](mailto:xyz@gmail.com)” or in a signature block at the end of the post. For privacy reasons, we would like to remove all email addresses, or replace them with “email address removed”.

There is an exception: email addresses are allowed, and should not be removed, in the first post of a topic, or if the post is authored by a user named “Summary”. Either check is sufficient, whichever is easier- you don’t have to check both.

We don’t need a UI. I’m not a rails guy but can type a rake command, something like [Replace a string in all posts](https://meta.discourse.org/t/replace-a-string-in-all-posts/48729), or can run something from the rails console. I assume email addresses can be found with a regex.

It would be great if it printed a report of what was replaced. Just printing to the console would be fine unless there’s a better way (/logs?).

[EDIT] Perhaps this should be a plugin that runs periodically to scrub any newly-posted email addresses. Open to suggestions.

**When do you need it done?**

Next few weeks would be great.

**What is your budget, in $ USD that you can offer for this task?**

Open to offers- please PM me with your approach and cost estimate.

---

_[View the full topic](https://meta.discourse.org/t/tool-to-remove-email-addresses-from-posts/174582)._
