# Mbox.rb replacing underscores with spaces

**URL:** <https://meta.discourse.org/t/mbox-rb-replacing-underscores-with-spaces/49084>\
**Category:** Development\
**Created:** [August 23, 2016, 6:28pm UTC](https://meta.discourse.org/t/mbox-rb-replacing-underscores-with-spaces/49084 "2016-08-23T18:28:56Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [August 23, 2016, 6:28pm UTC](https://meta.discourse.org/t/mbox-rb-replacing-underscores-with-spaces/49084/1 "2016-08-23T18:28:56Z")

</div>

Something in one of these files is replacing underscores with spaces in email addresses. I’m 99% sure that the one I forked did too, but I’m including my copy in case I did something boneheaded.

> <https://github.com/pfaffman/discourse/blob/master/script/import_scripts/mbox.rb>

> <https://github.com/pfaffman/discourse/blob/master/script/import_scripts/base.rb>

is replacing \_ with a space in email addresses.

I can’t find it, and it’s making me crazy. I don’t see that any of the `.gsub`s could be doing it.

Any ideas where I should look, @eviltrout?

---

_[View the full topic](https://meta.discourse.org/t/mbox-rb-replacing-underscores-with-spaces/49084)._
