Mbox.rb replacing underscores with spaces: pfaffman is experiencing issues with mbox.rb replacing underscores with spaces in email addresses, e.g., m_smith@gmail.com becomes m smith@gmail.com. This only happens sometimes and is causing errors. eviltrout suggests that the system normally replaces spaces with underscores in emails, not the other way around. eviltrout offers to investigate further if provided with an example of a messed-up email and its original input. pfaffman will add debugging messages to help resolve the issue.
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.
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 .gsubs could be doing it.
Right. That’s what’s bizarre. Emails that have underscores in them are ending up causing errors because the underscores are getting replaced with spaces.
m_smith@gmail.com becomes m smith@gmail.com.
Edit: but it only happens sometimes.
Anyway, I was hoping it was something silly and obvious that I was somehow overlooking. Thanks.
I personally haven’t seen this, but it might depend on the mbox format. If you could provide an example of an email that is messed up and the original input I can take a look and try to figure it out.