# Email parsing reply not correctly stripping \`----Original message----\` marker

**URL:** https://meta.discourse.org/t/email-parsing-reply-not-correctly-stripping-original-message-marker/24112
**Category:** Bug
**Tags:** email
**Created:** [January 17, 2015, 12:00am UTC](https://meta.discourse.org/t/email-parsing-reply-not-correctly-stripping-original-message-marker/24112 "2015-01-17T00:00:35Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [January 17, 2015, 12:00am UTC](https://meta.discourse.org/t/email-parsing-reply-not-correctly-stripping-original-message-marker/24112/1 "2015-01-17T00:00:36Z")

</div>

Email parsing reply not correctly handling `----Original message----` marker.

Here is a modified example (to protect privacy):

 ![](https://global.discourse-cdn.com/meta/original/3X/5/5/5507aad75a156c00c7d59177007d03af27f2acdb.png)

I have two examples of this now with the same user.

I’m willing to send via PM the raw original email replies to a one of the Discourse Team to help resolve this.

Cheers,  
Dean.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [January 17, 2015, 12:09am UTC](https://meta.discourse.org/t/email-parsing-reply-not-correctly-stripping-original-message-marker/24112/2 "2015-01-17T00:09:29Z")

</div>

Sure send it to @techapj if you have raw.

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [January 17, 2015, 2:47am UTC](https://meta.discourse.org/t/email-parsing-reply-not-correctly-stripping-original-message-marker/24112/3 "2015-01-17T02:47:59Z")

</div>

The raw emails have been sent to @techAPJ

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [March 20, 2015, 7:58pm UTC](https://meta.discourse.org/t/email-parsing-reply-not-correctly-stripping-original-message-marker/24112/4 "2015-03-20T19:58:09Z")

</div>

Hi @techAPJ,

I haven’t had any feedback on this issue; if this has been forgotten about feel free to just let me know 😉

I have found out that the user causing the issue in my case uses the webmail client for “BT Mail”.

> BT Mail is the optional free email service that comes with BT Broadband. When you register for BT Broadband you’ll be asked if you’d like a BT Mail address to use. If you choose this option you’ll then be given an email address that ends in @btinternet.com.

EDIT:  
Not sure how many users they have now in 2015 - but I’m thinking it’s a few:

> BT Group operates the BT Total Broadband brand and had [4.6 million accounts](http://en.wikipedia.org/wiki/List_of_broadband_providers_in_the_United_Kingdom) in January 2009.

Cheers,  
Dean.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [March 23, 2015, 4:45pm UTC](https://meta.discourse.org/t/email-parsing-reply-not-correctly-stripping-original-message-marker/24112/5 "2015-03-23T16:45:26Z")

</div>

This issue is on my list, but low priority for now. Also, this issue is most probably due to bug in GitHub [email\_reply\_parser](https://github.com/github/email_reply_parser) library, so I will have to fix it upstream.

---

<div class="post-metadata">

### Author: ![ashledombos](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ashledombos/32/114818_2.png) [@ashledombos](https://meta.discourse.org/u/ashledombos)
#### Post date: [April 6, 2015, 12:00pm UTC](https://meta.discourse.org/t/email-parsing-reply-not-correctly-stripping-original-message-marker/24112/6 "2015-04-06T12:00:35Z")

</div>

Hello, I have noted similar parsing problem with Yandex webmail, should I open another thread for it or just let it here?

 ![](https://global.discourse-cdn.com/meta/original/3X/b/5/b517c3f545c324da97d48de075c2c5af4a41e97f.png)

---

<div class="post-metadata">

### Author: ![ashledombos](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ashledombos/32/114818_2.png) [@ashledombos](https://meta.discourse.org/u/ashledombos)
#### Post date: [April 7, 2015, 8:09pm UTC](https://meta.discourse.org/t/email-parsing-reply-not-correctly-stripping-original-message-marker/24112/7 "2015-04-07T20:09:18Z")

</div>

@techAPJ Do you need also me to send raw message from yandex?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [April 8, 2015, 9:16am UTC](https://meta.discourse.org/t/email-parsing-reply-not-correctly-stripping-original-message-marker/24112/8 "2015-04-08T09:16:49Z")

</div>

Sure, message me the raw email source.

---

<div class="post-metadata">

### Author: ![ashledombos](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ashledombos/32/114818_2.png) [@ashledombos](https://meta.discourse.org/u/ashledombos)
#### Post date: [April 8, 2015, 3:37pm UTC](https://meta.discourse.org/t/email-parsing-reply-not-correctly-stripping-original-message-marker/24112/9 "2015-04-08T15:37:46Z")

</div>

Ok, I forward the reply to myself and copy paste the source to you, thank you

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [December 11, 2015, 2:31pm UTC](https://meta.discourse.org/t/email-parsing-reply-not-correctly-stripping-original-message-marker/24112/10 "2015-12-11T14:31:38Z")

</div>

Fixed via:

> [@Better email reply parsing e-mail](https://meta.discourse.org/t/better-email-reply-parsing-email/36495):
>
> There are many open bugs on meta related to incorrect email reply parsing and I have been looking into them since past few days. Almost everytime the fix is to correct/modify something in GitHub’s [email\_reply\_parser](https://github.com/github/email_reply_parser) library. The GitHub’s email\_reply\_parser library is now abandoned. The last commit was over a year ago, and there are many open issues / pull requests. I propose that we include the email\_reply\_parser in core Discourse email library so that we can customize it as per our requireme…

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [December 11, 2015, 2:31pm UTC](https://meta.discourse.org/t/email-parsing-reply-not-correctly-stripping-original-message-marker/24112/11 "2015-12-11T14:31:46Z")

</div>


