# Punctuation on a line causing stripping in plaintext mail

**URL:** <https://meta.discourse.org/t/punctuation-on-a-line-causing-stripping-in-plaintext-mail/76001>\
**Category:** Bug\
**Created:** [2017 年12 月 13 日 22:34 UTC](https://meta.discourse.org/t/punctuation-on-a-line-causing-stripping-in-plaintext-mail/76001 "2017-12-13T22:34:13Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![gwmngilfen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gwmngilfen/32/302925_2.png) [@gwmngilfen](https://meta.discourse.org/u/gwmngilfen)\
发布日期： [2017 年12 月 13 日 22:34 UTC](https://meta.discourse.org/t/punctuation-on-a-line-causing-stripping-in-plaintext-mail/76001/1 "2017-12-13T22:34:13Z")

</div>

I think we’ve hit an odd edge-case in the inbound email parser. A colleague just sent a post by mail, and on one line it contained a long URL followed by a comma, eg

```plaintext
As I've suggested in https://reallylong/thing/that/has/many/levels#and-a-bunch-of-params-are-here-too,
I will revert the changes in tasks that caused this troubles and release a new version.

```

However, his email client has tried to flow the paragraph, so what Discourse has actually received is this:

```plaintext
As I've suggested in
https://reallylong/thing/that/has/many/levels#and-a-bunch-of-params-are-here-too
,
I will revert the changes in tasks that caused this troubles and release a
new version

```

Note how the URL is on it’s own line, and the comma is shifted to a new line. This appears to cause the email parser a problem - the URL becomes a OneBox, and the comma and everything after it is dropped from the post. I’ve tested this by sending the exact same message again, but without the comma, and the second part of the paragraph is then included.

Is there some kind of “a line of all punctuation” regex that is scanning for signatures or something that might be causing this behaviour?

---

_[View the full topic](https://meta.discourse.org/t/punctuation-on-a-line-causing-stripping-in-plaintext-mail/76001)._
